Attempting to get my Chapel groove back, started on the sparse matrix example and encountered the following error.
make
chpl -M/mnt/c/Users/b/src/chgl/src -o target/firsthgl src/firstHgraph.chpl
$CHPL_HOME/modules/packages/LinearAlgebra.chpl:1864: In function 'CSRMatrix':
$CHPL_HOME/modules/packages/LinearAlgebra.chpl:1865: error: unresolved call 'isDenseDom(CSDom(2,int(64),domain(2,int(64),false),true,false,false))'
$CHPL_HOME/modules/packages/LinearAlgebra.chpl:1865: note: because no functions named isDenseDom found in scope
src/firstHgraph.chpl:1: Function 'CSRMatrix' instantiated as: CSRMatrix(Dom: CSDom(2,int(64),domain(2,int(64),false),true,false,false), type eltType = int(64))
make: *** [Makefile:13: all] Error 1
And by popular demand:
./util/printchplenv
machine info: Linux DESKTOP-ORIFC8I 4.4.0-20190-Microsoft #1000-Microsoft Thu Aug 07 16:09:00 PST 2020 x86_64
CHPL_HOME: /mnt/c/Users/b/src/chapel
script location: /mnt/c/Users/b/src/chapel/util/chplenv
CHPL_TARGET_PLATFORM: linux64
CHPL_TARGET_COMPILER: gnu
CHPL_TARGET_ARCH: x86_64
CHPL_TARGET_CPU: native
CHPL_LOCALE_MODEL: flat
CHPL_COMM: none
CHPL_TASKS: qthreads
CHPL_LAUNCHER: none
CHPL_TIMERS: generic
CHPL_UNWIND: none
CHPL_MEM: jemalloc
CHPL_ATOMICS: cstdlib
CHPL_GMP: gmp
CHPL_HWLOC: hwloc
CHPL_REGEXP: re2
CHPL_LLVM: none
CHPL_AUX_FILESYS: none
I believe this has already been fixed on master via https://github.com/chapel-lang/chapel/pull/15989
Cool, does my version reflect that?
chpl --version
chpl version 1.23.0 pre-release (63dade1a2b)
Copyright 2020 Hewlett Packard Enterprise Development LP
Copyright 2004-2019 Cray Inc.
(See LICENSE file for more details)
$ git merge-base --is-ancestor 6e6e142 63dade1a2b
$ echo $?
1
No.
nice trick, thanks! so what do I do now?
If you can pull upstream and test it to confirm, that'd be helpful. We can close the issue if you confirm that you can compile with current upstream.
Looks good!!
chpl --version
chpl version 1.23.0 pre-release (1201483366)
Copyright 2020 Hewlett Packard Enterprise Development LP
Copyright 2004-2019 Cray Inc.
(See LICENSE file for more details)
buddha@DESKTOP-ORIFC8I:/mnt/c/Users/b/tmp$ make
chpl -M/mnt/c/Users/b/src/chgl/src -o target/firsthgl src/firstHgraph.chpl
buddha@DESKTOP-ORIFC8I:/mnt/c/Users/b/tmp$ ./target/firsthgl
Hello, World!
1
1
1
Most helpful comment
Looks good!!