Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion o-voxel/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
if not IS_HIP:
cc_flag = []
else:
archs = os.getenv("GPU_ARCHS", "native").split(";")
archs = os.getenv("GPU_ARCHS", "gfx942").split(";")
cc_flag = [f"--offload-arch={arch}" for arch in archs]

setup(
Expand Down
4 changes: 4 additions & 0 deletions o-voxel/src/hash/hash.cu
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
#include <torch/extension.h>
#ifdef __HIP_PLATFORM_AMD__
#include <hip/hip_runtime.h>
#else
#include <cuda.h>
#include <cuda_runtime.h>
#endif

#include "api.h"
#include "hash.cuh"
Expand Down
4 changes: 4 additions & 0 deletions o-voxel/src/rasterize/rasterize.cu
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
#include <cstdint>

#ifdef __HIP_PLATFORM_AMD__
#include <hip/hip_runtime.h>
#else
#include <cuda.h>
#endif
#include "cuda_runtime.h"

#include <cooperative_groups.h>
Expand Down
4 changes: 4 additions & 0 deletions o-voxel/src/serialize/hilbert.cu
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#ifdef __HIP_PLATFORM_AMD__
#include <hip/hip_runtime.h>
#else
#include <cuda.h>
#include <cuda_runtime.h>
#endif

#include <cooperative_groups.h>
namespace cg = cooperative_groups;
Expand Down
4 changes: 4 additions & 0 deletions o-voxel/src/serialize/z_order.cu
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#ifdef __HIP_PLATFORM_AMD__
#include <hip/hip_runtime.h>
#else
#include <cuda.h>
#include <cuda_runtime.h>
#endif

#include <cooperative_groups.h>
namespace cg = cooperative_groups;
Expand Down
Loading