Skip to content

Commit

Permalink
[vectorAdd] Change to hipLaunchKernelGGL (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
Avatat authored and mangupta committed Jun 6, 2019
1 parent b255c0d commit 7692575
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions vectorAdd/vectoradd_hip.cpp
Expand Up @@ -40,8 +40,7 @@ THE SOFTWARE.
#define THREADS_PER_BLOCK_Z 1

__global__ void
vectoradd_float(hipLaunchParm lp,
float* __restrict__ a, const float* __restrict__ b, const float* __restrict__ c, int width, int height)
vectoradd_float(float* __restrict__ a, const float* __restrict__ b, const float* __restrict__ c, int width, int height)

{

Expand Down Expand Up @@ -115,7 +114,7 @@ int main() {
HIP_ASSERT(hipMemcpy(deviceC, hostC, NUM*sizeof(float), hipMemcpyHostToDevice));


hipLaunchKernel(vectoradd_float,
hipLaunchKernelGGL(vectoradd_float,
dim3(WIDTH/THREADS_PER_BLOCK_X, HEIGHT/THREADS_PER_BLOCK_Y),
dim3(THREADS_PER_BLOCK_X, THREADS_PER_BLOCK_Y),
0, 0,
Expand Down

0 comments on commit 7692575

Please sign in to comment.