Skip to content
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

Remove deprecated use of find_package(CUDA) #98

Merged
merged 2 commits into from
May 28, 2024
Merged

Conversation

Tabrizian
Copy link
Member

find_package(CUDA) is deprecated.

https://cmake.org/cmake/help/latest/module/FindCUDA.html

Deprecated since version 3.10: Do not use this module in new code.

@Tabrizian Tabrizian requested a review from GuanLuo May 23, 2024 03:14
CMakeLists.txt Outdated

enable_language(CUDA)
set_target_properties(kernel_library_new PROPERTIES LANGUAGE CUDA)
set_target_properties(kernel_library_new PROPERTIES CUDA_ARCHITECTURES "53;60;61;62;70;72;75")
Copy link
Contributor

@rmccorm4 rmccorm4 May 23, 2024

Choose a reason for hiding this comment

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

Just for my own curiosity - any idea what the implications of this line not including Ampere+ (>=8.0)?

Does it mean this will be (a) JIT'd at startup, (b) not taking advantage of some newer arch-specific features, (c) unsupported on those archs, or (d) other?

Copy link
Member Author

Choose a reason for hiding this comment

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

That's a great question that I don't know the answer to.

Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure what is the new variable name for it is, code defines the optimized kernel for the listed CC, arch defines the PTX generated which provides support for CC not listed above.

GuanLuo
GuanLuo previously approved these changes May 23, 2024
@Tabrizian Tabrizian requested a review from GuanLuo May 24, 2024 19:40
@Tabrizian Tabrizian merged commit b5dab15 into main May 28, 2024
1 check passed
@Tabrizian Tabrizian deleted the imant-deprecated branch May 28, 2024 20:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants