CUBLAS from OpenCL?
Is it possible to utilize CUBLAS from OpenCL somehow?
Is it possible to utilize CUBLAS from OpenCL somehow?

#1
Posted 04/03/2012 01:25 PM   
I doubt it, as there does not seem to be a valid CUDA context while running OpenCL. At least the CUDA context is not bound to the current thread, as [i]cuCtxGetCurrent[/i] does not work. And it is my understanding that this is what libraries should use to get the proper CUDA context. I would be very happy to hear about any progress you make in getting this working, as this would also open us the way to nice CUDA functionality like the cache configuration.
I doubt it, as there does not seem to be a valid CUDA context while running OpenCL. At least the CUDA context is not bound to the current thread, as cuCtxGetCurrent does not work. And it is my understanding that this is what libraries should use to get the proper CUDA context. I would be very happy to hear about any progress you make in getting this working, as this would also open us the way to nice CUDA functionality like the cache configuration.

#2
Posted 04/03/2012 01:33 PM   
Two options:

1) create a CUDA context and simply pass data from OpenCL to CUDA and back again. ugly overhead, but still possibly worth it.
2) use AMD's BLAS library (note ArrayFire OpenCL has this integrated)
Two options:



1) create a CUDA context and simply pass data from OpenCL to CUDA and back again. ugly overhead, but still possibly worth it.

2) use AMD's BLAS library (note ArrayFire OpenCL has this integrated)

John Melonakos ([email="john.melonakos@accelereyes.com"]john.melonakos@accelereyes.com[/email])

#3
Posted 04/03/2012 01:36 PM   
Thanks everyone! I am looking at all the options. I could not get the latest AMD Blas to work on Nvidia hardware, and I see that one other user on AMD forums had similar problems as mine.
melonakos, can you post what version you use :)?
I also looked at ViennaCL (http://viennacl.sourceforge.net/). It builds and runs fine on both AMD and Nvidia hardware but the performance was not as good as I would like.
Thanks everyone! I am looking at all the options. I could not get the latest AMD Blas to work on Nvidia hardware, and I see that one other user on AMD forums had similar problems as mine.

melonakos, can you post what version you use :)?

I also looked at ViennaCL (http://viennacl.sourceforge.net/). It builds and runs fine on both AMD and Nvidia hardware but the performance was not as good as I would like.

#4
Posted 04/03/2012 08:35 PM   
[quote name='kaoken' date='03 April 2012 - 03:35 PM' timestamp='1333485320' post='1391586']
melonakos, can you post what version you use :)?
[/quote]

libclAmdBlas.so.1.4.182, so v1.4
[quote name='kaoken' date='03 April 2012 - 03:35 PM' timestamp='1333485320' post='1391586']

melonakos, can you post what version you use :)?





libclAmdBlas.so.1.4.182, so v1.4

John Melonakos ([email="john.melonakos@accelereyes.com"]john.melonakos@accelereyes.com[/email])

#5
Posted 04/03/2012 11:28 PM   
[quote name='melonakos' date='03 April 2012 - 04:28 PM' timestamp='1333495719' post='1391664']
libclAmdBlas.so.1.4.182, so v1.4
[/quote]

Thanks! Will try that.
[quote name='melonakos' date='03 April 2012 - 04:28 PM' timestamp='1333495719' post='1391664']

libclAmdBlas.so.1.4.182, so v1.4





Thanks! Will try that.

#6
Posted 04/04/2012 05:03 AM   
Scroll To Top