Hi Roger -
FreeBSD isn't a currently tested platform for Chapel (we tend to focus on linux
variants).
However the following patch might enable you to get further. I intend to commit
some
improvements along these lines to the master branch.
I'm also curious to see the entire output from ./util/printchplenv --anonymize
-- in particular
I'm interested in the CHPL_GASNET_SEGMENT value for your configuration.
Cheers,
-michael
diff --git a/runtime/src/chplsys.c b/runtime/src/chplsys.c
index c1fd0bb6..f6595fce 100644
--- a/runtime/src/chplsys.c
+++ b/runtime/src/chplsys.c
@@ -413,6 +413,12 @@ size_t chpl_bytesAvailOnThisLocale(void) {
if (sysctlbyname("hw.usermem64", &membytes, &len, NULL, 0))
chpl_internal_error("query of hw.usermem64 failed");
return (size_t) membytes;
+#elif defined(__FreeBSD__)
+ uint64_t membytes;
+ size_t len = sizeof(membytes);
+ if (sysctlbyname("hw.usermem", &membytes, &len, NULL, 0))
+ chpl_internal_error("query of hw.usermem failed");
+ return (size_t) membytes;
#elif defined(__linux__)
struct sysinfo s;
Hello,
I have compiled chapel-1.16.0 on a 32-bit machine running FreeBSD 10.3
for testing. My chplconfig:
CHPL_HOST_PLATFORM=freebsd
CHPL_TARGET_ARCH=core2
CHPL_COMM=gasnet
CHPL_TASKS=fifo
CHPL_UNWIND=system
CHPL_MEM=cstdlib
CHPL_ATOMICS=intrinsics
CHPL_GMP=system
CHPL_HWLOC=hwloc
CHPL_REGEXP=re2
CHPL_LLVM=none
I compiled hello2:
chpl -o hello2 examples/hello2-module.chpl
export GASNET_SPAWNFN=S
export GASNET_SSH_SERVERS="pyrope.local nanoperthite.local"
When I run it I get:
./hello2 -nl 2
internal error: bytesAvailOnThisLocale not supported on this platform
*** FATAL ERROR: AMUDP_SPMDExit failed!
WARNING: Ignoring call to gasneti_print_backtrace_ifenabled before
gasneti_backtrace_init
internal error: bytesAvailOnThisLocale not supported on this platform
*** FATAL ERROR: AMUDP_SPMDExit failed!
WARNING: Ignoring call to gasneti_print_backtrace_ifenabled before
gasneti_backtrace_init
I'm guessing either there is a misconfiguration or my hardware is not
supported. Any help will be most appreciated.
Thanks,
Roger
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Chapel-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/chapel-users
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Chapel-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/chapel-users