Skip to content

Commit

Permalink
Update 01-kernels.md
Browse files Browse the repository at this point in the history
  • Loading branch information
csccva authored May 24, 2024
1 parent 9b0a3f3 commit 6568f73
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions gpu-hip/docs/01-kernels.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,8 @@ int main(void)
# Kernels
- Kernel is a (device) function to be executed by the GPU
- Function should be of `void` type and needs to be declared with the
`__global__` or `__device__` attribute
- All pointers passed to the kernel need to point to memory accessible from
the device
- Needs to be declared with the `__global__` (has to be of `void` type) or `__device__` attribute
- All pointers passed to the kernel need to point to memory accessible from the device
- Unique thread and block IDs can be used to distribute work
Expand Down

0 comments on commit 6568f73

Please sign in to comment.