Skip to content
This repository has been archived by the owner on Jul 9, 2021. It is now read-only.

Commit

Permalink
modified kernel
Browse files Browse the repository at this point in the history
  • Loading branch information
mathiaswagner committed Jun 29, 2017
1 parent 53a76ec commit 139be32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hello.cu
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ __global__
void saxpy(int n, float a, float *x, float *y)
{
int i = blockIdx.x*blockDim.x + threadIdx.x;
if (i < n) y[i] = a*x[i] + y[i];
if (i < n) y[i] = 3.f*a*x[i] + y[i];
}

int main(void)
Expand Down

0 comments on commit 139be32

Please sign in to comment.