summaryrefslogtreecommitdiff
path: root/drmaa
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2021-04-26 08:51:49 +0200
committerRicardo Wurmus <rekado@elephly.net>2021-04-26 08:51:49 +0200
commitabadbd7bdae62e28a8533befb0023d5b01b47e73 (patch)
tree7b1ece6e051b0c2ee907b694e71855933ddb2a28 /drmaa
parent20d06da971f9577aed3077489b3ecbd1a4082ddc (diff)
high: Add grid-engine? procedure.
* drmaa/v1/high.scm (grid-engine?): New procedure.
Diffstat (limited to 'drmaa')
-rw-r--r--drmaa/v1/high.scm4
1 files changed, 4 insertions, 0 deletions
diff --git a/drmaa/v1/high.scm b/drmaa/v1/high.scm
index e0f4fbb..d93922b 100644
--- a/drmaa/v1/high.scm
+++ b/drmaa/v1/high.scm
@@ -288,6 +288,10 @@
(set! result (low:get-drmaa-implementation))
result)))))
+(define (grid-engine?)
+ (or (string-prefix? "UGE " (implementation)) ; Univa Grid Engine
+ (string-prefix? "SGE " (implementation))))
+
(define-method (lower-job-template (instance <job-template>))
(define klass (class-of instance))
(define t (low:allocate-job-template!))