Skip to content

Commit 859598d

Browse files
Upgrade Chapel to 1.22.1.
1 parent 8485fec commit 859598d

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

chapel/task_benchmark.chpl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ extern {
2525
}
2626

2727
proc 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
}

get_deps.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ if [[ $USE_CHAPEL -eq 1 ]]; then
191191
export CHPL_HOME=$CHPL_HOME
192192
export CHPL_HOST_PLATFORM=\$(\$CHPL_HOME/util/chplenv/chpl_platform.py)
193193
export 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
197197
EOF
@@ -220,10 +220,10 @@ export CHPL_LLVM=system
220220
EOF
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
227227
fi
228228

229229
if [[ $USE_X10 -eq 1 ]]; then

0 commit comments

Comments
 (0)