Skip to content

Commit

Permalink
vecvec: expose key type, add cuda compat util
Browse files Browse the repository at this point in the history
  • Loading branch information
felixguendling committed Jan 14, 2025
1 parent 577c81f commit b4b8bc7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions include/cista/containers/vecvec.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ namespace cista {

template <typename Key, typename DataVec, typename IndexVec>
struct basic_vecvec {
using key = Key;
using data_value_type = typename DataVec::value_type;
using index_value_type = typename IndexVec::value_type;

Expand Down
7 changes: 7 additions & 0 deletions include/cista/cuda_check.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#pragma once

#if defined(__CUDA_ARCH__)
#define CISTA_CUDA_COMPAT __host__ __device__
#else
#define CISTA_CUDA_COMPAT
#endif

0 comments on commit b4b8bc7

Please sign in to comment.