Skip to content
Snippets Groups Projects
Commit c971212d authored by dansa828's avatar dansa828
Browse files

lab6 setup

parent c583498a
No related branches found
No related tags found
No related merge requests found
all:
gcc hello_world_cl.c CLutilities.c -lOpenCL -I/usr/local/cuda/include -o hello_world_cl
......@@ -156,3 +156,9 @@ We found this balance with a 9 x 9 filter kernel.
## Lab 6
### Question: How is the communication between the host and the graphic card handled?
First we set our context on the GPU. Then we allocate/copy memory to GPU. Then the kernel is run.
### Question: What function executes your kernel?
clEnqueueNDRangeKernel()
### Question: How does the kernel know what element to work on?
get_global_id() in function __kernel void hello()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment