Skip to content

Conversation

@RossBrunton
Copy link
Contributor

LLVM requires CMake 3.20 and up, which is specified in all the "built in" LLVM projects. This change bumps the DPCPP/SYCL specific projects to match that version.

LLVM requires CMake 3.20 and up, which is specified in all the
"built in" LLVM projects. This change bumps the DPCPP/SYCL specific
projects to match that version.
@RossBrunton RossBrunton requested review from a team as code owners May 6, 2024 15:45
@RossBrunton RossBrunton requested a review from cperkinsintel May 6, 2024 15:45
Copy link
Contributor

@sarnex sarnex left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

esimd lgtm

@sarnex sarnex requested a review from a team May 6, 2024 15:49
Copy link
Contributor

@asudarsa asudarsa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes look good. Thanks

Copy link
Contributor

@victor-eds victor-eds left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sycl-fusion change LGTM

@RossBrunton
Copy link
Contributor Author

@intel/llvm-gatekeepers please merge

@sarnex sarnex merged commit 4b952e6 into intel:sycl May 7, 2024
@RossBrunton RossBrunton deleted the ross/cmakebump branch February 19, 2025 14:58
rafbiels added a commit to rafbiels/llvm that referenced this pull request Mar 5, 2025
find_package(CUDA) is deprecated since CMake 3.10 and the functionality
we need is provided by find_package(CUDAToolkit) since CMake 3.17.

Thanks to SYCL configuration now requiring CMake >3.20 (intel#13664), we can
rely on find_package(CUDAToolkit) to work in all setups.

Remove the deprecated calls and replace them with the recommended one.
Clean up all extra CMake code dealing with finding CUPTI as that is
also no longer needed (partially thanks to intel#17272). Replace all
variables from the old module with corresponding ones from the new one.

This solves multiple issues with finding libraries, notably including
the failure to find libcuda.so automatically on systems where the CUDA
driver is not installed and only the toolkit is available. This is a
reasonable use case for building DPC++ on a build machine without a
GPU and distributing for use on GPU machines.
kbenzie pushed a commit that referenced this pull request Mar 12, 2025
…#17315)

`find_package(CUDA)` is deprecated since CMake 3.10 and the
functionality we need is provided by `find_package(CUDAToolkit)` since
CMake 3.17.

Thanks to SYCL configuration now requiring CMake >3.20 (#13664), we can
rely on `find_package(CUDAToolkit)` working in all setups.

Changes:
* Remove the deprecated calls and replace them with the recommended one.
* Clean up all extra CMake code dealing with finding CUPTI as that is
also now handled correctly by the FindCUDAToolkit module.
* Replace all variables from the old module with corresponding ones from
the new one, where they differ.
* Update documentation on specifying custom CUDA installation path.

This solves multiple issues with finding libraries, notably including
the failure to find libcuda.so automatically on systems where the CUDA
driver is not installed and only the toolkit is available. This is a
reasonable use case for building DPC++ on a build machine without a GPU
and distributing for use on GPU machines
(easybuilders/easybuild-easyconfigs#22418 (comment)).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants