Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running in Docker container : Ti diagnose cannot detect CUDA #8613

Open
viprob-ai opened this issue Dec 21, 2024 · 0 comments
Open

Running in Docker container : Ti diagnose cannot detect CUDA #8613

viprob-ai opened this issue Dec 21, 2024 · 0 comments
Labels
question Question on using Taichi

Comments

@viprob-ai
Copy link

Inside CUDA container >

ti diagnose

[Taichi] version 1.7.2, llvm 15.0.4, commit 0131dce, linux, python 3.10.12


** Taichi Programming Language **


Docs: https://docs.taichi-lang.org/
GitHub: https://github.com/taichi-dev/taichi/
Forum: https://forum.taichi.graphics/

Taichi system diagnose:

python: 3.10.12 (main, Nov 11 2024, 15:10:55) [GCC 11.4.0]
system: linux
executable: /root/.pyenv/versions/3.10.12/envs/paz/bin/python
platform: Linux-6.8.0-49-generic-x86_64-with-glibc2.35
architecture: 64bit ELF
uname: uname_result(system='Linux', node='01HW2485848', release='6.8.0-49-generic', version='#49~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Nov 6 17:42:15 UTC 2', machine='x86_64')
locale: en_US.UTF-8
PATH: /root/.pyenv/versions/paz/bin:/root/.pyenv/libexec:/root/.pyenv/plugins/python-build/bin:/root/.pyenv/plugins/pyenv-virtualenv/bin:/root/.pyenv/plugins/pyenv-update/bin:/root/.pyenv/plugins/pyenv-doctor/bin:/usr/local/cuda-11.7:/usr/local/cuda/targets/x86_64-linux/lib:/usr/local/cuda:/usr/local/cuda-11.7/bin:/root/.pyenv/plugins/pyenv-virtualenv/shims:/root/.pyenv/shims:/root/.pyenv/bin:/usr/local/cuda-11.7/bin:/root/.pyenv/plugins/pyenv-virtualenv/shims:/root/.pyenv/bin:/opt/ros/humble/bin:/usr/local/nvidia/bin:/usr/local/cuda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/root/.local/bin:/root/.bin:/root/.local/bin:/root/.bin
PYTHONPATH: ['/root/.pyenv/versions/3.10.12/envs/paz/bin', '/opt/ros/humble/local/lib/python3.10/dist-packages', '/opt/ros/humble/lib/python3.10/site-packages', '/root/.pyenv/versions/3.10.12/lib/python310.zip', '/root/.pyenv/versions/3.10.12/lib/python3.10', '/root/.pyenv/versions/3.10.12/lib/python3.10/lib-dynload', '/root/.pyenv/versions/3.10.12/envs/paz/lib/python3.10/site-packages', '/workspace/3rdparty/perception_ws/Cutie', '/workspace/3rdparty/perception_ws/hand_object_detector/lib', '/workspace/3rdparty/perception_ws/normalSpeed', '/workspace/3rdparty/perception_ws/RepViT/sam', '/root/.pyenv/versions/3.10.12/envs/paz/lib/python3.10/site-packages/pointnet2-0.0.0-py3.10-linux-x86_64.egg', '/root/.pyenv/versions/3.10.12/envs/paz/lib/python3.10/site-packages/knn_pytorch-0.1-py3.10-linux-x86_64.egg']

Distributor ID: Ubuntu
Description: Ubuntu 22.04.5 LTS
Release: 22.04
Codename: jammy

import: <module 'taichi' from '/root/.pyenv/versions/3.10.12/envs/paz/lib/python3.10/site-packages/taichi/init.py'>

cpu: True
metal: False
opengl: True
cuda: False
vulkan: True

OpenGL version 4.5 (Compatibility Profile) Mesa 23.2.1-1ubuntu3.1~22.04.3 is supported
GL_ARB_compute_shader: OK
GL_ARB_gpu_shader_int64: OK
GL_NV_shader_atomic_float: OK
GL_NV_shader_atomic_float64: MISSING
GL_NV_shader_atomic_int64: MISSING

Sat Dec 21 15:46:11 2024
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 550.120 Driver Version: 550.120 CUDA Version: 12.4 |
|-----------------------------------------+------------------------+----------------------+
| GPU Name Persistence-M | Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|=========================================+========================+======================|
| 0 NVIDIA RTX 2000 Ada Gene... Off | 00000000:01:00.0 Off | N/A |
| N/A 44C P3 16W / 60W | 9MiB / 8188MiB | 0% Default |
| | | N/A |
+-----------------------------------------+------------------------+----------------------+

+-----------------------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=========================================================================================|
+-----------------------------------------------------------------------------------------+

[Taichi] version 1.7.2, llvm 15.0.4, commit 0131dce, linux, python 3.10.12

[Taichi] version 1.7.2, llvm 15.0.4, commit 0131dce, linux, python 3.10.12
[Taichi] Starting on arch=x64

[Taichi] version 1.7.2, llvm 15.0.4, commit 0131dce, linux, python 3.10.12
[Taichi] Starting on arch=opengl

[Taichi] version 1.7.2, llvm 15.0.4, commit 0131dce, linux, python 3.10.12
[Taichi] Starting on arch=x64

[Taichi] version 1.7.2, llvm 15.0.4, commit 0131dce, linux, python 3.10.12


** Taichi Programming Language **


Docs: https://docs.taichi-lang.org/
GitHub: https://github.com/taichi-dev/taichi/
Forum: https://forum.taichi.graphics/

                               TAICHI EXAMPLES                                    

────────────────────────────────────────────────────────────────────────────────────
0: ad_gravity 25: karman_vortex_street 50: patterns
1: circle_packing_image 26: keyboard 51: pbf2d
2: comet 27: laplace 52: physarum
3: cornell_box 28: laplace_equation 53: poisson_disk_sampling
4: diff_sph 29: mandelbrot_zoom 54: print_offset
5: differential_evolution 30: marching_squares 55: rasterizer
6: euler 31: mass_spring_3d_ggui 56: regression
7: eulerfluid2d 32: mass_spring_game 57: sdf_renderer
8: explicit_activation 33: mass_spring_game_ggui 58: simple_derivative
9: export_mesh 34: mciso_advanced 59: simple_texture
10: export_ply 35: mgpcg 60: simple_uv
11: export_videos 36: mgpcg_advanced 61: snow_phaseField
12: fem128 37: minimal 62: stable_fluid
13: fem128_ggui 38: minimization 63: stable_fluid_ggui
14: fem99 39: mpm128 64: stable_fluid_graph
15: fractal 40: mpm128_ggui 65: taichi_bitmasked
16: fractal3d_ggui 41: mpm3d 66: taichi_dynamic
17: fullscreen 42: mpm3d_ggui 67: taichi_logo
18: game_of_life 43: mpm88 68: taichi_ngp
19: gui_image_io 44: mpm88_graph 69: taichi_sparse
20: gui_widgets 45: mpm99 70: texture_graph
21: implicit_fem 46: mpm_lagrangian_forces 71: tutorial
22: implicit_mass_spring 47: nbody 72: two_stream_instability
23: initial_value_problem 48: odop_solar 73: vortex_rings
24: jacobian 49: oit_renderer 74: waterwave
────────────────────────────────────────────────────────────────────────────────────
42
Running example minimal ...
[Taichi] Starting on arch=x64
42.0

Running time: 0.15s

Consider attaching this log when maintainers ask about system information.

Running time: 5.26s

Error

cpu: True
metal: False
opengl: True
cuda: False
vulkan: True

[W 12/21/24 15:46:11.303 14234] [cuda_driver.cpp:CUDADriver@135] The Taichi CUDA backend requires at least CUDA 10.0, got v0.0.
[W 12/21/24 15:46:13.022 14533] [cuda_driver.cpp:CUDADriver@135] The Taichi CUDA backend requires at least CUDA 10.0, got v0.0.
[W 12/21/24 15:46:13.023 14533] [misc.py:adaptive_arch_select@758] Arch=[<Arch.cuda: 3>] is not supported, falling back to CPU

In Host >

ti diagnose

[Taichi] version 1.7.2, llvm 15.0.4, commit 0131dce, linux, python 3.10.12


** Taichi Programming Language **


Docs: https://docs.taichi-lang.org/
GitHub: https://github.com/taichi-dev/taichi/
Forum: https://forum.taichi.graphics/

Taichi system diagnose:

python: 3.10.12 (main, Oct 23 2024, 22:34:35) [GCC 11.4.0]
system: linux
executable: /home/user/.pyenv/versions/3.10.12/envs/paz/bin/python
platform: Linux-6.8.0-49-generic-x86_64-with-glibc2.35
architecture: 64bit ELF
uname: uname_result(system='Linux', node='01HW2485848', release='6.8.0-49-generic', version='#49~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Nov 6 17:42:15 UTC 2', machine='x86_64')
locale: en_US.UTF-8
PATH: /home/user/.pyenv/versions/paz/bin:/home/user/.pyenv/libexec:/home/user/.pyenv/plugins/python-build/bin:/home/user/.pyenv/plugins/pyenv-virtualenv/bin:/home/user/.pyenv/plugins/pyenv-update/bin:/home/user/.pyenv/plugins/pyenv-doctor/bin:/home/user/.nvm/versions/node/v19.1.0/bin:/usr/local/cuda-11.7/bin:/opt/ros/humble/bin:/usr/local/go/bin:/home/user/.cargo/bin:/home/user/.pyenv/plugins/pyenv-virtualenv/shims:/home/user/.pyenv/shims:/home/user/.pyenv/bin:/home/user/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin:/home/user/.local/bin:/home/user/.bin
PYTHONPATH: ['/home/user/.pyenv/versions/3.10.12/envs/paz/bin', '/opt/ros/humble/lib/python3.10/site-packages', '/opt/ros/humble/local/lib/python3.10/dist-packages', '/home/user/.pyenv/versions/3.10.12/lib/python310.zip', '/home/user/.pyenv/versions/3.10.12/lib/python3.10', '/home/user/.pyenv/versions/3.10.12/lib/python3.10/lib-dynload', '/home/user/.pyenv/versions/3.10.12/envs/paz/lib/python3.10/site-packages', '/home/user/.pyenv/versions/3.10.12/envs/paz/lib/python3.10/site-packages/cmeel.prefix/lib/python3.10/site-packages', '/home/user/Workspace/projects/3rdparty/perception_ws/normalSpeed']

Distributor ID: Ubuntu
Description: Ubuntu 22.04.5 LTS
Release: 22.04
Codename: jammy

import: <module 'taichi' from '/home/user/.pyenv/versions/3.10.12/envs/paz/lib/python3.10/site-packages/taichi/init.py'>

cpu: True
metal: False
opengl: True
cuda: True
vulkan: True

OpenGL version 4.6 (Compatibility Profile) Mesa 23.2.1-1ubuntu3.1~22.04.2 is supported
GL_ARB_compute_shader: OK
GL_ARB_gpu_shader_int64: OK
GL_NV_shader_atomic_float: MISSING
GL_NV_shader_atomic_float64: MISSING
GL_NV_shader_atomic_int64: MISSING

Sat Dec 21 15:53:11 2024
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 550.120 Driver Version: 550.120 CUDA Version: 12.4 |
|-----------------------------------------+------------------------+----------------------+
| GPU Name Persistence-M | Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|=========================================+========================+======================|
| 0 NVIDIA RTX 2000 Ada Gene... Off | 00000000:01:00.0 Off | N/A |
| N/A 45C P5 15W / 60W | 9MiB / 8188MiB | 0% Default |
| | | N/A |
+-----------------------------------------+------------------------+----------------------+

+-----------------------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=========================================================================================|
| 0 N/A N/A 2626 G /usr/lib/xorg/Xorg 4MiB |
+-----------------------------------------------------------------------------------------+

[Taichi] version 1.7.2, llvm 15.0.4, commit 0131dce, linux, python 3.10.12

[Taichi] version 1.7.2, llvm 15.0.4, commit 0131dce, linux, python 3.10.12
[Taichi] Starting on arch=x64

[Taichi] version 1.7.2, llvm 15.0.4, commit 0131dce, linux, python 3.10.12
[Taichi] Starting on arch=opengl

[Taichi] version 1.7.2, llvm 15.0.4, commit 0131dce, linux, python 3.10.12
[Taichi] Starting on arch=cuda

[Taichi] version 1.7.2, llvm 15.0.4, commit 0131dce, linux, python 3.10.12


** Taichi Programming Language **


Docs: https://docs.taichi-lang.org/
GitHub: https://github.com/taichi-dev/taichi/
Forum: https://forum.taichi.graphics/

                               TAICHI EXAMPLES                                    

────────────────────────────────────────────────────────────────────────────────────
0: ad_gravity 25: karman_vortex_street 50: patterns
1: circle_packing_image 26: keyboard 51: pbf2d
2: comet 27: laplace 52: physarum
3: cornell_box 28: laplace_equation 53: poisson_disk_sampling
4: diff_sph 29: mandelbrot_zoom 54: print_offset
5: differential_evolution 30: marching_squares 55: rasterizer
6: euler 31: mass_spring_3d_ggui 56: regression
7: eulerfluid2d 32: mass_spring_game 57: sdf_renderer
8: explicit_activation 33: mass_spring_game_ggui 58: simple_derivative
9: export_mesh 34: mciso_advanced 59: simple_texture
10: export_ply 35: mgpcg 60: simple_uv
11: export_videos 36: mgpcg_advanced 61: snow_phaseField
12: fem128 37: minimal 62: stable_fluid
13: fem128_ggui 38: minimization 63: stable_fluid_ggui
14: fem99 39: mpm128 64: stable_fluid_graph
15: fractal 40: mpm128_ggui 65: taichi_bitmasked
16: fractal3d_ggui 41: mpm3d 66: taichi_dynamic
17: fullscreen 42: mpm3d_ggui 67: taichi_logo
18: game_of_life 43: mpm88 68: taichi_ngp
19: gui_image_io 44: mpm88_graph 69: taichi_sparse
20: gui_widgets 45: mpm99 70: texture_graph
21: implicit_fem 46: mpm_lagrangian_forces 71: tutorial
22: implicit_mass_spring 47: nbody 72: two_stream_instability
23: initial_value_problem 48: odop_solar 73: vortex_rings
24: jacobian 49: oit_renderer 74: waterwave
────────────────────────────────────────────────────────────────────────────────────
42
Running example minimal ...
[Taichi] Starting on arch=x64
42.0

Running time: 0.13s

Consider attaching this log when maintainers ask about system information.

Running time: 3.84s


cpu: True
metal: False
opengl: True
cuda: True
vulkan: True
@viprob-ai viprob-ai added the question Question on using Taichi label Dec 21, 2024
@github-project-automation github-project-automation bot moved this to Untriaged in Taichi Lang Dec 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Question on using Taichi
Projects
Status: Untriaged
Development

No branches or pull requests

1 participant