chapel-lang / pychapel

pych - The Python/Chapel integration module. NOTE: This repository is now deprecated.
Apache License 2.0
16 stars 13 forks source link

Expand Chapel settings that work with this feature #7

Open lydia-duncan opened 9 years ago

lydia-duncan commented 9 years ago

At the moment, building Chapel with the included third-party packages (qthreads, re2, gmp, etc.) will not produce a library that can be used with pyChapel. This means that the build settings are limited to CHPL_TASKS=fifo, CHPL_GMP=none (or system, I believe), CHPL_REGEXP=none, and CHPL_MEM=cstdlib. There may be other limitations that neither Simon nor I have encountered yet.

Since the default value of CHPL_TASKS is qthreads, this is unfortunate. However, our fifo tasking layer still shows good performance (and an improvement when compared to similar but "pure" Python programs), so I don't believe this issue is critical to the success of pyChapel. It would be nice to clean up, though.

lydia-duncan commented 9 years ago

In reviewing the libraries document for our upcoming Chapel release, a script was brought to my attention that may be useful in accomplishing this. $CHPL_HOME/util/config/compileline --libraries will give the -L and -l options necessary for all linking when using Chapel from a C file.