I use r35.4.1 rootfs and install cuda12.2,but cudaGetDeviceCount got 0

  1. I use orin nx 8G with r35.4.1 rootfs.
  2. I download the latest cuda12.2 & install it
  3. when use cudaGetDeviceCount , only got a 0 value.
    int device_count = 0;
    cudaGetDeviceCount(&device_count);
    printf(“get dev cnt = %d\n”, device_count);
    ------ when running the code will got: get dev cnt = 0

Question: whether orin nx can use cuda12.2 or not?

btw: when use cuda 11.4, function can got device_count = 1.

thanks

Hi,

Sorry for the late.

Have you export the compat folder after installing CUDA 12?

$ export PATH=/usr/local/cuda-12/bin:${PATH}
$ export LD_LIBRARY_PATH=/usr/local/cuda-12.0/compat

Thanks.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.