Skip to content

Commit

Permalink
Fixed compilation warnings on CUDA
Browse files Browse the repository at this point in the history
  • Loading branch information
braxtoncuneo committed Sep 17, 2024
1 parent bea86cb commit 5482bc6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions harmonize/cpp/util/iter.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ struct Iter
, limit(iter.limit)
{}

__host__ __device__ Iter<IndexType> () = default;
Iter<IndexType> () = default;

__device__ void reset(IndexType start_val, IndexType limit_val) {
value = start_val;
Expand Down Expand Up @@ -76,7 +76,7 @@ struct GroupIter
, limit(iter.limit)
{}

__host__ __device__ GroupIter<IndexType> () = default;
GroupIter<IndexType> () = default;

__device__ void reset(IndexType start_val, IndexType limit_val) {
__syncthreads();
Expand Down Expand Up @@ -145,7 +145,7 @@ struct AtomicIter
IndexType limit;


__host__ __device__ AtomicIter<IndexType> () = default;
AtomicIter<IndexType> () = default;

__host__ __device__ AtomicIter<IndexType> ( IndexType start_val, IndexType limit_val )
: value(start_val)
Expand Down Expand Up @@ -256,7 +256,7 @@ struct ArrayIter {
, iter (other_iter)
{}

__host__ __device__ ArrayIter<T,ITER_TYPE,INDEX_TYPE> () = default;
ArrayIter<T,ITER_TYPE,INDEX_TYPE> () = default;


__device__ void reset(T* new_array, IterType new_iter) {
Expand Down

0 comments on commit 5482bc6

Please sign in to comment.