Skip to content

Commit ebabd2a

Browse files
authored
Merge pull request #310 from nixprime/main
Do not discard container flags when --cuda-compat-mode is not specified In the case where no cuda-compat-mode was specified on the nvidia-container-cli configure commandline, the calculated set of flags were being CLEARED instead of setting a single bit. This change ensures that the correct bit is set and the remaining bits are left unchanged. This was not affecting the nvidia-container-runtime-hook's usage of the nvidia-container-cli since we explicitly add flags in that case.
2 parents 51a7f20 + 63eb489 commit ebabd2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/nvc_container.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ validate_cuda_compat_mode_flags(struct error *err, int32_t *flags) {
325325
* default to OPT_CUDA_COMPAT_MODE_MOUNT to maintain
326326
* backward compatibility.
327327
*/
328-
*flags &= OPT_CUDA_COMPAT_MODE_MOUNT;
328+
*flags |= OPT_CUDA_COMPAT_MODE_MOUNT;
329329
return (0);
330330
}
331331

0 commit comments

Comments
 (0)