-
Notifications
You must be signed in to change notification settings - Fork 102
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 HIP Compiler on Corona #1255
Comments
@homerdin @trws @rhornung67 @artv3 @davidbeckingsale Moving the discussion from email to the Github issue. The questions I posed in the email are here: If we want to use this version of clang, shall I install one somewhere in a public directory? Is there interest in having the same SYCL compiler, but for a CUDA backend? I think Pascal is the platform for an Intel-CUDA configuration, but it has an old NVIDIA card and would require an updated ROCM. |
@artv3 I've rebuilt and installed the latest version of the SYCL HIP compiler on |
I hit the following build errors:
|
Whoops, added group read & exe permissions to the compiler directory. |
Permissions forall! |
Notes to self:
|
Preserving the instructions from 2022 for posterity - Instructions for building a working SYCL compiler on Corona:
Using the compiler: A. Change paths to point to clang-sycl installation:
B. Create a softlink to
C. Compile RAJA with Caveat - Need to comment out Also, apparently some nodes on Corona have non-functional GPUs, so some allocations will produce segfaulting runs. |
Can we use a newer version of ROCm? 5.1 is old and we'll soon be moving to 6.0. Does 5.6 work? |
Yes, if you look at the comment on top, I'm currently using rocm/5.6.0. The rocm/5.1.0 stuff is what I did last year, and I'm keeping those instructions just in case we need to refresh ourselves on how to build the compiler. |
Superceded by #1644 |
Instructions for building a working SYCL compiler on Corona:
--cmake-gen "Unix Makefiles" \
--cmake-opt=-DSYCL_BUILD_PI_HIP_ROCM_DIR=/opt/rocm-5.7.1 \
--cmake-opt=-DSYCL_BUILD_PI_HIP_ROCM_INCLUDE_DIR=/opt/rocm-5.7.1/include \
--cmake-opt=-DSYCL_BUILD_PI_HIP_ROCM_LIB_DIR=/opt/rocm-5.7.1/lib \
--cmake-opt=-DSYCL_BUILD_PI_HIP_INCLUDE_DIR=/opt/rocm-5.7.1/include \
--cmake-opt=-DSYCL_BUILD_PI_HIP_HSA_INCLUDE_DIR=/opt/rocm-5.7.1/hsa/include/hsa \
--cmake-opt=-DSYCL_BUILD_PI_HIP_LIB_DIR=/opt/rocm-5.7.1/lib \
--cmake-opt=-DUR_HIP_ROCM_DIR=/opt/rocm-5.7.1 \
--cmake-opt=-DUR_HIP_INCLUDE_DIR=/opt/rocm-5.7.1/include \
--cmake-opt=-DUR_HIP_HSA_INCLUDE_DIR=/opt/rocm-5.7.1/hsa/include/hsa \
--cmake-opt=-DUR_HIP_LIB_DIR=/opt/rocm-5.7.1/lib
Using the compiler:
A. Run the Corona script in the RAJA repo:
Confirmed in rocprof that GPU is being used in RAJA test.
The text was updated successfully, but these errors were encountered: