Choose seq/par backend in compiler wrapper
I'm using the CMake configuration tool to generate the Makefiles for my Project. When I use the upcxx compiler wrapper, I am unable to pass the type of backend I want to link against (par or seq). Instead, I have to set the Environmental variables manually each time I open a new shell, and they need to match the ones I set when generating the configuration.
This process could be simplified greatly, if one could set the thread mode using a command-line switch, akin to passing the -O or -g flag, e.g: "upcxx -O -par" to link against the parallel, optimized backend.
Comments (3)
-
-
-
assigned issue to
- changed milestone to 2019.09.30 release
This issue was triaged at the 2019-07-24 Pagoda issue meeting and assigned a new milestone.
Proposed solution appears in pull request #101
-
assigned issue to
-
- changed status to resolved
This was merged in e5b7b67 and will appear in the 2019.9 release
- Log in to comment
Hi @apoeppl - Thanks for the suggestion, I agree that's a good idea.
In the meantime, here is a workaround for your Makefile, use this command instead:
env UPCXX_THREADMODE=par upcxx -O ...