Using CULA and CUBLAS at the same time?

General CULA Dense (LAPACK & BLAS) support and troubleshooting. Use this forum if you are having a general problem or have encountered a bug.

Using CULA and CUBLAS at the same time?

Postby adrian_cg » Fri Jul 09, 2010 9:33 am

Hi @ll,

I have an algorithm where I want to use cula and cublas functions simultaneously. Will all cublas functions be avaliable when I include and use cula, since cula internally uses it?

Do I need to call both cublasInit() and culaInit() or is it enough to do culaInit() etc.?

Thanks,
Adrian
adrian_cg
 
Posts: 1
Joined: Tue Jun 29, 2010 10:34 pm

Re: Using CULA and CUBLAS at the same time?

Postby john » Mon Jul 12, 2010 8:42 am

Hi adrian, that is correct. culaInitialize will also initialize CUBLAS for you, so you can freely use both calls in between the culaInitialize/culaShutdown pair. However, it would not hurt to also initialize and shutdown cublas specifically because we do not guarantee that culaInitalize performs this operation - it is merely a side-effect.
john
Administrator
 
Posts: 587
Joined: Thu Jul 23, 2009 2:31 pm


Return to CULA Dense Support

Who is online

Users browsing this forum: No registered users and 1 guest

cron