-
Notifications
You must be signed in to change notification settings - Fork 49
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
ci-only: enable gridtools gpu code generation #1276
Conversation
project({{project_name}}) | ||
cmake_minimum_required(VERSION 3.20.0) | ||
|
||
# Languages | ||
enable_language(CXX) | ||
{{"\\n".join(extra_languages)}} |
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.
in a discussion with @egparedes we realized that probably we can just do
include(CheckLanguage)
check_language(CUDA)
if(CMAKE_CUDA_COMPILER)
enable_language(CUDA)
endif()
Ideally we would make the result of the check available to the Python side, because we can then error nicely, but as a first step we could just error by forwarding the CMake error which probably would be something like "gtfn_gpu
is not a target".
Implemented in #1325 |
This draft PR purely exists to run the CI. CI is not expected to pass, neither on github nor on cscs-ci. The interest lies in how they fail.