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
Add HIP support #5253
Add HIP support #5253
Conversation
8c7d921
to
d85dd78
Compare
This code is tested to work on an AMD card. All the cuda tests pass in their hipified form, two are rewritten as they contain types/function that do not exist in HIP. |
jenkins build this hip please |
2 similar comments
jenkins build this hip please |
jenkins build this hip please |
opm/simulators/linalg/PreconditionerFactoryGPUIncludeWrapper.hpp
Outdated
Show resolved
Hide resolved
a2e064a
to
a624578
Compare
jenkins build this hip please |
jenkins build this serial hip hipify please |
5 similar comments
jenkins build this serial hip hipify please |
jenkins build this serial hip hipify please |
jenkins build this serial hip hipify please |
jenkins build this serial hip hipify please |
jenkins build this serial hip hipify please |
jenkins build this serial hip hipify please |
jenkins build this hipify please |
5496082
to
595f0fb
Compare
jenkins build this hipify please |
3 similar comments
jenkins build this hipify please |
jenkins build this hipify please |
jenkins build this hipify please |
This commits adds cmake functionality that can hipify the cuistl framework to support AMD GPUs. Some tests have been written as HIP does not mirror CUDA exactly. CONVERT_CUDA_TO_HIP is the new CMAKE argument. CMAKE version is increased to include HIP as a language (3.21 required). A macro is added to create a layer of indirection that will make only cuistl files that have been changed rehipified. Some BDA stuff is extracted to make sure CUDA is not accidentally included.
5b7d3a2
to
e9d6b32
Compare
jenkins build this hipify hip serial please |
1 similar comment
jenkins build this hipify hip serial please |
This PR adds support for using hipify on the cuda code to allow for GPU support on both AMD and Nvidia architectures. The HIP code is hidden from the programmer in the build directory, and the cmake adds dependencies to only recompile the necessary files when making changes in the cuda source code.
This PR is still in draft mode as several temporary changes have been made to make a cmake file.