0

I am running JupyterLab through a server (which is managed remotely, I am a user without sudo access). I want to use CUDA but in order to do so I have to load it in as a module using module load bash command when in terminal.

The CUDA package is already installed, so I'm presuming that module load merely adds paths that point to where the package is. I cannot use !module load cuda in Jupyter, so I cannot use CUDA at all. CUDA installation also requires sudo access.

I've tried using %env to add environment variables but beyond that I am really stuck.

Is there a way I can use module load or properly point to where the package is, because the Python library I'm using unfortunately keeps throwing this error when trying to import it

libcudart.so.9.2: cannot open shared object file: No such file or directory

All help appreciated

1 Answers1

1

It seems module command is not recognized in the environment you try to use. So first you need to define this shell function by sourcing module initialization script. Such script can be found in /usr/share/Modules/init on Red Hat like systems.

After running:

source /usr/share/Modules/init/bash

You should get the module shell function defined, then doing a module avail will tell you if a cuda modulefile is available for load with module load cuda.