Skip to content

Commit

Permalink
Merge pull request #46 from porumbes/main
Browse files Browse the repository at this point in the history
Fix build with updated cuCollections
  • Loading branch information
Ahdhn authored Dec 25, 2024
2 parents 014dade + b8f60ad commit 23bd0f8
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion apps/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ add_subdirectory(XPBD)
#add_subdirectory(Simplification)
add_subdirectory(SECHistogram)
add_subdirectory(Remesh)
#add_subdirectory(SECPriority)
add_subdirectory(SECPriority)
add_subdirectory(SurfaceTracking)
add_subdirectory(SCP)
add_subdirectory(ARAP)
Expand Down
5 changes: 2 additions & 3 deletions apps/SECPriority/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,13 @@ source_group(TREE ${CMAKE_CURRENT_LIST_DIR} PREFIX "SECPriority" FILES ${SOURCE_
# NVIDIA.
CPMAddPackage(
NAME cuco
GITHUB_REPOSITORY andrewbriand/cuCollections
GIT_TAG d58dd9fedde721a264c8ae960f7393a3a3b08c58
GITHUB_REPOSITORY porumbes/cuCollections
GIT_TAG b857b47b812f6e618e5f4e3e3cdcbfa5a3764898
OPTIONS
"BUILD_TESTS OFF"
"BUILD_BENCHMARKS OFF"
"BUILD_EXAMPLES OFF"
)

target_link_libraries(SECPriority
PRIVATE RXMesh
PRIVATE gtest_main
Expand Down
4 changes: 2 additions & 2 deletions apps/SECPriority/secp_kernels.cuh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once
#include "rxmesh/cavity_manager.cuh"
#include "../ShortestEdgeCollapse/link_condition.cuh"
#include "../Remesh/link_condition.cuh"

#include <cooperative_groups.h>
#include <cuda_runtime.h>
Expand Down Expand Up @@ -55,7 +55,7 @@ __global__ static void secp(rxmesh::Context context,

// 2a) check edge link condition.
link_condition(block, cavity.patch_info(), ev_query,
edge_mask, v0_mask, v1_mask);
edge_mask, v0_mask, v1_mask, 0, 1);
block.sync();

for_each_edge(cavity.patch_info(), [&](EdgeHandle eh) {
Expand Down
2 changes: 1 addition & 1 deletion apps/SECPriority/secp_rxmesh.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

// Priority Queue related includes
#include <cuco/priority_queue.cuh>
#include <cuco/detail/pair.cuh>
#include <cuco/pair.cuh>

#include <thrust/device_vector.h>
#include <thrust/host_vector.h>
Expand Down

0 comments on commit 23bd0f8

Please sign in to comment.