remove cublas calls

Issue #1 resolved
Mark Gates created an issue

There are a few lingering calls directly to cuda & cublas that should be replaced and removed.

Use the cublas handle in the magma queue instead of creating a new one:

src/zpotrf_vbatched.cpp:    cublasCreate_v2(&myhandle);
src/zpotrf_vbatched.cpp:    cublasDestroy_v2(myhandle);

Replace cudaEventCreateWithFlags with magma_event_create:

src/zbulge_applyQ_v2.cpp:    cudaEventCreateWithFlags(&myevent[0],cudaEventDisableTiming);
src/zbulge_applyQ_v2.cpp:    cudaEventCreateWithFlags(&myevent[1],cudaEventDisableTiming);
src/zbulge_applyQ_v2_m.cpp:            //cudaEventCreateWithFlags(&myevent[dev][i],cudaEventDisableTiming);
src/zhetrd_he2hb.cpp:    cudaEventCreateWithFlags(&Pupdate_event,cudaEventDisableTiming);
src/zhetrd_he2hb_mgpu.cpp:            cudaEventCreateWithFlags( &events[dev][i], cudaEventDisableTiming );

Comments (1)

  1. Log in to comment