Skip to content

Commit

Permalink
Avoid nvcc compilation error (#55)
Browse files Browse the repository at this point in the history
Added define as per facebookresearch/pytorch3d#1614 (comment)

Co-authored-by: Chen, Michael <[email protected]>
  • Loading branch information
machenmusik and Chen, Michael authored Oct 18, 2023
1 parent a22056a commit d96d59d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ def get_extensions():
else:
nvcc_flags += ["--expt-relaxed-constexpr"]
extra_compile_args["nvcc"] = nvcc_flags
if sys.platform == "win32":
extra_compile_args["nvcc"] += ["-DWIN32_LEAN_AND_MEAN"]

extension = CUDAExtension(
f"gsplat.csrc",
Expand Down

0 comments on commit d96d59d

Please sign in to comment.