Closed chsasank closed 4 months ago
Hi @chsasank Thank you for your interest in using portBLAS. Could you please try and see if the following changes work for you or not? Thanks.
diff --git a/cmake/Modules/FindDPCPP.cmake b/cmake/Modules/FindDPCPP.cmake
index f8eec16..78175ad 100644
--- a/cmake/Modules/FindDPCPP.cmake
+++ b/cmake/Modules/FindDPCPP.cmake
@@ -58,12 +58,14 @@ if(UNIX)
INTERFACE_COMPILE_OPTIONS "${DPCPP_FLAGS}"
INTERFACE_LINK_OPTIONS "${DPCPP_FLAGS}"
INTERFACE_LINK_LIBRARIES ${DPCPP_LIB_DIR}
- INTERFACE_INCLUDE_DIRECTORIES "${DPCPP_BIN_DIR}/../include/sycl")
+ INTERFACE_INCLUDE_DIRECTORIES "${DPCPP_BIN_DIR}/../include/sycl"
+ INTERFACE_INCLUDE_DIRECTORIES "${DPCPP_BIN_DIR}/../../include/sycl")
else()
set_target_properties(DPCPP::DPCPP PROPERTIES
INTERFACE_COMPILE_OPTIONS "${DPCPP_FLAGS}"
INTERFACE_LINK_LIBRARIES ${DPCPP_LIB_DIR}
- INTERFACE_INCLUDE_DIRECTORIES "${DPCPP_BIN_DIR}/../include/sycl")
+ INTERFACE_INCLUDE_DIRECTORIES "${DPCPP_BIN_DIR}/../include/sycl"
+ INTERFACE_INCLUDE_DIRECTORIES "${DPCPP_BIN_DIR}/../../include/sycl")
endif()
if (${DPCPP_SYCL_TARGET} STREQUAL "nvptx64-nvidia-cuda")
Side note: clang++
is going to get deprecated soon in the future oneAPI toolkit releases, for more information you can check the README file inside /opt/intel/oneapi/2024.0/bin/compiler/README.txt
on your system.
It works with your patch!
Side note: clang++ is going to get deprecated soon in the future oneAPI toolkit releases, for more information you can check the README file inside /opt/intel/oneapi/2024.0/bin/compiler/README.txt on your system.
I just followed your readme. Happy to make a PR with change to icpx if that's the recommended way to build.
We would rather not update the readme, for now, to change the preferred compiler to icpx
instead of clang++
. icpx
is a closed source release compiler shipped with the oneAPI toolkit, whereas clang++
is available with the nightly releases and when compiling llvm
from source. So the preference would still be clang++
as it is opensource.
Hi @chsasank, it looks like we solved this issue. Is it ok to you if I close it? Thank you.
Sure thanks
Hi,
I have been trying to build autotuner but CMake fails with following error.
Command I used:
Error:
sycl headers are at /opt/intel/oneapi/2024.0/include/sycl/ in my system.
I got response on discourse (https://support.codeplay.com/t/how-to-build-portblas-for-intel-gpus/667/7) that this is an issue with portBLAS cmake with oneapi changes b/w 2023.x and 2024.x