Add copy_coherency test
Test cache managemenent and synchronization between kernel and copy commands in separate queues.
Este cometimento está contido em:
1 ascendente
89ad18584d
cometimento
cb613bb6a8
2 ficheiros modificados
+404
Não existem ficheiros que correspondam à sua pesquisa
@@ -0,0 +1,13 @@
|
||||
#include <hip/hip_runtime.h>
|
||||
|
||||
|
||||
|
||||
extern "C" __global__ void
|
||||
memcpyIntKernel(hipLaunchParm lp, int *dst, const int * src, size_t numElements)
|
||||
{
|
||||
int gid = (hipBlockIdx_x * hipBlockDim_x + hipThreadIdx_x);
|
||||
int stride = hipBlockDim_x * hipGridDim_x ;
|
||||
for (size_t i= gid; i< numElements; i+=stride){
|
||||
dst[i] = src[i];
|
||||
}
|
||||
};
|
||||
Criar uma nova questão referindo esta
Bloquear um utilizador