8000 [DFT] Improve support for different ROCm versions by Rbiessy · Pull Request #471 · uxlfoundation/oneMath · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[DFT] Improve support for different ROCm versions #471

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

Merged
merged 2 commits into from
Apr 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion src/dft/backends/rocfft/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,24 @@ target_include_directories(${LIB_OBJ}
target_compile_options(${LIB_OBJ} PRIVATE ${ONEMKL_BUILD_COPT})

find_package(HIP REQUIRED)
find_package(rocfft REQUIRED)
# Require the minimum rocFFT version matching with ROCm 5.4.3.
find_package(rocfft 1.0.21 REQUIRED)

target_link_libraries(${LIB_OBJ} PRIVATE hip::host roc::rocfft)

# Allow to compile for different ROCm versions. See the README for the supported
# ROCm versions.
# Starting ROCm >=6.0 the include files are one directory level deeper.
find_path(
rocfft_EXTRA_INCLUDE_DIR
rocfft.h
PATHS ${rocfft_INCLUDE_DIR}
PATH_SUFFIXES rocfft
NO_DEFAULT_PATH
REQUIRED
)
target_include_directories(${LIB_OBJ} PRIVATE ${rocfft_EXTRA_INCLUDE_DIR})

target_link_libraries(${LIB_OBJ} PUBLIC ONEMKL::SYCL::SYCL)

set_target_properties(${LIB_OBJ} PROPERTIES
Expand Down
0