File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed
Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ extern {
2525}
2626
2727proc main(args: [] string ) {
28- var argc = args.numElements ;
28+ var argc = args.size ;
2929 var app = app_create(argc: int (32 ), convert_args_to_c_args(argc, args));
3030 var graph_list = app_task_graphs(app); // array of tasks grapsh
3131 app_display(app);
@@ -270,14 +270,14 @@ proc convert_args_to_c_args(argc, args) {
270270 // not efficent but needed to convert args
271271 for i in 0 ..argc - 1 {
272272 // make c memeory for each word
273- var curr = c_malloc(int (8 ), args[ i] .length + 1 );
273+ var curr = c_malloc(int (8 ), args[ i] .size + 1 );
274274 // loop over each character to add it to a string
275275 var j = 0 ;
276276 for chr in args[ i] {
277- curr[ j] = ascii( chr): int (8 );
277+ curr[ j] = chr.toByte( ): int (8 );
278278 j += 1 ;
279279 }
280- assert(j == args[ i] .length );
280+ assert(j == args[ i] .size );
281281 curr[ j] = 0 ;
282282 result[ i] = curr;
283283 }
Original file line number Diff line number Diff line change @@ -191,7 +191,7 @@ if [[ $USE_CHAPEL -eq 1 ]]; then
191191export CHPL_HOME=$CHPL_HOME
192192export CHPL_HOST_PLATFORM=\$ (\$ CHPL_HOME/util/chplenv/chpl_platform.py)
193193export CHPL_LLVM=llvm
194- export CHPL_TARGET_ARCH =native
194+ export CHPL_TARGET_CPU =native
195195# export CHPL_QTHREAD_SCHEDULER=distrib # or sherwood # Enables Chapel work stealing scheduler
196196# Note: distrib scheduler needs QTHREAD_STEAL_RATIO=8 set at runtime
197197EOF
@@ -220,10 +220,10 @@ export CHPL_LLVM=system
220220EOF
221221 fi
222222
223- wget https://github.com/chapel-lang/chapel/releases/download/1.18.0 /chapel-1.18.0 .tar.gz
223+ wget https://github.com/chapel-lang/chapel/releases/download/1.22.1 /chapel-1.22.1 .tar.gz
224224 mkdir " $CHPL_HOME "
225- tar xfz chapel-1.18.0 .tar.gz -C " $CHPL_HOME " --strip-components 1
226- rm chapel-1.18.0 .tar.gz
225+ tar xfz chapel-1.22.1 .tar.gz -C " $CHPL_HOME " --strip-components 1
226+ rm chapel-1.22.1 .tar.gz
227227fi
228228
229229if [[ $USE_X10 -eq 1 ]]; then
You can’t perform that action at this time.
0 commit comments