Giter Site home page Giter Site logo

cl's People

Contributors

hydroflame avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cl's Issues

Use idiomatic style for Go comments.

Hi,

I see this package has a lot of comments without a space after the two forward slashes, e.g.:

//Create Command Queue

Idiomatic Go style for comments is to include a space after the two forward slashes, so it should be:

// Create Command Queue

See https://golang.org/doc/effective_go.html#commentary and https://github.com/golang/go/wiki/CodeReviewComments#comment-sentences.

No space is used for commented out code and non-compiler directives, for example:

//go:generate foo

cl.GetPlatformIDs panic: runtime error: cgo argument has Go pointer to Go pointer

Go1.8
I can get the dreaded 'panic: runtime error: cgo argument has Go pointer to Go pointer' in
cl.GetPlatformIDs() when i make the cl.PlatformID argument a non-local variable. Same for cl.DeviceId in cl.GetDeviceIDs()...
Things seem to work fine if those variables are local, like in the provided sample code. It is a mystery to me, because this panic comes and goes, depending on code changes i make, and thus maybe the
actual addresses where the cl.PlatformID and cl.DeviceId are stored?

unknown field 'buffer'

With the new OpenCL cl.h file there is a change where an anonymous enum is giving troubles:

github.com/go-gl/cl/v1.2/cl

../../../../go/extern/src/github.com/go-gl/cl/v1.2/cl/package.go:726: unknown field 'buffer' in struct literal of type C.struct__cl_image_desc

I don't know how to properly solve this other than (temporarily) using the v1.2 cl.h header. Maybe there is a way to let cgo handle that enum?

Linking on Linux?

When building, /usr/bin/ld: cannot find -lCL.

$ locate libCL # No results
$ locate libOpenCL                                             
/opt/intel/opencl/libOpenCL.so
/opt/intel/opencl/libOpenCL.so.1
/opt/intel/opencl-runtime/lib64/libOpenCL.so
/opt/intel/opencl-runtime/lib64/libOpenCL.so.1
/opt/intel/opencl-runtime/lib64/libOpenCL.so.2.0
/usr/lib/libOpenCL.so
/usr/lib/libOpenCL.so.1
/usr/lib/libOpenCL.so.1.0.0

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.