-
Notifications
You must be signed in to change notification settings - Fork 23
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
SYCL-specific env and README entry #68
Conversation
Once this is in, I think I'm happy with PR #64. @MichaelSt98 please have a look if this is ok and merge if you're happy with it. |
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.
Many thanks! Looks good and I just tested it.
The only thing to change is maybe to remove set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Xcuda-ptxas --maxrregcount=128")
.
On this note: without -fsycl-early-optimizations
performance is significantly reduced! Maybe some (optimisation) flags can improve the performance even further (of course not relevant here, just to mention it).
set(CMAKE_CXX_FLAGS "-O3 -L/home/nams/opt/dpcpp/lib -fopenmp -lstdc++") | ||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsycl-early-optimizations -fsycl") | ||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsycl-targets=nvptx64-nvidia-cuda") | ||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Xcuda-ptxas --maxrregcount=128") |
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.
Just tested. We can drop set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Xcuda-ptxas --maxrregcount=128")
as those flags are not used for the compilation/linking.
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.
Ok, cool, thanks for checking. I'll drop those and merge this into the main PR then.
Ok, test failures seem to be due to outdated loki-config. I'll merge this and rebase on the original PR to get this ready then. |
Additional encoding of the build settings in a dedicated env with a custom DPCPP install, and a short README description.
Note, it's nothing fancy but it should be enough to make it easily accessible.