You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
jpad@guru:~$ go get github.com/samuel/go-opencl/cl
github.com/samuel/go-opencl/cl
prog/go/extern/src/github.com/samuel/go-opencl/cl/cl.go:19:17: fatal error: cl.h: No such file or directory
// #include "cl.h"
^
compilation terminated.
I guess that on an OS X machine there will also be similar troubles. I think something like this would be a solution:
On a linux machine i see this:
jpad@guru:~$ go get github.com/samuel/go-opencl/cl
github.com/samuel/go-opencl/cl
prog/go/extern/src/github.com/samuel/go-opencl/cl/cl.go:19:17: fatal error: cl.h: No such file or directory
// #include "cl.h"
^
compilation terminated.
I guess that on an OS X machine there will also be similar troubles. I think something like this would be a solution:
/*
#cgo CFLAGS: -I CL
#cgo !darwin LDFLAGS: -lOpenCL
#cgo darwin LDFLAGS: -framework OpenCL
#ifdef APPLE
#include "OpenCL/opencl.h"
#else
#include "CL/opencl.h"
#endif
*/
import "C"
...
The text was updated successfully, but these errors were encountered: