Skip to content

Commit

Permalink
CopyToConst now const-correct for CPU std::memcpy
Browse files Browse the repository at this point in the history
  • Loading branch information
kubagalecki committed Oct 12, 2023
1 parent ed7ad2b commit 95b2979
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CartLatticeExecutor.hpp.Rt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ using CartLatticeAccessInterior = AccessComposite< CartLatticeAccess<
range_int< <?%d BorderMargin$max[3] ?>,0,<?%d BorderMargin$min[3]-1 ?>,1> > >;

template<class T>
static void CopyObjToConst(const T& host_obj, const T& const_symbol) {
static void CopyObjToConst(const T& host_obj, T& const_symbol) {
CudaCopyToConstant("copy to GPU constant memory", const_symbol, &host_obj, sizeof(T));
}

Expand Down

0 comments on commit 95b2979

Please sign in to comment.