more gpu
This commit is contained in:
@@ -5,8 +5,9 @@
|
||||
using namespace std;
|
||||
|
||||
// Let's use a pinned memory vector!
|
||||
#include <thrust/host_vector.h>
|
||||
#include <thrust/system/cuda/experimental/pinned_allocator.h>
|
||||
// Removed Thrust pinned allocator dependency for portability
|
||||
// #include <thrust/host_vector.h>
|
||||
// #include <thrust/system/cuda/experimental/pinned_allocator.h>
|
||||
|
||||
using u32 = uint32_t;
|
||||
using u64 = uint64_t;
|
||||
@@ -228,10 +229,8 @@ void Chunk::compress_chunk(u32 out_flags) {
|
||||
}
|
||||
}
|
||||
|
||||
using thrust_vector = thrust::host_vector<
|
||||
Chunk,
|
||||
thrust::system::cuda::experimental::pinned_allocator<Chunk>
|
||||
>;
|
||||
// Fallback alias: use std::vector instead of thrust pinned host vector
|
||||
using thrust_vector = std::vector<Chunk>;
|
||||
|
||||
// The GPU hasher
|
||||
void light_hash(Chunk*, int, Chunk*, Chunk*);
|
||||
|
Reference in New Issue
Block a user