Made it possible to build the OMATCOPY test and client in case only clBLAS is present

This commit is contained in:
CNugteren 2016-06-28 16:36:01 +02:00
parent 9171f1c160
commit 2c031f3e1d

View file

@ -83,14 +83,10 @@ class TestXomatcopy {
// Describes how to run a naive version of the routine (for correctness/performance comparison).
// Note that a proper clBLAS or CPU BLAS comparison is not available for non-BLAS routines.
#ifdef CLBLAST_REF_CLBLAS
static StatusCode RunReference1(const Arguments<T> &args, Buffers<T> &buffers, Queue &queue) {
return RunReference2(args, buffers, queue);
}
#endif
#ifdef CLBLAST_REF_CBLAS
static StatusCode RunReference2(const Arguments<T> &args, Buffers<T> &buffers, Queue &queue) {
// Data transfer from OpenCL to std::vector
@ -128,7 +124,6 @@ class TestXomatcopy {
buffers.b_mat.Write(queue, args.b_size, b_mat_cpu);
return StatusCode::kSuccess;
}
#endif
// Describes how to download the results of the computation (more importantly: which buffer)
static std::vector<T> DownloadResult(const Arguments<T> &args, Buffers<T> &buffers, Queue &queue) {