-
Notifications
You must be signed in to change notification settings - Fork 30
Enable architecture selection for DPCTL_TARGET_CUDA
#2096
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
Open
vlad-perevezentsev
wants to merge
10
commits into
master
Choose a base branch
from
update_cuda_build
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
bae5f3d
Clean up DPCTL_TARGET_CUDA handling
vlad-perevezentsev de83f29
Ver 1: Add sm_* offload arch support to DPCTL_TARGET_CUDA
vlad-perevezentsev 9751a71
Ver 2: Use nvidia_gpu_sm_* alias in -fsycl-targets for CUDA
vlad-perevezentsev 4a3ecf8
Update CUDA build docs
vlad-perevezentsev 58710ed
Merge master into update_cuda_build
vlad-perevezentsev 80f7bc7
Improve robustness of DPCTL_TARGET_CUDA handling
vlad-perevezentsev d395910
Update DPCTL_TARGET_CUDA option description
vlad-perevezentsev 758e00f
Apply remarks
vlad-perevezentsev 155ca52
Merge master into update_cuda_build
vlad-perevezentsev feee948
Use string(CONCAT) for multi-line DPCTL_TARGET_CUDA description
vlad-perevezentsev File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it fair to validate
DPCTL_TARGET_CUDA
only in case when emptyDPCTL_SYCL_TARGETS
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it was how we were doing it before—but it looks like current logical flow will add HIP targets even when
DPCTL_SYCL_TARGETS
is not none, but not CUDAso that should probably be changed, either make
DPCTL_SYCL_TARGETS
exclusive from both or checkDPCTL_TARGET_CUDA
as wellThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In my understanding, when the user passes
DPCTL_SYCL_TARGETS
he is responsible for the correctness of the flags.The logic of checking
if (NOT “x${DPCTL_TARGET_HIP}” STREQUAL “x”)
whenDPCTL_SYCL_TARGETS
isnot none
was added to pass the correct compile and link options.I am already working on PR that will refresh the logic for AMD build using aliases to remove
if(_dpctl_amd_targets)
branch.