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

Fix compilation on Bessemer (GCC11?) #988

Merged
merged 1 commit into from
Nov 21, 2022
Merged

Fix compilation on Bessemer (GCC11?) #988

merged 1 commit into from
Nov 21, 2022

Conversation

Robadob
Copy link
Member

@Robadob Robadob commented Nov 21, 2022

The crux of the issue was that ModelDescription.h includes CUDASimulation.cuh and CUDAEnsemble.cuh. This has the knock-on effect of causing cuda headers to get included in a wide number of places unnecessarily, and for some reason Bessmer/GCC11 causes curand to include cuda headers as C rather than C++.

Many other files were relying on the ModelDescription.h include hierarchy, so some additional includes had to be added elsewhere.

@Robadob Robadob added the bug label Nov 21, 2022
@Robadob Robadob self-assigned this Nov 21, 2022
(Bessemer/GCC11 has issues if a .cpp file includes both cuda_runtime.h and curand_kernel.h)
This has been tested on Bessemer A100s)
Copy link
Member

@ptheywood ptheywood left a comment

Choose a reason for hiding this comment

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

Still builds locally with CUDA 11.4 and GCC 9 (GCC 11.3.0 available from the ubuntu repos is too new for CUDA 11.4, so couldn't repro the original issue locally anyway.

This might be further justification for #78.

@Robadob Robadob merged commit 85e61bb into master Nov 21, 2022
@Robadob Robadob deleted the debug_bess branch November 21, 2022 12:42
Robadob added a commit that referenced this pull request Jul 6, 2023
..on Windows, leading to nested venvs etc.

Have moved from flat-layout to src-layout, so venv dir is not mistakenly included.

Closes #988
Robadob added a commit that referenced this pull request Jul 7, 2023
..on Windows, leading to nested venvs etc.

Have moved from flat-layout to src-layout, so venv dir is not mistakenly included.

Closes #988
ptheywood pushed a commit that referenced this pull request Jul 10, 2023
..on Windows, leading to nested venvs etc.

Have moved from flat-layout to src-layout, so venv dir is not mistakenly included.

Closes #988
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants