Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Multicore GPU programming
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ylva Selling
Multicore GPU programming
Commits
c971212d
Commit
c971212d
authored
4 years ago
by
dansa828
Browse files
Options
Downloads
Patches
Plain Diff
lab6 setup
parent
c583498a
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Lab6/Makefile
+2
-0
2 additions, 0 deletions
Lab6/Makefile
README.md
+6
-0
6 additions, 0 deletions
README.md
with
8 additions
and
0 deletions
Lab6/Makefile
0 → 100644
+
2
−
0
View file @
c971212d
all
:
gcc hello_world_cl.c CLutilities.c
-lOpenCL
-I
/usr/local/cuda/include
-o
hello_world_cl
This diff is collapsed.
Click to expand it.
README.md
+
6
−
0
View file @
c971212d
...
...
@@ -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()
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment