summaryrefslogtreecommitdiff
path: root/README.org
blob: 01fe1870c7fb6193e6c6f5cad59e012b403f5655 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
-*- mode: org; coding: utf-8; -*-

#+TITLE: README for Guile Drmaa

Hi there!  Currently, this project only provides low-level bindings to DRMAA version 1.  Here’s an example:

#+begin_src scheme
(use-modules (drmaa v1 low))

(define (test)
  (let ((t (allocate-job-template!)))
    (set-attribute! t (DRMAA 'REMOTE_COMMAND) "/bin/ls")
    (set-attribute! t (DRMAA 'JS_STATE)
                    (DRMAA 'SUBMISSION_STATE_ACTIVE))
    (set-attribute! t (DRMAA 'WD)
                    "/home/rwurmus/")
    (apply set-vector-attribute! t (DRMAA 'V_ENV)
           (list "USER=rwurmus" "USER=rwurmus" "you"))
    (run-job t)))

(init-session!)
(test)
(exit-session!)
#+end_src

Higher level bindings will be added eventually.