Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5266

Teaching and learning resources • Re: Advent of Code 2023

$
0
0
Here it is October 2024 and I'm wondering how to make Advent 2024 more fun.
It is now November and the idea to use Chapel on a cluster of Raspberry Pi computers sounds super fun. Since the three black kittens took a vacation for Halloween, the super-cheap cluster is free. I'm trying a native x86 build first. If that works I'll try AArch64 for the Pi 4 and after that ARMv6.
Compared to compiling Swift, OpenCilk or Julia from source Chapel seems easier--at least on an x86 Linux system. After a setting a few variables as

Code:

$ export CHPL_LLVM=system$ export CHPL_GMP=system$ export CHPL_UNWIND=system$ export CHPL_COMM=gasnet$ export CHPL_COMM_SUBSTRATE=mpi$ export CHPL_LAUNCHER=slurm-gasnetrun_mpi
I was able to type

Code:

$ ./configure --prefix=/usr/local/chapel-2.2.0$ make -j24$ su# make install
and ended up with what seems like a working compiler.

Here is an example:

Code:

$ cat hello.chpl writeln("Hello, world!");$ chpl hello.chpl$ ./hello -nl 1Hello, world!
Fido growled, that's not right! The executable should be launched from Slurm.

Statistics: Posted by ejolson — Thu Nov 07, 2024 6:04 am



Viewing all articles
Browse latest Browse all 5266

Trending Articles