-
Notifications
You must be signed in to change notification settings - Fork 10
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
support fully automatic build #18
Comments
Related: leofang/ptycho/issues/7 |
MPI related issues would be addressed by NSLS-II/lightsource2-recipes#534 (if we're doing |
I think this can be easily achieved using functionalities from https://github.com/cupy/cupy/blob/master/install/build.py |
New thought: keep all |
1. this is an ongoing effort to address #18 2. to use this, do: import build_cuda_source a = build_cuda_source.build() a is a list of generated cubin files
This is part of ongoing efforts addressing #18 The key function name is changed from 'build' to 'compile': import build_cuda_source a = build_cuda_source.compile()
…ild; bump version This is part of ongoing efforts addressing #18. This allows the .cubin files be generated automatically based on the installed CUDA toolkit version.
This is part of ongoing effort addressing #18
See the progress report in the |
1. this is an ongoing effort to address #18 2. to use this, do: import build_cuda_source a = build_cuda_source.build() a is a list of generated cubin files
This is part of ongoing efforts addressing #18 The key function name is changed from 'build' to 'compile': import build_cuda_source a = build_cuda_source.compile()
…ild; bump version This is part of ongoing efforts addressing #18. This allows the .cubin files be generated automatically based on the installed CUDA toolkit version.
This is part of ongoing effort addressing #18
As of v1.0.3, the GPU issues are mostly resolved at the pip level, while the mpi and fftw issues are solved at the Conda level (see PR at NSLS-II/lightsource2-recipes/pull/486). For Conda users, therefore, this issue may be considered resolved. For pip users, it is just a matter of checking if external libraries exist. There's not much we can do at the pip level. Closing this. |
In
setup.py
(and/or accompanying codes) we should:detect existence of GPU and test if CUDA driver & toolkit are properly installedcompile the CUDA code into~/.ptycho_gui/
(can be avoided if we useRawKernel.compile()
in the backend, see Add RawKernel.compile() method cupy/cupy#1889); this would also involve movingconfigure.sh
to the backend.Choose the right CuPy version to install if GPU is to be usedThe text was updated successfully, but these errors were encountered: