File tree Expand file tree Collapse file tree 4 files changed +30
-1
lines changed Expand file tree Collapse file tree 4 files changed +30
-1
lines changed Original file line number Diff line number Diff line change
1
+
2
+ Use
3
+
4
+ ----
5
+ ./workflow.sh hello.swift
6
+ ----
7
+
8
+ or
9
+
10
+ ----
11
+ ./workflow.sh pyr.swift
12
+ ----
File renamed without changes.
Original file line number Diff line number Diff line change
1
+
2
+ import io;
3
+ import python;
4
+ import R;
5
+
6
+ i = python ( " print( \" python works \" ) " ,
7
+ " repr(2+2) " ) ;
8
+ printf ( " i: %s " , i) ;
9
+
10
+ printf ( R ( " " , " \" R STRING OK \" " ) ) ;
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
set -eu
3
3
4
+ if [[ ${# } != 1 ]]
5
+ then
6
+ echo " Specify a Swift script!"
7
+ exit 1
8
+ fi
9
+ SCRIPT=$1
10
+
4
11
LD_LIBRARY_PATH=/sw/xk6/r/3.3.2/sles11.3_gnu4.9.3x/lib64/R/lib:/opt/java/jdk1.8.0_51/jre/lib/amd64/server:/sw/xk6/r/3.3.2/sles11.3_gnu4.9.3/lib64/R/lib:/sw/xk6/curl/7.30.0/sles11.1_gnu4.3.4/lib:/opt/gcc/4.9.3/snos/lib64
5
12
6
13
SWIFT=/lustre/atlas2/csc249/proj-shared/sfw/swift-t/stc/bin/swift-t
@@ -13,4 +20,4 @@ PROCS=4
13
20
14
21
$SWIFT -m cray -n $PROCS \
15
22
-e LD_LIBRARY_PATH=$LD_LIBRARY_PATH \
16
- workflow.swift
23
+ $SCRIPT
You can’t perform that action at this time.
0 commit comments