Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build error #5

Closed
eddytrex opened this issue Dec 22, 2015 · 5 comments
Closed

build error #5

eddytrex opened this issue Dec 22, 2015 · 5 comments

Comments

@eddytrex
Copy link

Hi, I have this errors trying to compile golc

$go build -tags="cl12" gocl/ocl

gocl/cl/kernel1x.go: In function ‘_cgo_3df5c9c5fde2_Cfunc_clEnqueueTask’:
gocl/cl/kernel1x.go:53:2: warning: ‘clEnqueueTask’ is deprecated (declared at /usr/include/CL/cl.h:1367) [-Wdeprecated-declarations]
  if event != nil {
  ^

I'm using intel_sdk_for_ocl_applications_2014_4.6.0.92_x64
and my environment is

export intelappsdkroot=/opt/intel/opencl-1.2-sdk-4.6.0.92
export CGO_LDFLAGS=-L$intelappsdkroot/lib64
export CGO_CFLAGS=-l$intelappsdkroot/include

maybe you can help me
Thank you

@rainliu
Copy link
Owner

rainliu commented Dec 22, 2015

Is it warning or error? If warning, then that's normal because the version of CL.h you included may be 2.0, instead of 1.2

@eddytrex
Copy link
Author

I thing is a warning but the package is not generated.

@rainliu
Copy link
Owner

rainliu commented Dec 22, 2015

If warning, package should be generated.

Could you try? go test -v -tags="clxx" gocl/ocl_test
if ocl_test passed, then it is fine.

@eddytrex
Copy link
Author

Fails in TestContex with (cl12,cl11)
panic: runtime error: index out of range
with (cl20)
gocl/ocl/ocl20.go:80: undefined: queue1x

@eddytrex
Copy link
Author

Hi, I found my error. I left without configure ICD

http://wiki.tiker.net/OpenCLHowTo#Installing_the_Intel_CPU_ICD

I have the warnings but the test pass
Thanks (Y)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants