hzxie's picture
Fix some bugs.
1a8fbd0 verified
raw
history blame contribute delete
990 Bytes
# -*- coding: utf-8 -*-
#
# @File: setup.py
# @Author: Jiaxiang Tang (@ashawkey)
# @Date: 2023-04-15 10:33:32
# @Last Modified by: Haozhe Xie
# @Last Modified at: 2024-09-22 11:00:03
# @Email: [email protected]
# @Ref: https://github.com/ashawkey/torch-ngp
from setuptools import setup
from torch.utils.cpp_extension import BuildExtension, CUDAExtension
cxx_args = ["-O3", "-std=c++17"]
nvcc_args = [
"-O3",
"-std=c++17",
"-U__CUDA_NO_HALF_OPERATORS__",
"-U__CUDA_NO_HALF_CONVERSIONS__",
"-U__CUDA_NO_HALF2_OPERATORS__",
]
setup(
name="grid_encoder",
version="1.0.0",
ext_modules=[
CUDAExtension(
name="grid_encoder_ext",
sources=[
"grid_encoder_ext.cu",
"bindings.cpp",
],
extra_compile_args={
"cxx": cxx_args,
"nvcc": nvcc_args,
},
),
],
cmdclass={
"build_ext": BuildExtension,
},
)