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

CMake: improve MSVC+CUDA support #996

Merged
merged 1 commit into from
Jun 10, 2020

Conversation

robertmaynard
Copy link
Contributor

The primary issue now is that nvcc doesn't seem to be parsing with
/Za enabled, so alternate tokens are causing compile failures.

The primary issue now is that nvcc doesn't seem to be parsing with
/Za enabled, so alternate tokens are causing compile failures.
@@ -94,10 +94,17 @@ add_library(AMReX::Flags_CXX_REQUIRED ALIAS Flags_CXX_REQUIRED)

target_compile_options( Flags_CXX_REQUIRED
INTERFACE
$<${_cxx_msvc}:/Za /bigobj
Copy link
Contributor Author

Choose a reason for hiding this comment

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

FYI: CMake generator expressions can't span multiple lines so these two lines had to change no matter what

@ax3l ax3l requested review from mic84, ax3l and WeiqunZhang June 10, 2020 20:01
@ax3l ax3l added the install label Jun 10, 2020
Copy link
Member

@ax3l ax3l left a comment

Choose a reason for hiding this comment

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

Welcome to AMReX Robert!
Thank you for these fixes! 🚀 ✨

@ax3l ax3l merged commit 3bee527 into AMReX-Codes:development Jun 10, 2020
@ax3l
Copy link
Member

ax3l commented Jun 10, 2020

Rebased my GH Action test now, let's see: https://github.com/ax3l/amrex/actions

@ax3l ax3l added the GPU label Jun 10, 2020
mic84 added a commit to mic84/amrex that referenced this pull request Jun 11, 2020
mic84 added a commit that referenced this pull request Jun 12, 2020
@robertmaynard robertmaynard deleted the closer_to_cuda_windows branch November 30, 2020 20:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants