Skip to content
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

Merged
merged 3 commits into from
Jan 24, 2024
Merged

SYCL-specific env and README entry #68

merged 3 commits into from
Jan 24, 2024

Conversation

mlange05
Copy link
Collaborator

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.

@mlange05
Copy link
Collaborator Author

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.

Copy link
Contributor

@MichaelSt98 MichaelSt98 left a 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")
Copy link
Contributor

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.

Copy link
Collaborator Author

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.

@mlange05
Copy link
Collaborator Author

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.

@mlange05 mlange05 merged commit ed0ced0 into nams_sycl Jan 24, 2024
4 of 16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants