charmc: make sure to link against pthread when using CkLoop#2778
charmc: make sure to link against pthread when using CkLoop#2778matthiasdiener merged 2 commits intomasterfrom
Conversation
Should help with issues such as the one seen here: spack/spack#15666
|
Does this work on Windows? |
That's a good point. Is CkLoop even supported on Windows? We could also restrict this to non-SMP mode (when pthreads is actually used). |
Fixed in the updated patch. |
|
If you grep for pthread in src/arch, there is a lot of |
These seem to be mostly for SMP support. The issue here is that we need pthread for non-SMP mode, but only when using CkLoop. I think putting this in multiple src/arch files would cause lots of duplication there. |
* charmc: make sure to link against pthread when using CkLoop Should help with issues such as the one seen here: spack/spack#15666 * dont link when SMP or Windows
Should help with issues such as the one seen here: spack/spack#15666 @s-sajid-ali