-
Notifications
You must be signed in to change notification settings - Fork 0
How to install OpenCL?
Architector edited this page Apr 20, 2019
·
4 revisions
Thanks to xorz57 for writing this page!
Link | Vendor |
---|---|
Download | INTEL |
Download | AMD |
Download | NVIDIA |
- Open
Project Properties
- Append
/path/to/sdk/include
toVC++ Directories --> Include Directories
- Append
/path/to/sdk/lib
toLinker --> General --> Additional Library Directories
- Append
OpenCL.lib
toLinker --> Input --> Additional Dependencies
Package | Vendor |
---|---|
opencl-nvidia |
AMD |
opencl-headers |
NVIDIA |
Package | |
---|---|
ocl-icd |
Required |
clinfo |
Optional |
Assuming you have a main.cpp
and EasyCL.hpp
under the same directory.
.
├── EasyCL.hpp
└── main.cpp
Compile and Link with OpenCL
.
g++ main.cpp -lOpenCL
Twitter: Architector
e-mail: olegsajaxov@yandex.ru
Wiki
Getting started
API