Initialize the clblas library.
Must be called before any other clblas API function is invoked.
- Note
- This function is not thread-safe.
- Returns
- clblasSucces on success;
- clblasOutOfHostMemory if there is not enough of memory to allocate library's internal structures;
- clblasOutOfResources in case of requested resources scarcity.
- Examples:
- example_chbmv.c, example_chemm.cpp, example_cher.c, example_cher2k.c, example_cherk.cpp, example_chpmv.c, example_chpr.c, example_csscal.c, example_isamax.c, example_sasum.c, example_saxpy.c, example_scopy.c, example_sdot.c, example_sgbmv.c, example_sgemm.c, example_sgemv.c, example_sger.c, example_snrm2.c, example_srot.c, example_srotg.c, example_srotm.c, example_srotmg.c, example_ssbmv.c, example_sscal.c, example_sspmv.c, example_sspr.c, example_sspr2.c, example_sswap.c, example_ssymm.c, example_ssymv.c, example_ssyr2k.c, example_ssyrk.c, example_stbmv.c, example_stbsv.c, example_stpmv.c, example_stpsv.c, example_strmm.c, example_strmv.c, example_strsm.c, example_strsv.c, example_zhemv.cpp, example_zher2.c, and example_zhpr2.c.