Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
Coding for food

bw2012

💭
Coding for food
View GitHub Profile
@bw2012
bw2012 / devices.c
Last active Jan 30, 2019 — forked from courtneyfaulkner/devices.c
List OpenCL platforms and devices
View devices.c
#include <stdio.h>
#include <stdlib.h>
#ifdef __APPLE__
#include <OpenCL/opencl.h>
#else
#include <CL/cl.h>
#endif
int main() {