-
Notifications
You must be signed in to change notification settings - Fork 94
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
Modernize CMake setup for HIP #1334
Changes from all commits
6cd265f
b611c0b
46ddec4
e90f8d7
7419034
8ac6658
d972798
2c80e27
60e363a
d1fb989
a8c859e
4bfb545
270cf53
382e1f0
5a0a476
6422245
55417be
18e8946
d5153f4
5256381
2494442
a8a407f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,7 +31,8 @@ if (NOT DEFINED GINKGO_BUILD_CUDA) | |
endif() | ||
|
||
if (NOT DEFINED GINKGO_BUILD_HIP) | ||
if(GINKGO_HIPCONFIG_PATH) | ||
check_language(HIP) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. does this check_language need some minimal version requirement? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. AFAIK check_language launches a separate CMake process, so this fails gracefully on older CMake versions. |
||
if(CMAKE_HIP_COMPILER) | ||
message(STATUS "Enabling HIP executor") | ||
set(GINKGO_HAS_HIP ON) | ||
endif() | ||
|
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.
I think for this we only need to link hip package not using hip to compiling it?
hip::host