using python setup.py develop
to install pytorch from latest source code, and gets tons of error message relative with cuda, which works find previously, anyone can give some hint to make it work, thanks!
/tmp/tmpxft_00059808_00000000-6_ActivationGeluKernel.cudafe1.stub.c:549: error: template argument 7 is invalid
/tmp/tmpxft_00059808_00000000-6_ActivationGeluKernel.cudafe1.stub.c:549: error: insufficient contextual information to determine type
549 | static void __nv_cudaEntityRegisterCallback(void **__T2693){__nv_dummy_param_ref(__T2693);__nv_save_fatbinhandle_for_managed_rt(__T2693);__cudaRegisterEntry(__T2693, ((void ( *)(int, ...
nvcc_internal_extended_lambda_implementation:217:8: note: provided for ‘template<bool IsMutable, bool HasFuncPtrConv, bool NeverThrows, class Tag, class OpFunc, class ... CapturedVarTypePack> struct __nv_hdl_wrapper_t’
In file included from /tmp/tmpxft_00059808_00000000-6_ActivationGeluKernel.cudafe1.stub.c:8,
from tmpxft_00059808_00000000-6_ActivationGeluKernel.cudafe1.stub.c:1:
/tmp/tmpxft_00059808_00000000-6_ActivationGeluKernel.cudafe1.stub.c:549: error: insufficient contextual information to determine type
549 | static void __nv_cudaEntityRegisterCallback(void **__T2693){__nv_dummy_param_ref(__T2693);__nv_save_fatbinhandle_for_managed_rt(__T2693);__cudaRegisterEntry(__T2693, ((void ( *)(int, ...
/tmp/tmpxft_00059808_00000000-6_ActivationGeluKernel.cudafe1.stub.c:549: error: insufficient contextual information to determine type
549 | static void __nv_cudaEntityRegisterCallback(void **__T2693){__nv_dummy_param_ref(__T2693);__nv_save_fatbinhandle_for_managed_rt(__T2693);__cudaRegisterEntry(__T2693, ((void ( *)(int, ....
[7923/8804] Building CUDA object caffe2/CMakeFiles/torch_cuda.dir/__/torch/csrc/distributed/c10d/Utils.cu.o
[7924/8804] Building CUDA object caffe2/CMakeFiles/torch_cuda.dir/__/aten/src/ATen/cuda/cub-RadixSortKeys.cu.o
[7925/8804] Building CUDA object caffe2/CMakeFiles/torch_cuda.dir/__/aten/src/ATen/cuda/cub-RadixSortPairs.cu.o
ninja: build stopped: subcommand failed.
here’s env info:
Collecting environment information...
PyTorch version: N/A
Is debug build: N/A
CUDA used to build PyTorch: N/A
ROCM used to build PyTorch: N/A
OS: Ubuntu 22.04.3 LTS (x86_64)
GCC version: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
Clang version: Could not collect
CMake version: version 3.29.5
Libc version: glibc-2.35
Python version: 3.12.2 | packaged by conda-forge | (main, Feb 16 2024, 20:50:58) [GCC 12.3.0] (64-bit runtime)
Python platform: Linux-5.15.0-92-generic-x86_64-with-glibc2.35
Is CUDA available: N/A
CUDA runtime version: 12.3.107
CUDA_MODULE_LOADING set to: N/A
GPU models and configuration:
GPU 0: Tesla T4
GPU 1: Tesla T4
Nvidia driver version: 545.23.08
cuDNN version: Could not collect
HIP runtime version: N/A
MIOpen runtime version: N/A
Is XNNPACK available: N/A
CPU:
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Address sizes: 46 bits physical, 48 bits virtual
Byte Order: Little Endian
CPU(s): 16
On-line CPU(s) list: 0-15
Vendor ID: GenuineIntel
Model name: Intel(R) Xeon(R) Gold 6151 CPU @ 3.00GHz
CPU family: 6
Model: 85
Thread(s) per core: 2
Core(s) per socket: 8
Socket(s): 1
Stepping: 4
BogoMIPS: 6000.00
Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc rep_good nopl xtopology nonstop_tsc cpuid tsc_known_freq pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch invpcid_single ssbd ibrs ibpb stibp fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm mpx avx512f avx512dq rdseed adx smap clflushopt clwb avx512cd avx512bw avx512vl xsaveopt xsavec xgetbv1 arat md_clear flush_l1d
Hypervisor vendor: KVM
Virtualization type: full
L1d cache: 256 KiB (8 instances)
L1i cache: 256 KiB (8 instances)
L2 cache: 8 MiB (8 instances)
L3 cache: 24.8 MiB (1 instance)
NUMA node(s): 1
NUMA node0 CPU(s): 0-15
Vulnerability Gather data sampling: Unknown: Dependent on hypervisor status
Vulnerability Itlb multihit: KVM: Mitigation: VMX unsupported
Vulnerability L1tf: Mitigation; PTE Inversion
Vulnerability Mds: Mitigation; Clear CPU buffers; SMT Host state unknown
Vulnerability Meltdown: Vulnerable
Vulnerability Mmio stale data: Mitigation; Clear CPU buffers; SMT Host state unknown
Vulnerability Retbleed: Vulnerable
Vulnerability Spec rstack overflow: Not affected
Vulnerability Spec store bypass: Mitigation; Speculative Store Bypass disabled via prctl and seccomp
Vulnerability Spectre v1: Mitigation; usercopy/swapgs barriers and __user pointer sanitization
Vulnerability Spectre v2: Vulnerable, IBPB: disabled, STIBP: disabled, PBRSB-eIBRS: Not affected
Vulnerability Srbds: Not affected
Vulnerability Tsx async abort: Mitigation; Clear CPU buffers; SMT Host state unknown
Versions of relevant libraries:
[pip3] flake8==6.1.0
[pip3] flake8-bugbear==23.3.23
[pip3] flake8-comprehensions==3.15.0
[pip3] flake8-executable==2.1.3
[pip3] flake8-logging-format==0.9.0
[pip3] flake8-pyi==23.3.1
[pip3] flake8-simplify==0.19.3
[pip3] mypy==1.10.0
[pip3] mypy-extensions==1.0.0
[pip3] numpy==1.26.0
[pip3] optree==0.12.1
[pip3] pytorch-triton==3.0.0+45fff310c8
[conda] magma-cuda110 2.5.2 1 pytorch
[conda] mkl-include 2024.1.0 intel_691 intel
[conda] mkl-static 2024.1.0 intel_691 intel
[conda] numpy 1.26.0 pypi_0 pypi
[conda] optree 0.12.1 pypi_0 pypi
[conda] pytorch-triton 3.0.0+45fff310c8 pypi_0 pypi
[conda] torchfix 0.4.0 pypi_0 pypi