Marked some internal functions static
This commit is contained in:
@@ -73,7 +73,7 @@ kernel_periodic_boundconds(const int3 start, const int3 end, AcReal* vtxbuf)
|
||||
vtxbuf[dst_idx] = vtxbuf[src_idx];
|
||||
}
|
||||
|
||||
void
|
||||
static void
|
||||
periodic_boundconds(const cudaStream_t stream, const int3& start, const int3& end, AcReal* vtxbuf)
|
||||
{
|
||||
const dim3 tpb(8, 2, 8);
|
||||
|
@@ -171,7 +171,7 @@ kernel_reduce_block(const __restrict__ AcReal* scratchpad, const int num_blocks,
|
||||
*result = res;
|
||||
}
|
||||
|
||||
AcReal
|
||||
static AcReal
|
||||
reduce_scal(const cudaStream_t stream, const ReductionType rtype, const int3& start,
|
||||
const int3& end, const AcReal* vtxbuf, AcReal* scratchpad, AcReal* reduce_result)
|
||||
{
|
||||
@@ -225,7 +225,7 @@ reduce_scal(const cudaStream_t stream, const ReductionType rtype, const int3& st
|
||||
return result;
|
||||
}
|
||||
|
||||
AcReal
|
||||
static AcReal
|
||||
reduce_vec(const cudaStream_t stream, const ReductionType rtype, const int3& start, const int3& end,
|
||||
const AcReal* vtxbuf0, const AcReal* vtxbuf1, const AcReal* vtxbuf2, AcReal* scratchpad,
|
||||
AcReal* reduce_result)
|
||||
|
Reference in New Issue
Block a user