Skip to content

Commit

Permalink
Improvements with cuda/std/array and cuda/std/utility (pair).
Browse files Browse the repository at this point in the history
  • Loading branch information
Alvov1 committed Jan 18, 2024
1 parent 9bdfc67 commit 7894dc4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Aesi.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

#ifdef __CUDACC__
#define gpu __host__ __device__
#include <thrust/pair.h>
#include <cuda/std/utility>
#include <cuda/std/array>
#else
#define gpu
Expand Down Expand Up @@ -48,17 +48,18 @@ class Aesi final {

#ifdef __CUDACC__
template <typename T1, typename T2>
using pair = thrust::pair<T1, T2>;
using pair = cuda::std::pair<T1, T2>;
using blockLine = cuda::std::array<block, blocksNumber>;
#else
template <typename T1, typename T2>
using pair = std::pair<T1, T2>;
using blockLine = std::array<block, blocksNumber>;
#endif

/* -------------------------- @name Class members. ----------------------- */
/**
* @brief Block line of the number
*/
using blockLine = std::array<block, blocksNumber>;
blockLine blocks {};

/**
Expand Down

0 comments on commit 7894dc4

Please sign in to comment.