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

Installation issue #1132

Open
nwaxham opened this issue May 24, 2024 · 12 comments
Open

Installation issue #1132

nwaxham opened this issue May 24, 2024 · 12 comments

Comments

@nwaxham
Copy link

nwaxham commented May 24, 2024

Describe your problem

Installation failing. There is nothing else installed on this workstation other than the ubuntu os. This attempt at installing relion is the first package I'm attempting to install.

Environment:

  • OS: [Ubuntu 22.04 LTS]
  • MPI runtime: [mpiexec (OpenRTE) 4.1.2]
  • RELION version [have not been able to install, trying for 5.0]
  • Memory: [196GB]
  • GPU: [dual RTX 2080Ti]

Running into a persistent problem installing relion v5 (or v4) on a fresh install of ubuntu 22.04.04 during the make -j command.

The call works, but each time hits the same error and exits.
Seems GPU related
nvcc --version returns:
Cuda compilation tools, release 11.5, V11.5.119
Build cuda_11.5.r11.5/compiler.30672275_0

Specific error, copied from terminal (original appears in red):
/usr/include/c++/11/bits/std_function.h:530:146: note: ‘_ArgTypes’
CMake Error at relion_gpu_util_generated_cuda_projector_plan.cu.o.Release.cmake:280 (message):
Error generating file
/home/neal/relion/build/src/apps/CMakeFiles/relion_gpu_util.dir/__/acc/cuda/./relion_gpu_util_generated_cuda_projector_plan.cu.o

make[2]: *** [src/apps/CMakeFiles/relion_gpu_util.dir/build.make:4698: src/apps/CMakeFiles/relion_gpu_util.dir/__/acc/cuda/relion_gpu_util_generated_cuda_projector_plan.cu.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:381: src/apps/CMakeFiles/relion_gpu_util.dir/all] Error 2
make: *** [Makefile:136: all] Error 2

Any insights would be welcomed.

Thanks. Neal.

@biochem-fan
Copy link
Member

/usr/include/c++/11/bits/std_function.h:530:146: note: ‘_ArgTypes’

This looks like an incompatibility of CUDA and GCC.
Can you try a newer CUDA SDK that natively supports Ubuntu 22.04 LTS?

@nwaxham
Copy link
Author

nwaxham commented May 24, 2024

Installed are the newest versions of the cuda driver and the cuda toolkit

cuda-repo-ubuntu2204-12-5-local_12.5.0-555.42.02-1_amd64
cuda-toolkit-12-5 is already the newest version (12.5.0-1).

@biochem-fan
Copy link
Member

biochem-fan commented May 24, 2024

nvcc --version returns:
Cuda compilation tools, release 11.5, V11.5.119
Build cuda_11.5.r11.5/compiler.30672275_0

But this says 11.5. Aren't you building RELION within a conda environment?

@nwaxham
Copy link
Author

nwaxham commented May 24, 2024

agreed, just discovered that also.
when I run sudo apt-get -y install cuda-toolkit-12-5
it returns cuda-toolkit-12-5 is already the newest version (12.5.0-1).
but nvcc --version returns:
Cuda compilation tools, release 11.5, V11.5.119
Build cuda_11.5.r11.5/compiler.30672275_0

It's like the install is not over writing the resident 11.5 version.
N.

@biochem-fan
Copy link
Member

Your PATH is wrong.

@nwaxham
Copy link
Author

nwaxham commented May 24, 2024

BTW, I do NOT activate the conda environment for the make and build steps, the instructions say not to do that. I'm doing the installation with conda deactivate.

@biochem-fan
Copy link
Member

BTW, I do NOT activate the conda environment for the make and build steps, the instructions say not to do that. I'm doing the installation with conda deactivate.

Great. Then the old CUDA is coming from somewhere else. Check which nvcc and amend the PATH.

@nwaxham
Copy link
Author

nwaxham commented May 25, 2024

Thanks. which nvcc returns /usr/bin/nvcc. /usr/bin is already in the path.

@biochem-fan
Copy link
Member

What installed the old CUDA?

You wrote

This attempt at installing relion is the first package I'm attempting to install.

and you did

sudo apt-get -y install cuda-toolkit-12-5

but clearly something else has installed the old CUDA.

This is not a RELION issue but your system issue so I cannot help further.
Please sort it out yourself.

@nwaxham
Copy link
Author

nwaxham commented May 25, 2024 via email

@nwaxham
Copy link
Author

nwaxham commented May 27, 2024

Some progress. Cuda problem corrected. This is on Ubuntu 22.04.

A question about the GUI that requires FLTK. It is not clear if FLTK is installed with the command: sudo apt install cmake git build-essential mpi-default-bin mpi-default-dev libfftw3-dev libtiff-dev libpng-dev ghostscript libxft-dev
Does FLTK need installed separately before running cmake?

@biochem-fan
Copy link
Member

No. RELION will download and build FLTK itself.
If this does not work, please add -DFORCE_OWN_FLTK=ON to cmake.

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

No branches or pull requests

2 participants