1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
| [1/3] /usr/bin/nvcc -DTORCH_EXTENSION_NAME=fused_adam -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -I/home/wac/johnson/anaconda3/envs/gpt/lib/python3.10/site-packages/deepspeed/ops/csrc/includes -I/home/wac/johnson/anaconda3/envs/gpt/lib/python3.10/site-packages/deepspeed/ops/csrc/adam -isystem /home/wac/johnson/anaconda3/envs/gpt/lib/python3.10/site-packages/torch/include -isystem /home/wac/johnson/anaconda3/envs/gpt/lib/python3.10/site-packages/torch/include/torch/csrc/api/include -isystem /home/wac/johnson/anaconda3/envs/gpt/lib/python3.10/site-packages/torch/include/TH -isystem /home/wac/johnson/anaconda3/envs/gpt/lib/python3.10/site-packages/torch/include/THC -isystem /home/wac/johnson/anaconda3/envs/gpt/include/python3.10 -D_GLIBCXX_USE_CXX11_ABI=0 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 --compiler-options '-fPIC' -O3 -DVERSION_GE_1_1 -DVERSION_GE_1_3 -DVERSION_GE_1_5 -lineinfo --use_fast_math -gencode=arch=compute_86,code=sm_86 -gencode=arch=compute_86,code=compute_86 -DBF16_AVAILABLE -std=c++17 -c /home/wac/johnson/anaconda3/envs/gpt/lib/python3.10/site-packages/deepspeed/ops/csrc/adam/multi_tensor_adam.cu -o multi_tensor_adam.cuda.o FAILED: multi_tensor_adam.cuda.o /usr/bin/nvcc -DTORCH_EXTENSION_NAME=fused_adam -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -I/home/wac/johnson/anaconda3/envs/gpt/lib/python3.10/site-packages/deepspeed/ops/csrc/includes -I/home/wac/johnson/anaconda3/envs/gpt/lib/python3.10/site-packages/deepspeed/ops/csrc/adam -isystem /home/wac/johnson/anaconda3/envs/gpt/lib/python3.10/site-packages/torch/include -isystem /home/wac/johnson/anaconda3/envs/gpt/lib/python3.10/site-packages/torch/include/torch/csrc/api/include -isystem /home/wac/johnson/anaconda3/envs/gpt/lib/python3.10/site-packages/torch/include/TH -isystem /home/wac/johnson/anaconda3/envs/gpt/lib/python3.10/site-packages/torch/include/THC -isystem /home/wac/johnson/anaconda3/envs/gpt/include/python3.10 -D_GLIBCXX_USE_CXX11_ABI=0 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr -gencode=arch=compute_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 --compiler-options '-fPIC' -O3 -DVERSION_GE_1_1 -DVERSION_GE_1_3 -DVERSION_GE_1_5 -lineinfo --use_fast_math -gencode=arch=compute_86,code=sm_86 -gencode=arch=compute_86,code=compute_86 -DBF16_AVAILABLE -std=c++17 -c /home/wac/johnson/anaconda3/envs/gpt/lib/python3.10/site-packages/deepspeed/ops/csrc/adam/multi_tensor_adam.cu -o multi_tensor_adam.cuda.o In file included from /usr/include/cuda_runtime.h:83, from <command-line>: /usr/include/crt/host_config.h:138:2: error: 138 | | ^~~~~ In file included from /home/wac/johnson/anaconda3/envs/gpt/lib/python3.10/site-packages/torch/include/c10/core/ScalarType.h:3, from /home/wac/johnson/anaconda3/envs/gpt/lib/python3.10/site-packages/torch/include/c10/core/StorageImpl.h:4, from /home/wac/johnson/anaconda3/envs/gpt/lib/python3.10/site-packages/torch/include/c10/core/Storage.h:3, from /home/wac/johnson/anaconda3/envs/gpt/lib/python3.10/site-packages/torch/include/c10/core/TensorImpl.h:8, from /home/wac/johnson/anaconda3/envs/gpt/lib/python3.10/site-packages/torch/include/c10/core/GeneratorImpl.h:8, from /home/wac/johnson/anaconda3/envs/gpt/lib/python3.10/site-packages/torch/include/ATen/core/Generator.h:22, from /home/wac/johnson/anaconda3/envs/gpt/lib/python3.10/site-packages/torch/include/ATen/CPUGeneratorImpl.h:3, from /home/wac/johnson/anaconda3/envs/gpt/lib/python3.10/site-packages/torch/include/ATen/Context.h:3, from /home/wac/johnson/anaconda3/envs/gpt/lib/python3.10/site-packages/torch/include/ATen/ATen.h:7, from /home/wac/johnson/anaconda3/envs/gpt/lib/python3.10/site-packages/deepspeed/ops/csrc/adam/multi_tensor_adam.cu:11: /home/wac/johnson/anaconda3/envs/gpt/lib/python3.10/site-packages/torch/include/c10/util/BFloat16.h:11:10: fatal error: cuda_bf16.h: No such file or directory 11 | | ^~~~~~~~~~~~~ compilation terminated. [2/3] c++ -MMD -MF fused_adam_frontend.o.d -DTORCH_EXTENSION_NAME=fused_adam -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -I/home/wac/johnson/anaconda3/envs/gpt/lib/python3.10/site-packages/deepspeed/ops/csrc/includes -I/home/wac/johnson/anaconda3/envs/gpt/lib/python3.10/site-packages/deepspeed/ops/csrc/adam -isystem /home/wac/johnson/anaconda3/envs/gpt/lib/python3.10/site-packages/torch/include -isystem /home/wac/johnson/anaconda3/envs/gpt/lib/python3.10/site-packages/torch/include/torch/csrc/api/include -isystem /home/wac/johnson/anaconda3/envs/gpt/lib/python3.10/site-packages/torch/include/TH -isystem /home/wac/johnson/anaconda3/envs/gpt/lib/python3.10/site-packages/torch/include/THC -isystem /home/wac/johnson/anaconda3/envs/gpt/include/python3.10 -D_GLIBCXX_USE_CXX11_ABI=0 -fPIC -std=c++17 -O3 -std=c++17 -g -Wno-reorder -DVERSION_GE_1_1 -DVERSION_GE_1_3 -DVERSION_GE_1_5 -DBF16_AVAILABLE -c /home/wac/johnson/anaconda3/envs/gpt/lib/python3.10/site-packages/deepspeed/ops/csrc/adam/fused_adam_frontend.cpp -o fused_adam_frontend.o ninja: build stopped: subcommand failed. Traceback (most recent call last): File "/home/wac/johnson/anaconda3/envs/gpt/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 1893, in _run_ninja_build subprocess.run( File "/home/wac/johnson/anaconda3/envs/gpt/lib/python3.10/subprocess.py", line 526, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.
The above exception was the direct cause of the following exception:
Traceback (most recent call last): File "/home/wac/johnson/anaconda3/envs/gpt/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 1509, in _jit_compile _write_ninja_file_and_build_library( File "/home/wac/johnson/anaconda3/envs/gpt/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 1624, in _write_ninja_file_and_build_library _run_ninja_build( File "/home/wac/johnson/anaconda3/envs/gpt/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 1909, in _run_ninja_build raise RuntimeError(message) from e RuntimeError: Error building extension 'fused_adam' python-BaseException [2023-08-23 16:56:02,423] [INFO] [launch.py:315:sigkill_handler] Killing subprocess 2621324
|