Skip to content

Error running containerized DLMUSE #82

Description

@dhivsrin

Hi,

I am getting below error while running containerized version of NiChart_DLMUSE on CapeTown Site from PHENOM. The initial input image/header seems fine to me.

Error: mkl-service + Intel(R) MKL: MKL_THREADING_LAYER=INTEL is incompatible with libgomp.so.1 library.
Try to import numpy first or set the threading layer accordingly. Set MKL_SERVICE_FORCE_INTEL to force it.
Renaming dic is saved to /cbica/projects/PsychAnalysis/Pipelines/PHENOM_DLMUSE_2025/CapeTown/Protocols/DLMUSE/temp_working_dir/s2_dlicv/renamed_image/renaming.json
Loading the model...
There are 327 cases in the source folder
I am process 0 out of 1 (max process ID is 0, we start counting with 0!)
There are 327 cases that I would like to predict
Error: mkl-service + Intel(R) MKL: MKL_THREADING_LAYER=INTEL is incompatible with libgomp.so.1 library.
Try to import numpy first or set the threading layer accordingly. Set MKL_SERVICE_FORCE_INTEL to force it.
Error: mkl-service + Intel(R) MKL: MKL_THREADING_LAYER=INTEL is incompatible with libgomp.so.1 library.
Try to import numpy first or set the threading layer accordingly. Set MKL_SERVICE_FORCE_INTEL to force it.
Error: mkl-service + Intel(R) MKL: MKL_THREADING_LAYER=INTEL is incompatible with libgomp.so.1 library.
Try to import numpy first or set the threading layer accordingly. Set MKL_SERVICE_FORCE_INTEL to force it.
Error: mkl-service + Intel(R) MKL: MKL_THREADING_LAYER=INTEL is incompatible with libgomp.so.1 library.
Try to import numpy first or set the threading layer accordingly. Set MKL_SERVICE_FORCE_INTEL to force it.
Traceback (most recent call last):
File "/opt/conda/bin/DLICV", line 8, in
sys.exit(main())
File "/opt/conda/lib/python3.10/site-packages/DLICV/main.py", line 329, in main
predictor.predict_from_files(
File "/opt/conda/lib/python3.10/site-packages/nnunetv2/inference/predict_from_raw_data.py", line 258, in predict_from_files
return self.predict_from_data_iterator(data_iterator, save_probabilities, num_processes_segmentation_export)
File "/opt/conda/lib/python3.10/site-packages/nnunetv2/inference/predict_from_raw_data.py", line 351, in predict_from_data_iterator
for preprocessed in data_iterator:
File "/opt/conda/lib/python3.10/site-packages/nnunetv2/inference/data_iterators.py", line 117, in preprocessing_iterator_fromfiles
[i.pin_memory() for i in item.values() if isinstance(i, torch.Tensor)]
File "/opt/conda/lib/python3.10/site-packages/nnunetv2/inference/data_iterators.py", line 117, in
[i.pin_memory() for i in item.values() if isinstance(i, torch.Tensor)]
RuntimeError: CUDA error: CUDA driver version is insufficient for CUDA runtime version
CUDA kernel errors might be asynchronously reported at some other API call, so the stacktrace below might be incorrect.
For debugging consider passing CUDA_LAUNCH_BLOCKING=1.
Device-side assertions were explicitly omitted for this error check; the error probably arose while initializing the DSA handlers.

Arguments:
Namespace(in_dir='/cbica/projects/PsychAnalysis/Pipelines/PHENOM_DLMUSE_2025//CapeTown/Protocols/In', out_dir='/cbica/projects/PsychAnalysis/Pipelines/PHENOM_DLMUSE_2025//CapeTown/Protocols/DLMUSE', device='cuda', cores='1', bids=False, clear_cache=False, dlmuse_args='', dlicv_args='', refaced_data=False, help=False)

Traceback (most recent call last):
File "/opt/conda/lib/python3.10/site-packages/nibabel/loadsave.py", line 101, in load
stat_result = os.stat(filename)
FileNotFoundError: [Errno 2] No such file or directory: '/cbica/projects/PsychAnalysis/Pipelines/PHENOM_DLMUSE_2025/CapeTown/Protocols/DLMUSE/temp_working_dir/s2_dlicv/S4132_20110209_T1_DLICV.nii.gz'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/opt/conda/bin/NiChart_DLMUSE", line 8, in
sys.exit(main())
File "/opt/conda/lib/python3.10/site-packages/NiChart_DLMUSE/main.py", line 250, in main
run_pipeline(
File "/opt/conda/lib/python3.10/site-packages/NiChart_DLMUSE/dlmuse_pipeline.py", line 148, in run_pipeline
apply_mask_img(df_img, in_dir, in_suff, mask_dir, mask_suff, out_dir, out_suff)
File "/opt/conda/lib/python3.10/site-packages/NiChart_DLMUSE/MaskImage.py", line 187, in apply_mask_img
mask_img(in_img, in_mask, out_img)
File "/opt/conda/lib/python3.10/site-packages/NiChart_DLMUSE/MaskImage.py", line 83, in mask_img
nii_mask = nib.load(mask_img)
File "/opt/conda/lib/python3.10/site-packages/nibabel/loadsave.py", line 103, in load
raise FileNotFoundError(f"No such file or no access: '{filename}'")
FileNotFoundError: No such file or no access: '/cbica/projects/PsychAnalysis/Pipelines/PHENOM_DLMUSE_2025/CapeTown/Protocols/DLMUSE/temp_working_dir/s2_dlicv/S4132_20110209_T1_DLICV.nii.gz

Here is my code:

singularity run --cleanenv
-B /cbica/projects/PsychAnalysis/Pipelines/PHENOM_DLMUSE_2025:/pipelinedir/
nichart_dlmuse-1.0.10.sif
-i ${in}
-o ${out}
-d cuda
-c 1

Please let me know if you need more details.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions