Skip to content

Commit

Permalink
Upgrade stdgpu to latest version
Browse files Browse the repository at this point in the history
  • Loading branch information
stotko committed Nov 30, 2024
1 parent c8856fc commit 8e39f23
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions 3rdparty/stdgpu/stdgpu.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@ include(ExternalProject)
ExternalProject_Add(
ext_stdgpu
PREFIX stdgpu
# Jun 20 2024. Later versions need CUDA 11.5 and an API update (stdgpu::pair)
URL https://github.com/stotko/stdgpu/archive/1b6a3319f1fbf180166e1bbc1d75f69ab622a0a0.tar.gz
URL_HASH SHA256=faa3bf9cbe49ef9cc09e2e07e60d10bbf3b896edb6089c920bebe0f850fd95e4
URL https://github.com/stotko/stdgpu/archive/2588168d226bd17229dbf58d821549580791089d.tar.gz
URL_HASH SHA256=86e50789bbe21c57f64358c6acbd4481d56c1e45ce9ba1fb5c5c8482c3973215
DOWNLOAD_DIR "${OPEN3D_THIRD_PARTY_DOWNLOAD_DIR}/stdgpu"
UPDATE_COMMAND ""
CMAKE_ARGS
Expand Down
4 changes: 2 additions & 2 deletions cpp/open3d/core/hashmap/CUDA/StdGPUHashBackend.h
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class StdGPUAllocator {
// accessible in raw CUDA kernels.
template <typename Key>
using InternalStdGPUHashBackendAllocator =
StdGPUAllocator<thrust::pair<const Key, buf_index_t>>;
StdGPUAllocator<stdgpu::pair<const Key, buf_index_t>>;

template <typename Key, typename Hash, typename Eq>
using InternalStdGPUHashBackend =
Expand Down Expand Up @@ -252,7 +252,7 @@ void StdGPUHashBackend<Key, Hash, Eq>::Erase(const void* input_keys,
template <typename Key>
struct ValueExtractor {
OPEN3D_HOST_DEVICE buf_index_t
operator()(const thrust::pair<Key, buf_index_t>& x) const {
operator()(const stdgpu::pair<Key, buf_index_t>& x) const {
return x.second;
}
};
Expand Down

0 comments on commit 8e39f23

Please sign in to comment.