gsplat icon indicating copy to clipboard operation
gsplat copied to clipboard

gsplat/cuda/csrc/backward.cu(108): error: no suitable conversion function from "half" to "int" exists

Open xiaoqin422 opened this issue 1 year ago • 6 comments

When I try to install git+https://github.com/nerfstudio-project/gsplat.git with pip, CSRC building gets an error. The following error message is displayed: gsplat/cuda/csrc/backward.cu(108): error: no suitable conversion function from "half" to "int" exists

gsplat/cuda/csrc/backward.cu(108): error: no suitable conversion function from "__half" to "int" exists

xiaoqin422 avatar Mar 21 '24 02:03 xiaoqin422

@liruilong940607 I am also having this issue. Please help !

phongnhhn92 avatar Apr 04 '24 09:04 phongnhhn92

邮件已收到。

xiaoqin422 avatar Apr 04 '24 09:04 xiaoqin422

what CUDA compute capability is your GPU? @liruilong940607 found that the environment variable TORCH_CUDA_ARCH_LIST incorrectly had old compute capabilities that prevented compilation, you can try unset TORCH_CUDA_ARCH_LIST to see if that fixes it

kerrj avatar Apr 04 '24 17:04 kerrj

We only supports GPUs with CUDA compute capability >= 5.3. You can check your GPU's compute capability from here: https://developer.nvidia.com/cuda-gpus

liruilong940607 avatar Apr 05 '24 08:04 liruilong940607

Could 12.2 Cuda version be a problem?

suvigy avatar Apr 14 '24 16:04 suvigy

No CUDA 12.2 should work

liruilong940607 avatar Apr 14 '24 19:04 liruilong940607

what CUDA compute capability is your GPU? @liruilong940607 found that the environment variable TORCH_CUDA_ARCH_LIST incorrectly had old compute capabilities that prevented compilation, you can try unset TORCH_CUDA_ARCH_LIST to see if that fixes it您的 GPU 的 CUDA 计算能力如何? @liruilong940607发现环境变量TORCH_CUDA_ARCH_LIST错误地具有阻止编译的旧计算功能,您可以尝试unset TORCH_CUDA_ARCH_LIST看看是否可以修复它

It works for me!Thank you!

PLUS-WAVE avatar Nov 12 '24 09:11 PLUS-WAVE

邮件已收到。

xiaoqin422 avatar Nov 12 '24 09:11 xiaoqin422