-
Notifications
You must be signed in to change notification settings - Fork 5
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
Feature gpu compile options #237
Conversation
… setting up NuOscillator much easier as we need to pass the CPU compiler flags to NuOscillator
Hi @EdAtkin, thank you for contributing to MaCh3! Please wait for MaCh3 developers to review your PR. If no one answers within a week, please message people from this list: https://github.com/orgs/mach3-software/teams/mach3admin . While waiting, please enjoy this Use this action on your projects. Use jokes on issues instead. |
CMakeLists.txt
Outdated
#Create a seperate target for GPU compiler options | ||
add_library(MaCh3GPUCompilerOptions INTERFACE) |
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.
can you just move it away from if GPU?
But make it empty for CPU only build? I wonder if this will not simplyfy logic
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.
yep good point! I've changed this both in the main CMakeList.txt and also manager/CMakeLists.txt and splines/CMakeLists.txt
…st empty, this means fewer if statements. Also removed the GPU setting for LOW_MEMORY_STUCTS as this isn't used
…e_gpu_compile_options Pulling in from develop to get changes to README
Pull request description
Making separate GPU and CPU compiler options. This is primarily so that CPU-only flags can be exported more easily to NuOscillator without the need to do some horrible regex comparisons.
Changes or fixes
A separate GPU option now exists where all of the CUDA-related flags now live.
Examples
With GPU enabled you can see the MaCh3GPUCompilerOptions and MaCh3CompilerOptions getting printed out
With CPU-only you can see only MaCh3Compiler options getting printed out