rse-ops / docker-images

Collection of Docker image bases provided by the RSE-ops community.
https://rse-ops.github.io/docker-images/
MIT License
5 stars 8 forks source link

Broken cuda-10.1.243 container #48

Closed mdavis36 closed 2 years ago

mdavis36 commented 2 years ago

The cuda-10.1.243 container is broken when trying to build code with nvcc. The gcc version the container is using targets gcc@9.3.0. nvcc10 doesn't support gcc past 8.X.

davidbeckingsale commented 2 years ago

Thanks for reporting this @mdavis36

vsoch commented 2 years ago

@davidbeckingsale I can give a shot at fixing this - what is the recommended action?

Perhaps we need to add to the Dockerfile a step to explicitly install a certain version of gcc, and then to use a hard coded matrix of variables including gcc versions?

davidbeckingsale commented 2 years ago

I think just putting gcc@8.something and making sure that was the default would be a good fix. Alternative might be to use an older Ubuntu base like 18.

vsoch commented 2 years ago

So you mean hard coding it into the Dockerfile for all images?

vsoch commented 2 years ago

@davidbeckingsale this is a dynamically generated matrix and gcc is not a variable (it's whatever is provided in the container) https://github.com/rse-ops/docker-images/blob/main/ubuntu/cuda/uptodate.yaml.

Why is nvcc only supporting gcc that is so old? Lame.

davidbeckingsale commented 2 years ago

Because it's an old NVCC :'(

vsoch commented 2 years ago

:ghost: boo! :laughing: