Skip to content

SasView/ocltest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minimal OpenCL program on Windows

This is a sample project to demonstrate a minimal OpenCL project on Windows. To compile it you only need MinGW64 and a graphics driver with an OpenCL runtime. Then compile it with

gcc -I. main.c C:\Windows\System32\OpenCL.dll -o main.exe

No SDK or anything else needed. More details in this article.

Run using:

main.exe

With tinycc x86 on windows use:

tcc.exe -I. main.c c:/Windows/system32/OpenCL.dll

TinyCC is available from https://github.com/sasview/tinycc.git. If this is installed as a sister repository, then use:

../tinycc/tinycc/x86/tcc.exe -I../tinycc/tinycc/include -I. main.c c:/Windows/system32/OpenCL.dll

About

minimal opencl program for testing kernels

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published