View previous topic :: View next topic |
Author |
Message |
kurdy n00b


Joined: 29 Dec 2023 Posts: 10 Location: Switzerland
|
Posted: Wed Feb 19, 2025 8:20 am Post subject: build faild of sci-libs/torchvision |
|
|
Hello,
I am trying to install Code: | emerge --ask sci-libs/torchvision | and the build ends with an error:
Quote: | UnboundLocalError: cannot access local variable 'nvcc_flags' where it is not associated with a value |
Looking at the build, I see errors but I am not sure what to do, cuda seems to be installed correctly.
I tried to force the use of gcc 13 instead of 14, pytorch works without cuda.
Additional information:
emerge info content
Build log
Torchvision environnment
Code: | nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2024 NVIDIA Corporation
Built on Wed_Aug_14_10:10:22_PDT_2024
Cuda compilation tools, release 12.6, V12.6.68
Build cuda_12.6.r12.6/compiler.34714021_0 |
Code: | nvidia-smi
Wed Feb 19 09:09:58 2025
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 550.144.03 Driver Version: 550.144.03 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 GeForce RTX 2070 Off | 00000000:01:00.0 On | N/A |
| N/A 53C P8 6W / 115W | 79MiB / 8192MiB | 2% Default |
| | | N/A |
+-----------------------------------------+------------------------+----------------------+
+-----------------------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=========================================================================================|
| 0 N/A N/A 4164 G /usr/bin/X 4MiB |
| 0 N/A N/A 4871 G /usr/bin/kwin_wayland 1MiB |
+-----------------------------------------------------------------------------------------+ |
Your suggestions are welcome.
Thanks |
|
Back to top |
|
 |
grknight Retired Dev

Joined: 20 Feb 2015 Posts: 2028
|
Posted: Wed Feb 19, 2025 1:25 pm Post subject: |
|
|
See also Bug 949903 which was opened recently (without solution as of writing) |
|
Back to top |
|
 |
kurdy n00b


Joined: 29 Dec 2023 Posts: 10 Location: Switzerland
|
Posted: Wed Feb 19, 2025 2:27 pm Post subject: |
|
|
grknight wrote: | See also Bug 949903 which was opened recently (without solution as of writing) |
Thank you, I added a comment to the bug, as it indeed seems similar to me. |
|
Back to top |
|
 |
|