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

ci-only: enable gridtools gpu code generation #1276

Closed
wants to merge 20 commits into from

Conversation

DropD
Copy link
Contributor

@DropD DropD commented Jun 22, 2023

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.

project({{project_name}})
cmake_minimum_required(VERSION 3.20.0)

# Languages
enable_language(CXX)
{{"\\n".join(extra_languages)}}
Copy link
Contributor

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".

@havogt
Copy link
Contributor

havogt commented Dec 19, 2023

Implemented in #1325

@havogt havogt closed this Dec 19, 2023
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.

2 participants