YaohuiW's picture
Upload 8 files
104417a verified
raw
history blame
2.76 kB
ninja_required_version = 1.3
cxx = c++
nvcc = /mnt/petrelfs/share/cuda-11.7/bin/nvcc
cflags = -DTORCH_EXTENSION_NAME=fused -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -isystem /mnt/petrelfs/wangyaohui/anaconda3/envs/latte/lib/python3.11/site-packages/torch/include -isystem /mnt/petrelfs/wangyaohui/anaconda3/envs/latte/lib/python3.11/site-packages/torch/include/torch/csrc/api/include -isystem /mnt/petrelfs/wangyaohui/anaconda3/envs/latte/lib/python3.11/site-packages/torch/include/TH -isystem /mnt/petrelfs/wangyaohui/anaconda3/envs/latte/lib/python3.11/site-packages/torch/include/THC -isystem /mnt/petrelfs/share/cuda-11.7/include -isystem /mnt/petrelfs/wangyaohui/anaconda3/envs/latte/include/python3.11 -D_GLIBCXX_USE_CXX11_ABI=0 -fPIC -std=c++17
post_cflags =
cuda_cflags = -DTORCH_EXTENSION_NAME=fused -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -isystem /mnt/petrelfs/wangyaohui/anaconda3/envs/latte/lib/python3.11/site-packages/torch/include -isystem /mnt/petrelfs/wangyaohui/anaconda3/envs/latte/lib/python3.11/site-packages/torch/include/torch/csrc/api/include -isystem /mnt/petrelfs/wangyaohui/anaconda3/envs/latte/lib/python3.11/site-packages/torch/include/TH -isystem /mnt/petrelfs/wangyaohui/anaconda3/envs/latte/lib/python3.11/site-packages/torch/include/THC -isystem /mnt/petrelfs/share/cuda-11.7/include -isystem /mnt/petrelfs/wangyaohui/anaconda3/envs/latte/include/python3.11 -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_80,code=compute_80 -gencode=arch=compute_80,code=sm_80 --compiler-options '-fPIC' -std=c++17
cuda_post_cflags =
cuda_dlink_post_cflags =
ldflags = -shared -L/mnt/petrelfs/wangyaohui/anaconda3/envs/latte/lib/python3.11/site-packages/torch/lib -lc10 -lc10_cuda -ltorch_cpu -ltorch_cuda -ltorch -ltorch_python -L/mnt/petrelfs/share/cuda-11.7/lib64 -lcudart
rule compile
command = $cxx -MMD -MF $out.d $cflags -c $in -o $out $post_cflags
depfile = $out.d
deps = gcc
rule cuda_compile
depfile = $out.d
deps = gcc
command = $nvcc $cuda_cflags -c $in -o $out $cuda_post_cflags
rule link
command = $cxx $in $ldflags -o $out
build fused_bias_act.o: compile /mnt/hwfile/wangyaohui/projects/LIA-X/LIAX-release/networks/op/fused_bias_act.cpp
build fused_bias_act_kernel.cuda.o: cuda_compile /mnt/hwfile/wangyaohui/projects/LIA-X/LIAX-release/networks/op/fused_bias_act_kernel.cu
build fused.so: link fused_bias_act.o fused_bias_act_kernel.cuda.o
default fused.so