-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b54f000
commit 2f6f19e
Showing
2 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/usr/bin/env bash | ||
|
||
ln -f .code.tio .code.tio.chpl | ||
/opt/chapel/bin/chpl "${TIO_CFLAGS[@]}" -o .bin.tio .code.tio.chpl | ||
./.bin.tio "$@" < .input.tio |
2f6f19e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @DennisMitchell : I think that if you add the following environment variable to the script above sometime prior to the execution step on line 5, it would enable multitasking within Chapel:
(or 2 or whatever number of threads you are comfortable with -- this is essentially overriding the amount of thread-level parallelism supported by our threading layer by default). Let me know if you'd prefer to get feedback like this via a PR rather than a comment.
2f6f19e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @DennisMitchell: Here are the additional changes I believe we'll want in order to enable GASNet to run in an "oversubscribed locales" mode (multiple processes on the one server node):
Respectively, these tell GASNet to:
I think that these should be sufficient, though there may be other system-specific settings we need to make.
The test of this step (which I'm happy to do if you like) is to take a multi-locale code like the one you cut and pasted from the chapel.cray.com front page last time and:
--comm=gasnet
to the compilation flags-nl 2
to the execution flags