Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

[SYCL][CUDA] Add cuda_dev_kit feature #1056

Merged
merged 2 commits into from
Jun 27, 2022

Conversation

steffenlarsen
Copy link

These changes add a cuda_dev_kit feature check for detecting availability of a CUDA SDK. CUDA include path and library path can be controlled through the new CUDA_INCLUDE and CUDA_LIBS_DIR variables.

These changes add a cuda_dev_kit feature check for detecting
availability of a CUDA SDK. CUDA include path and library path can be
controlled through the new CUDA_INCLUDE and CUDA_LIBS_DIR variables.

Signed-off-by: Larsen, Steffen <[email protected]>
@steffenlarsen steffenlarsen requested a review from a team as a code owner June 13, 2022 11:01
@steffenlarsen steffenlarsen requested a review from v-klochkov June 13, 2022 11:01
config.cuda_include=lit_config.params.get("cuda_include", (config.cuda_include if config.cuda_include else config.sycl_include))

cuda_options=cuda_options = (' -L'+config.cuda_libs_dir if config.cuda_libs_dir else '')+' -lcuda '+' -I'+config.cuda_include
if cl_options:

Choose a reason for hiding this comment

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

Should this be cl_options if this is for cuda?

Copy link
Author

Choose a reason for hiding this comment

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

Level zero uses this too. Seems like an obfuscated way of determining if it is on Windows.

Choose a reason for hiding this comment

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

Okay, many thanks for clarifying.

AidanBeltonS
AidanBeltonS previously approved these changes Jun 13, 2022
Copy link

@AidanBeltonS AidanBeltonS left a comment

Choose a reason for hiding this comment

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

LGTM

v-klochkov
v-klochkov previously approved these changes Jun 13, 2022
@steffenlarsen steffenlarsen dismissed stale reviews from v-klochkov and AidanBeltonS via 3365e06 June 23, 2022 13:01
@steffenlarsen steffenlarsen requested a review from v-klochkov June 23, 2022 13:02
@steffenlarsen
Copy link
Author

Build-log failure is unrelated and has since been fixed. Merging this.

@steffenlarsen steffenlarsen merged commit 3769374 into intel:intel Jun 27, 2022
myler pushed a commit to myler/llvm-test-suite that referenced this pull request Mar 22, 2023
These changes add a cuda_dev_kit feature check for detecting
availability of a CUDA SDK. CUDA include path and library path can be
controlled through the new CUDA_INCLUDE and CUDA_LIBS_DIR variables.

Signed-off-by: Larsen, Steffen <[email protected]>
aelovikov-intel pushed a commit to aelovikov-intel/llvm that referenced this pull request Mar 27, 2023
These changes add a cuda_dev_kit feature check for detecting
availability of a CUDA SDK. CUDA include path and library path can be
controlled through the new CUDA_INCLUDE and CUDA_LIBS_DIR variables.

Signed-off-by: Larsen, Steffen <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants