Page 1 of 1

Using CULA and CUBLAS at the same time?

PostPosted: Fri Jul 09, 2010 9:33 am
by adrian_cg
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

Re: Using CULA and CUBLAS at the same time?

PostPosted: Mon Jul 12, 2010 8:42 am
by john
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.