|
ninja_required_version = 1.3 |
|
cxx = c++ |
|
nvcc = /home/kshitij/miniconda3/envs/towerllm-env/bin/nvcc |
|
|
|
cflags = -DTORCH_EXTENSION_NAME=fused_dense_cuda -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -isystem /home/kshitij/miniconda3/envs/towerllm-env/lib/python3.9/site-packages/torch/include -isystem /home/kshitij/miniconda3/envs/towerllm-env/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -isystem /home/kshitij/miniconda3/envs/towerllm-env/lib/python3.9/site-packages/torch/include/TH -isystem /home/kshitij/miniconda3/envs/towerllm-env/lib/python3.9/site-packages/torch/include/THC -isystem /home/kshitij/miniconda3/envs/towerllm-env/include -isystem /home/kshitij/miniconda3/envs/towerllm-env/include/python3.9 -D_GLIBCXX_USE_CXX11_ABI=0 -fPIC -std=c++17 -O3 |
|
post_cflags = |
|
cuda_cflags = -DTORCH_EXTENSION_NAME=fused_dense_cuda -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -isystem /home/kshitij/miniconda3/envs/towerllm-env/lib/python3.9/site-packages/torch/include -isystem /home/kshitij/miniconda3/envs/towerllm-env/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -isystem /home/kshitij/miniconda3/envs/towerllm-env/lib/python3.9/site-packages/torch/include/TH -isystem /home/kshitij/miniconda3/envs/towerllm-env/lib/python3.9/site-packages/torch/include/THC -isystem /home/kshitij/miniconda3/envs/towerllm-env/include -isystem /home/kshitij/miniconda3/envs/towerllm-env/include/python3.9 -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 -gencode arch=compute_70,code=sm_70 --use_fast_math -U__CUDA_NO_HALF_OPERATORS__ -U__CUDA_NO_HALF_CONVERSIONS__ -gencode arch=compute_80,code=sm_80 -gencode arch=compute_90,code=sm_90 -std=c++17 |
|
cuda_post_cflags = |
|
cuda_dlink_post_cflags = |
|
ldflags = -shared -L/home/kshitij/miniconda3/envs/towerllm-env/lib/python3.9/site-packages/torch/lib -lc10 -lc10_cuda -ltorch_cpu -ltorch_cuda -ltorch -ltorch_python -L/home/kshitij/miniconda3/envs/towerllm-env/lib -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 --generate-dependencies-with-compile --dependency-output $out.d $cuda_cflags -c $in -o $out $cuda_post_cflags |
|
|
|
|
|
|
|
rule link |
|
command = $cxx $in $ldflags -o $out |
|
|
|
build fused_weight_gradient_dense.o: compile /media/scratch/kshitij/LLAMA/latest_megatron_codebase/multilinguality_megatron/megatron/fused_kernels/fused_weight_gradient_dense.cpp |
|
build fused_weight_gradient_dense.cuda.o: cuda_compile /media/scratch/kshitij/LLAMA/latest_megatron_codebase/multilinguality_megatron/megatron/fused_kernels/fused_weight_gradient_dense.cu |
|
|
|
|
|
|
|
build fused_dense_cuda.so: link fused_weight_gradient_dense.o fused_weight_gradient_dense.cuda.o |
|
|
|
default fused_dense_cuda.so |
|
|