You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
CUDA error when running predictions without GPU #126
Processing Train batches: 0%| | 0/1258 [00:00<?, ?it/s]
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/workspace/segger_dev/src/segger/prediction/predict_parquet.py", line 524, in segment
predict_batch(
File "/workspace/segger_dev/src/segger/prediction/predict_parquet.py", line 322, in predict_batch
with cp.cuda.Device(gpu_id):
File "cupy/cuda/device.pyx", line 173, in cupy.cuda.device.Device.__enter__
File "cupy_backends/cuda/api/runtime.pyx", line 202, in cupy_backends.cuda.api.runtime.getDevice
File "cupy_backends/cuda/api/runtime.pyx", line 146, in cupy_backends.cuda.api.runtime.check_status
cupy_backends.cuda.api.runtime.CUDARuntimeError: cudaErrorInsufficientDriver: CUDA driver version is insufficient for CUDA runtime version
I believe the issue could be resolved if there is a way to tell the function to use the cpu. Is this possible in some way?
there's indeed a way to do this. I recommend cloning and reinstalling the repo and then use segger.prediction.predict_parquet.segment. also recommending using these set of params:
For testing I tried to run the code with the latest segger installed from git (leaving out my spatialdata data prep). I still ran into the same CUDARuntimeError
@LouisK92 for now, the prediction step is only available using GPUs (requiring cuda), this is however, not extremely essential, meaning that the model does not require GPUs in theory, but we assumed that given the training, people would anyways have/need GPUs. I will make a PR at some point to circumvent this requirement, but for now we do require GPUs. Would this be not available in your benchmarking config? in that case I'll prioritise this task.
For running the large scale benchmark gpus are available on my side. I am just limited on the development and testing side as the openproblems GitHub action tests only run on cpu and the local tests require docker containers which I can't use on our cluster, that's why I develop locally on a Mac without Nvidia gpu.
I can do some work arounds by disabling the tests and testing on the cluster with a converted singularity container. But it would be super helpful if I could run the tests on cpu
Activity
EliHei2 commentedon Aug 6, 2025
there's indeed a way to do this. I recommend cloning and reinstalling the repo and then use
segger.prediction.predict_parquet.segment. also recommending using these set of params:LouisK92 commentedon Aug 7, 2025
Thanks!
I was trying the cloning and reinstalling. However, as I use the
danielunyi42/segger_dev:cuda121docker container I ran into the issueThe native python version of ubuntu22.04 is python 3.10, therefore the Dockerfile would need to be adjusted. I tried to build one from scratch:
With this the newest segger version can be installed.
My issue now is that I also need
spatialdatain the environment for the data handling and I run into the dependency issue described here: #123LouisK92 commentedon Aug 7, 2025
For testing I tried to run the code with the latest segger installed from git (leaving out my
spatialdatadata prep). I still ran into the sameCUDARuntimeErrorEliHei2 commentedon Aug 8, 2025
@LouisK92 for now, the prediction step is only available using GPUs (requiring cuda), this is however, not extremely essential, meaning that the model does not require GPUs in theory, but we assumed that given the training, people would anyways have/need GPUs. I will make a PR at some point to circumvent this requirement, but for now we do require GPUs. Would this be not available in your benchmarking config? in that case I'll prioritise this task.
EliHei2 commentedon Aug 8, 2025
@daniel-unyi-42 could you look into the docker issues?
LouisK92 commentedon Aug 8, 2025
For running the large scale benchmark gpus are available on my side. I am just limited on the development and testing side as the openproblems GitHub action tests only run on cpu and the local tests require docker containers which I can't use on our cluster, that's why I develop locally on a Mac without Nvidia gpu.
I can do some work arounds by disabling the tests and testing on the cluster with a converted singularity container. But it would be super helpful if I could run the tests on cpu
EliHei2 commentedon Mar 7, 2026
hey! we are moving to the new version which is present on https://github.com/dpeerlab/segger, we're integrating everything into the new repo. thanks for your patience!