Skip to content
Snippets Groups Projects
Commit 1be77355 authored by Prakalp Srivastava's avatar Prakalp Srivastava
Browse files

fixed hint in stencil visc

parent 8cc8470c
No related branches found
No related tags found
No related merge requests found
......@@ -35,6 +35,7 @@ static int read_data(float *A0, int nx,int ny,int nz,FILE *fp)
void naive_kernel(float c0,float c1, float* A0, float *Anext,int nx,int ny,int nz)
{
__visc__hint(visc::DEVICE);
__visc__attributes(2, A0, Anext, 1, Anext);
int i = get_global_id(0)+1;
int j = get_global_id(1)+1;
......@@ -139,7 +140,7 @@ int main(int argc, char** argv) {
for(t=0; t<iteration; t++)
{
pb_SwitchToTimer(&timers, pb_TimerID_NONE);
unsigned stencilDFG = __visc__node(naive_kernel, 2, 3, block[0], block[1], block[2], grid[0]/block[0], grid[1]/block[1], grid[2]/block[2], 9, (float)c0, (float)c1, h_A0, bytes, h_Anext, bytes, nx, ny, nz, 0);
void* stencilDFG = __visc__node(naive_kernel, 2, 3, block[0], block[1], block[2], grid[0]/block[0], grid[1]/block[1], grid[2]/block[2], 9, (float)c0, (float)c1, h_A0, bytes, h_Anext, bytes, nx, ny, nz, 0);
__visc__wait(stencilDFG);
//printf("iteration %d\n",t);
pb_SwitchToTimer(&timers, pb_TimerID_COMPUTE);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment