You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
681 B
36 lines
681 B
|
2 years ago
|
# OpenCL Demo
|
||
|
|
|
||
|
|
A toy program from
|
||
|
|
https://bbs.archlinux.org/viewtopic.php?id=254491
|
||
|
|
|
||
|
|
that I saved in the directory `./opencl-demo` and that you can build with `make`
|
||
|
|
|
||
|
|
```
|
||
|
|
cd ../opencl-demo
|
||
|
|
make
|
||
|
|
```
|
||
|
|
|
||
|
|
## Installing `opencl-headers`
|
||
|
|
|
||
|
|
https://stackoverflow.com/a/45880123
|
||
|
|
|
||
|
|
Because it can't find `CL/CL.h` at first.
|
||
|
|
```
|
||
|
|
sudo apt install opencl-headers
|
||
|
|
```
|
||
|
|
|
||
|
|
## Installable Client Driver (ICD)
|
||
|
|
|
||
|
|
Finally I find out what this technology is.
|
||
|
|
It appears to let you compile against OpenCL
|
||
|
|
libraries in a platform-independent way
|
||
|
|
(the same compiled binary would run on Intel / AMD / Nvidia)
|
||
|
|
|
||
|
|
https://stackoverflow.com/a/17456374
|
||
|
|
|
||
|
|
I can find the vendor definitions in
|
||
|
|
`/etc/OpenCL/vendors/`
|
||
|
|
|
||
|
|
|
||
|
|
|