# Error: undefined symbol: cuDeviceGetUuid\_v2

**URL:** <https://pyfr.discourse.group/t/error-undefined-symbol-cudevicegetuuid-v2/945>\
**Category:** Errors\
**Tags:** cuda\
**Created:** [17 October 2023 07:51 UTC](https://pyfr.discourse.group/t/error-undefined-symbol-cudevicegetuuid-v2/945 "2023-10-17T07:51:18Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Amirshau](https://avatars.discourse-cdn.com/v4/letter/a/c89c15/32.png) [@Amirshau](https://pyfr.discourse.group/u/Amirshau)\
**Post date:** [17 October 2023 07:51 UTC](https://pyfr.discourse.group/t/error-undefined-symbol-cudevicegetuuid-v2/945/1 "2023-10-17T07:51:18Z")

</div>

Hello everyone,

I’m new to PyFR and trying to perform a simple simulation of the 2d cylinder case. I’ve created a virtual environment and I downloaded all the python packages for PyFR dependencies. When I’m trying to run PyFR for generating the solution files, the following error is shown:

```auto
$ pyfr run -b cuda -p inc-cylinder.pyfrm inc-cylinder.ini
Traceback (most recent call last):
  File "/home/csp/anaconda3/envs/pyfr-venv/bin/pyfr", line 8, in <module>
    sys.exit(main())
  File "/home/csp/anaconda3/envs/pyfr-venv/lib/python3.9/site-packages/pyfr/ __main__.py", line 118, in main
    args.process(args)
  File "/home/csp/anaconda3/envs/pyfr-venv/lib/python3.9/site-packages/pyfr/ __main__.py", line 251, in process_run
    _process_common(
  File "/home/csp/anaconda3/envs/pyfr-venv/lib/python3.9/site-packages/pyfr/ __main__.py", line 230, in _process_common
    backend = get_backend(args.backend, cfg)
  File "/home/csp/anaconda3/envs/pyfr-venv/lib/python3.9/site-packages/pyfr/backends/ __init__.py", line 12, in get_backend
    return subclass_where(BaseBackend, name=name.lower())(cfg)
  File "/home/csp/anaconda3/envs/pyfr-venv/lib/python3.9/site-packages/pyfr/backends/cuda/base.py", line 20, in __init__
    self.cuda = CUDA()
  File "/home/csp/anaconda3/envs/pyfr-venv/lib/python3.9/site-packages/pyfr/backends/cuda/driver.py", line 442, in __init__
    self.lib = CUDAWrappers()
  File "/home/csp/anaconda3/envs/pyfr-venv/lib/python3.9/site-packages/pyfr/ctypesutil.py", line 18, in __init__
    fn = getattr(lib, fname)
  File "/home/csp/anaconda3/envs/pyfr-venv/lib/python3.9/ctypes/ __init__.py", line 395, in __getattr__
    func = self. __getitem__ (name)
  File "/home/csp/anaconda3/envs/pyfr-venv/lib/python3.9/ctypes/ __init__.py", line 400, in __getitem__
    func = self._FuncPtr((name_or_ordinal, self))
AttributeError: /lib/x86_64-linux-gnu/libcuda.so: undefined symbol: cuDeviceGetUuid_v2

```

---

<div class="post-metadata">

**Author:** ![WillT](https://avatars.discourse-cdn.com/v4/letter/w/bc79bd/32.png) [@WillT](https://pyfr.discourse.group/u/WillT)\
**Post date:** [17 October 2023 10:32 UTC](https://pyfr.discourse.group/t/error-undefined-symbol-cudevicegetuuid-v2/945/2 "2023-10-17T10:32:30Z")

</div>

What version of CUDA are you using? ie `nvcc --version` Also have you followed the CUDA post-installation instructions? [CUDA Post installation actions](https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html#post-installation-actions)

---

<div class="post-metadata">

**Author:** ![fdw](https://avatars.discourse-cdn.com/v4/letter/f/a587f6/32.png) [@fdw](https://pyfr.discourse.group/u/fdw)\
**Post date:** [17 October 2023 18:04 UTC](https://pyfr.discourse.group/t/error-undefined-symbol-cudevicegetuuid-v2/945/3 "2023-10-17T18:04:29Z")

</div>

As per the PyFR documentation:

[https://pyfr.readthedocs.io/en/latest/installation.html#cuda-backend](https://pyfr.readthedocs.io/en/latest/installation.html#cuda-backend)

the CUDA backend requires at least CUDA 11.4.

Regards, Freddie.

---

<div class="post-metadata">

**Author:** ![Amirshau](https://avatars.discourse-cdn.com/v4/letter/a/c89c15/32.png) [@Amirshau](https://pyfr.discourse.group/u/Amirshau)\
**Post date:** [17 October 2023 18:18 UTC](https://pyfr.discourse.group/t/error-undefined-symbol-cudevicegetuuid-v2/945/4 "2023-10-17T18:18:42Z")

</div>

Hi, the CUDA version is indeed 11.4  
nvcc -V  
nvcc: NVIDIA (R) Cuda compiler driver  
Copyright (c) 2005-2021 NVIDIA Corporation  
Built on Wed\_Jun\_\_2\_19:15:15\_PDT\_2021  
Cuda compilation tools, release 11.4, V11.4.48  
Build cuda\_11.4.r11.4/compiler.30033411\_0

---

<div class="post-metadata">

**Author:** ![fdw](https://avatars.discourse-cdn.com/v4/letter/f/a587f6/32.png) [@fdw](https://pyfr.discourse.group/u/fdw)\
**Post date:** [17 October 2023 20:19 UTC](https://pyfr.discourse.group/t/error-undefined-symbol-cudevicegetuuid-v2/945/5 "2023-10-17T20:19:17Z")

</div>

Note that the `nvcc` version is not a reliable means of determining the current CUDA version. Please try `nvidia-smi`.

Regards, Freddie.

---

<div class="post-metadata">

**Author:** ![Amirshau](https://avatars.discourse-cdn.com/v4/letter/a/c89c15/32.png) [@Amirshau](https://pyfr.discourse.group/u/Amirshau)\
**Post date:** [18 October 2023 18:17 UTC](https://pyfr.discourse.group/t/error-undefined-symbol-cudevicegetuuid-v2/945/6 "2023-10-18T18:17:59Z")

</div>

Hi Freddie / will,  
the nvidia-smi command revealed the following error:  
nvidia-smi has failed because it couldn’t communicate with the nvidia driver

After few installations and modifications, the simulation works!!

Thanks for the help.

Best Regards,  
Amir
