From 1fc8a37bd48b7e54455f637ee772e2ec8632d5d4 Mon Sep 17 00:00:00 2001 From: Matthew Emmett Date: Tue, 1 Dec 2020 15:21:22 -0700 Subject: [PATCH] Add hipFFT include directory (transitional step) before ROCm. hipFFT is transitioning to a separate repository (away from being included in rocFFT). During this transition, using the hipFFT version of hipfft.h won't produce a deprecation warning. --- cmake/onnxruntime_providers.cmake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmake/onnxruntime_providers.cmake b/cmake/onnxruntime_providers.cmake index a7d973582d390..8c318e74ec1a1 100644 --- a/cmake/onnxruntime_providers.cmake +++ b/cmake/onnxruntime_providers.cmake @@ -991,7 +991,8 @@ if (onnxruntime_USE_ROCM) if (HAS_NO_UNDEFINED_VAR_TEMPLATE) target_compile_options(onnxruntime_providers_rocm PRIVATE -Wno-undefined-var-template) endif() - target_include_directories(onnxruntime_providers_rocm PRIVATE ${onnxruntime_ROCM_HOME}/include ${onnxruntime_ROCM_HOME}/include/hipcub ${onnxruntime_ROCM_HOME}/include/hiprand ${onnxruntime_ROCM_HOME}/include/rocrand) + # During transition to separate hipFFT repo, put hipfft/include early + target_include_directories(onnxruntime_providers_rocm PRIVATE ${onnxruntime_ROCM_HOME}/hipfft/include ${onnxruntime_ROCM_HOME}/include ${onnxruntime_ROCM_HOME}/include/hipcub ${onnxruntime_ROCM_HOME}/include/hiprand ${onnxruntime_ROCM_HOME}/include/rocrand) target_include_directories(onnxruntime_providers_rocm PRIVATE ${ONNXRUNTIME_ROOT} ${CMAKE_CURRENT_BINARY_DIR}/amdgpu/onnxruntime ${MPI_INCLUDE_DIRS} ${SAFEINT_INCLUDE_DIR} ${ONNXRUNTIME_ROOT}/../cmake/external/eigen) if (onnxruntime_ENABLE_TRAINING)