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

RELION_CUDA_BIN definition error #171

Closed
wlugmayr opened this issue Feb 1, 2023 · 6 comments · Fixed by #172
Closed

RELION_CUDA_BIN definition error #171

wlugmayr opened this issue Feb 1, 2023 · 6 comments · Fixed by #172
Assignees
Labels
bug Something isn't working

Comments

@wlugmayr
Copy link

wlugmayr commented Feb 1, 2023

scipion3 installp --checkUpdates
Scipion v3.0.13 - Eugenius
Error retrieving plugin Relion binaries: CUDA_LIB (or RELION_CUDA_LIB) is defined, but not CUDA_BIN (or RELION_CUDA_BIN), please execute scipion config --update

when adding RELION_CUDA_BIN it works.

but i get an error when calling:
scipion3 config --update
In section PLUGINS, variable RELION_CUDA_BIN exists in the configuration file but not defined by any package.

@azazellochg azazellochg self-assigned this Aug 2, 2023
@azazellochg azazellochg transferred this issue from scipion-em/scipion-em-reliontomo Aug 2, 2023
@azazellochg
Copy link
Member

@pconesa I'm looking at this. Does it still make sense to ask for both vars defined (https://github.com/scipion-em/scipion-app/blob/devel/scipion/install/funcs.py#L784)? Quite often nvcc would be in your PATH already..

@azazellochg azazellochg added the bug Something isn't working label Aug 2, 2023
@pconesa
Copy link
Contributor

pconesa commented Aug 3, 2023

I actually don't know who needs both? Xmipp?

I guess most of them use CUDA_LIB but nor CUDA_BIN?

I'm also not sure is we should raise an exception in case they are not defined.

@azazellochg
Copy link
Member

azazellochg commented Aug 3, 2023

CUDA_BIN is only required to find nvcc for compilation, so xmipp has it's own XMIPP_CUDA_BIN. Relion uses nvcc as well, if there's no CUDA_BIN then it will look at the PATH. Once binaries are compiled this CUDA_BIN is no longer used...

My point was that we may not need to check if both vars are defined, just make sure that paths are added correctly when any of them is defined.

@pconesa
Copy link
Contributor

pconesa commented Aug 4, 2023

make sense to me. @delarosatrevin ? I think he added this piece of code, should we at least relax it?
We can turn the raise into log lines/warnings? or even as Grigory suggests, just check the paths in check the variable/s exists.

@delarosatrevin
Copy link
Member

I can't remember if I added this code. Anyway, I agree with @azazellochg suggestion, if defined, we use it...if not, nothing happens.

@pconesa
Copy link
Contributor

pconesa commented Aug 4, 2023

ok

@pconesa pconesa self-assigned this Aug 4, 2023
@pconesa pconesa transferred this issue from scipion-em/scipion-em-relion Aug 4, 2023
@azazellochg azazellochg transferred this issue from scipion-em/scipion-em Aug 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants