-
Notifications
You must be signed in to change notification settings - Fork 407
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nvcc_wrapper Does Not Support -Xcompiler <compiler option> #198
Comments
We can change that, and it would work for the method: |
Yeah, I need this for the POWER8 work because the C++11 pass through is turning into a bit of a mess. |
Does this patch work for you: diff --git a/config/nvcc_wrapper b/config/nvcc_wrapper
index 0589119..ce82f2b 100755
--- a/config/nvcc_wrapper
+++ b/config/nvcc_wrapper
@@ -127,6 +127,8 @@ do
;;
#strip -Xcompiler because we add it
-Xcompiler)
+ xcompiler_args="$xcompiler_args,$2"
+ shift
;;
#strip of "-x cu" because we add that
-x) This doesn't work .... |
New try: diff --git a/config/nvcc_wrapper b/config/nvcc_wrapper
index 0589119..5b56832 100755
--- a/config/nvcc_wrapper
+++ b/config/nvcc_wrapper
@@ -127,6 +127,13 @@ do
;;
#strip -Xcompiler because we add it
-Xcompiler)
+ if [ $first_xcompiler_arg -eq 1 ]; then
+ xcompiler_args="$2"
+ first_xcompiler_arg=0
+ else
+ xcompiler_args="$xcompiler_args,$2"
+ fi
+ shift
;;
#strip of "-x cu" because we add that
-x) |
Its still not working correctly with XL and NVCC but I don't think this is because of the |
It looks like this is a bug in CUDA 7.5 toolkit when using IBM XL series
Even though the IBM compiler does support C++11. I am raising a bug to see if we can get this fixed. |
Merged into Master |
Would like to be able to provide arguments as:
OMPI_CXX=$PWD/nvcc_wrapper mpicxx .. -Xcompiler <compiler option>
This is slightly messy because of C++11 pass through on POWER.
The text was updated successfully, but these errors were encountered: