前提・実現したいこと
下記に記載したエラーが発生してしまうため、いろいろ試しましたがうまく解決できません。
お力をお貸しください。
発生している問題・エラーメッセージ
raise RuntimeError(message) RuntimeError: Error building extension 'fused': [1/3] /usr/local/cuda/bin/nvcc -DTORCH_EXTENSION_NAME=fused -DTORCH_API_INCLUDE_EXTENSION_H -isystem /home/a/libraries/anaconda3/envs/gan/lib/python3.6/site-packages/torch/lib/include -isystem /home/a/libraries/anaconda3/envs/gan/lib/python3.6/site-packages/torch/lib/include/torch/csrc/api/include -isystem /home/a/libraries/anaconda3/envs/gan/lib/python3.6/site-packages/torch/lib/include/TH -isystem /home/a/libraries/anaconda3/envs/gan/lib/python3.6/site-packages/torch/lib/include/THC -isystem /usr/local/cuda/include -isystem /home/a/libraries/anaconda3/envs/gan/include/python3.6m -D_GLIBCXX_USE_CXX11_ABI=0 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --compiler-options '-fPIC' -std=c++11 -c /home/a/GANSketching/training/networks/op/fused_bias_act_kernel.cu -o fused_bias_act_kernel.cuda.o FAILED: fused_bias_act_kernel.cuda.o /usr/local/cuda/bin/nvcc -DTORCH_EXTENSION_NAME=fused -DTORCH_API_INCLUDE_EXTENSION_H -isystem /home/a/libraries/anaconda3/envs/gan/lib/python3.6/site-packages/torch/lib/include -isystem /home/a/libraries/anaconda3/envs/gan/lib/python3.6/site-packages/torch/lib/include/torch/csrc/api/include -isystem /home/a/libraries/anaconda3/envs/gan/lib/python3.6/site-packages/torch/lib/include/TH -isystem /home/a/libraries/anaconda3/envs/gan/lib/python3.6/site-packages/torch/lib/include/THC -isystem /usr/local/cuda/include -isystem /home/a/libraries/anaconda3/envs/gan/include/python3.6m -D_GLIBCXX_USE_CXX11_ABI=0 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --compiler-options '-fPIC' -std=c++11 -c /home/a/GANSketching/training/networks/op/fused_bias_act_kernel.cu -o fused_bias_act_kernel.cuda.o nvcc warning : The 'compute_20', 'sm_20', and 'sm_21' architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning). /home/a/GANSketching/training/networks/op/fused_bias_act_kernel.cu(79): error: no suitable constructor exists to convert from "c10::ScalarType" to "at::Type" /home/a/GANSketching/training/networks/op/fused_bias_act_kernel.cu(79): error: a pointer to a bound function may only be used to call the function /home/a/GANSketching/training/networks/op/fused_bias_act_kernel.cu(79): error: type name is not allowed /home/a/GANSketching/training/networks/op/fused_bias_act_kernel.cu(79): error: expected an expression /home/a/GANSketching/training/networks/op/fused_bias_act_kernel.cu(79): error: a pointer to a bound function may only be used to call the function /home/a/GANSketching/training/networks/op/fused_bias_act_kernel.cu(79): error: type name is not allowed /home/a/GANSketching/training/networks/op/fused_bias_act_kernel.cu(79): error: expected an expression /home/a/GANSketching/training/networks/op/fused_bias_act_kernel.cu(79): error: a pointer to a bound function may only be used to call the function /home/a/GANSketching/training/networks/op/fused_bias_act_kernel.cu(79): error: type name is not allowed /home/a/GANSketching/training/networks/op/fused_bias_act_kernel.cu(79): error: expected an expression /home/a/GANSketching/training/networks/op/fused_bias_act_kernel.cu(79): error: a pointer to a bound function may only be used to call the function /home/a/GANSketching/training/networks/op/fused_bias_act_kernel.cu(79): error: type name is not allowed /home/a/GANSketching/training/networks/op/fused_bias_act_kernel.cu(79): error: expected an expression /home/a/GANSketching/training/networks/op/fused_bias_act_kernel.cu(79): error: a pointer to a bound function may only be used to call the function /home/a/GANSketching/training/networks/op/fused_bias_act_kernel.cu(79): error: type name is not allowed /home/a/GANSketching/training/networks/op/fused_bias_act_kernel.cu(79): error: expected an expression /home/a/GANSketching/training/networks/op/fused_bias_act_kernel.cu(79): error: a pointer to a bound function may only be used to call the function /home/a/GANSketching/training/networks/op/fused_bias_act_kernel.cu(79): error: type name is not allowed /home/a/GANSketching/training/networks/op/fused_bias_act_kernel.cu(79): error: expected an expression /home/a/GANSketching/training/networks/op/fused_bias_act_kernel.cu(79): error: a pointer to a bound function may only be used to call the function /home/a/GANSketching/training/networks/op/fused_bias_act_kernel.cu(79): error: type name is not allowed /home/a/GANSketching/training/networks/op/fused_bias_act_kernel.cu(79): error: expected an expression /home/a/GANSketching/training/networks/op/fused_bias_act_kernel.cu(79): error: a pointer to a bound function may only be used to call the function /home/a/GANSketching/training/networks/op/fused_bias_act_kernel.cu(79): error: type name is not allowed /home/a/GANSketching/training/networks/op/fused_bias_act_kernel.cu(79): error: expected an expression /home/a/GANSketching/training/networks/op/fused_bias_act_kernel.cu(79): error: a pointer to a bound function may only be used to call the function /home/a/GANSketching/training/networks/op/fused_bias_act_kernel.cu(79): error: type name is not allowed /home/a/GANSketching/training/networks/op/fused_bias_act_kernel.cu(79): error: expected an expression /home/a/GANSketching/training/networks/op/fused_bias_act_kernel.cu(79): error: a pointer to a bound function may only be used to call the function /home/a/GANSketching/training/networks/op/fused_bias_act_kernel.cu(79): error: type name is not allowed /home/a/GANSketching/training/networks/op/fused_bias_act_kernel.cu(79): error: expected an expression /home/a/GANSketching/training/networks/op/fused_bias_act_kernel.cu(79): error: a pointer to a bound function may only be used to call the function /home/a/GANSketching/training/networks/op/fused_bias_act_kernel.cu(79): error: type name is not allowed /home/a/GANSketching/training/networks/op/fused_bias_act_kernel.cu(79): error: expected an expression /home/a/GANSketching/training/networks/op/fused_bias_act_kernel.cu(79): error: a pointer to a bound function may only be used to call the function /home/a/GANSketching/training/networks/op/fused_bias_act_kernel.cu(79): error: type name is not allowed /home/a/GANSketching/training/networks/op/fused_bias_act_kernel.cu(79): error: expected an expression 37 errors detected in the compilation of "/tmp/tmpxft_000071ce_00000000-7_fused_bias_act_kernel.cpp1.ii". [2/3] c++ -MMD -MF fused_bias_act.o.d -DTORCH_EXTENSION_NAME=fused -DTORCH_API_INCLUDE_EXTENSION_H -isystem /home/a/libraries/anaconda3/envs/gan/lib/python3.6/site-packages/torch/lib/include -isystem /home/a/libraries/anaconda3/envs/gan/lib/python3.6/site-packages/torch/lib/include/torch/csrc/api/include -isystem /home/a/libraries/anaconda3/envs/gan/lib/python3.6/site-packages/torch/lib/include/TH -isystem /home/a/libraries/anaconda3/envs/gan/lib/python3.6/site-packages/torch/lib/include/THC -isystem /usr/local/cuda/include -isystem /home/a/libraries/anaconda3/envs/gan/include/python3.6m -D_GLIBCXX_USE_CXX11_ABI=0 -fPIC -std=c++11 -c /home/a/GANSketching/training/networks/op/fused_bias_act.cpp -o fused_bias_act.o FAILED: fused_bias_act.o c++ -MMD -MF fused_bias_act.o.d -DTORCH_EXTENSION_NAME=fused -DTORCH_API_INCLUDE_EXTENSION_H -isystem /home/a/libraries/anaconda3/envs/gan/lib/python3.6/site-packages/torch/lib/include -isystem /home/a/libraries/anaconda3/envs/gan/lib/python3.6/site-packages/torch/lib/include/torch/csrc/api/include -isystem /home/a/libraries/anaconda3/envs/gan/lib/python3.6/site-packages/torch/lib/include/TH -isystem /home/a/libraries/anaconda3/envs/gan/lib/python3.6/site-packages/torch/lib/include/THC -isystem /usr/local/cuda/include 5.4.0-isystem /home/a/libraries/anaconda3/envs/gan/include/python3.6m -D_GLIBCXX_USE_CXX11_ABI=0 -fPIC -std=c++11 -c /home/a/GANSketching/training/networks/op/fused_bias_act.cpp -o fused_bias_act.o /home/a/GANSketching/training/networks/op/fused_bias_act.cpp: In function ‘at::Tensor fused_bias_act(const at::Tensor&, const at::Tensor&, const at::Tensor&, int, int, float, float)’: /home/a/GANSketching/training/networks/op/fused_bias_act.cpp:7:82: error: ‘TORCH_CHECK’ was not declared in this scope #define CHECK_CUDA(x) TORCH_CHECK(x.type().is_cuda(), #x " must be a CUDA tensor") ^ /home/a/GANSketching/training/networks/op/fused_bias_act.cpp:13:5: note: in expansion of macro ‘CHECK_CUDA’ CHECK_CUDA(input); ^ ninja: build stopped: subcommand failed.
試したこと
・ninjaのインストール
・CUDAバージョン変更8から10
補足情報(FW/ツールのバージョンなど)
ninja 1.10.2.3
tensorflow-gpu 2.6.2
termcolor 1.1.0
python 3.6
gcc 5.4.0
cuda 8.0
あなたの回答
tips
プレビュー