Skip to content

Commit

Permalink
fix register issue in surface tracking compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahdhn committed Oct 8, 2024
1 parent fe1bc5a commit 9358a8e
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 45 deletions.
24 changes: 12 additions & 12 deletions apps/SurfaceTracking/collapser.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,18 @@


template <typename T, uint32_t blockThreads>
__global__ static void __launch_bounds__(blockThreads)
edge_collapse(rxmesh::Context context,
rxmesh::VertexAttribute<T> position,
rxmesh::VertexAttribute<int8_t> vertex_rank,
rxmesh::EdgeAttribute<EdgeStatus> edge_status,
rxmesh::VertexAttribute<int8_t> is_vertex_bd,
rxmesh::EdgeAttribute<int8_t> is_edge_bd,
const T collapser_min_edge_length,
const T max_volume_change,
const T min_triangle_area,
const T min_triangle_angle,
const T max_triangle_angle)
__global__ static void //__launch_bounds__(blockThreads)
edge_collapse(rxmesh::Context context,
rxmesh::VertexAttribute<T> position,
rxmesh::VertexAttribute<int8_t> vertex_rank,
rxmesh::EdgeAttribute<EdgeStatus> edge_status,
rxmesh::VertexAttribute<int8_t> is_vertex_bd,
rxmesh::EdgeAttribute<int8_t> is_edge_bd,
const T collapser_min_edge_length,
const T max_volume_change,
const T min_triangle_area,
const T min_triangle_angle,
const T max_triangle_angle)
{
using namespace rxmesh;
auto block = cooperative_groups::this_thread_block();
Expand Down
34 changes: 17 additions & 17 deletions apps/SurfaceTracking/flipper.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
#include "rxmesh/geometry_util.cuh"

template <typename T, uint32_t blockThreads>
__global__ static void __launch_bounds__(blockThreads)
classify_vertex(const rxmesh::Context context,
const rxmesh::VertexAttribute<T> position,
const rxmesh::VertexAttribute<int8_t> is_vertex_bd,
rxmesh::VertexAttribute<int8_t> vertex_rank)
__global__ static void // __launch_bounds__(blockThreads)
classify_vertex(const rxmesh::Context context,
const rxmesh::VertexAttribute<T> position,
const rxmesh::VertexAttribute<int8_t> is_vertex_bd,
rxmesh::VertexAttribute<int8_t> vertex_rank)
{
// Compute rank of the quadric metric tensor at a vertex Determine the rank
// of the primary space at the given vertex(see Jiao07)
Expand Down Expand Up @@ -92,18 +92,18 @@ __global__ static void __launch_bounds__(blockThreads)


template <typename T, uint32_t blockThreads>
__global__ static void __launch_bounds__(blockThreads)
edge_flip(rxmesh::Context context,
rxmesh::VertexAttribute<T> position,
rxmesh::VertexAttribute<int8_t> vertex_rank,
rxmesh::EdgeAttribute<EdgeStatus> edge_status,
rxmesh::VertexAttribute<int8_t> is_vertex_bd,
rxmesh::EdgeAttribute<int8_t> is_edge_bd,
const T edge_flip_min_length_change,
const T max_volume_change,
const T min_triangle_area,
const T min_triangle_angle,
const T max_triangle_angle)
__global__ static void //__launch_bounds__(blockThreads)
edge_flip(rxmesh::Context context,
rxmesh::VertexAttribute<T> position,
rxmesh::VertexAttribute<int8_t> vertex_rank,
rxmesh::EdgeAttribute<EdgeStatus> edge_status,
rxmesh::VertexAttribute<int8_t> is_vertex_bd,
rxmesh::EdgeAttribute<int8_t> is_edge_bd,
const T edge_flip_min_length_change,
const T max_volume_change,
const T min_triangle_area,
const T min_triangle_angle,
const T max_triangle_angle)
{
using namespace rxmesh;

Expand Down
10 changes: 5 additions & 5 deletions apps/SurfaceTracking/smoother.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@


template <typename T, uint32_t blockThreads>
__global__ static void __launch_bounds__(blockThreads)
null_space_smooth_vertex(const rxmesh::Context context,
const rxmesh::VertexAttribute<int8_t> is_vertex_bd,
const rxmesh::VertexAttribute<T> current_position,
rxmesh::VertexAttribute<T> new_position)
__global__ static void //__launch_bounds__(blockThreads)
null_space_smooth_vertex(const rxmesh::Context context,
const rxmesh::VertexAttribute<int8_t> is_vertex_bd,
const rxmesh::VertexAttribute<T> current_position,
rxmesh::VertexAttribute<T> new_position)
{

using namespace rxmesh;
Expand Down
22 changes: 11 additions & 11 deletions apps/SurfaceTracking/splitter.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,17 @@ enum class EdgeSplitPredicate


template <typename T, uint32_t blockThreads>
__global__ static void __launch_bounds__(blockThreads)
split_edges(rxmesh::Context context,
const rxmesh::VertexAttribute<T> position,
rxmesh::EdgeAttribute<EdgeStatus> edge_status,
rxmesh::VertexAttribute<int8_t> is_vertex_bd,
rxmesh::EdgeAttribute<int8_t> is_edge_bd,
const T splitter_max_edge_length,
const T min_triangle_area,
const T min_triangle_angle,
const T max_triangle_angle,
const EdgeSplitPredicate predicate)
__global__ static void //__launch_bounds__(blockThreads)
split_edges(rxmesh::Context context,
const rxmesh::VertexAttribute<T> position,
rxmesh::EdgeAttribute<EdgeStatus> edge_status,
rxmesh::VertexAttribute<int8_t> is_vertex_bd,
rxmesh::EdgeAttribute<int8_t> is_edge_bd,
const T splitter_max_edge_length,
const T min_triangle_area,
const T min_triangle_angle,
const T max_triangle_angle,
const EdgeSplitPredicate predicate)
{
using namespace rxmesh;

Expand Down

0 comments on commit 9358a8e

Please sign in to comment.