mirror of
https://github.com/CNugteren/CLBlast.git
synced 2024-08-21 12:32:26 +02:00
Made it possible to build the OMATCOPY test and client in case only clBLAS is present
This commit is contained in:
parent
9171f1c160
commit
2c031f3e1d
|
@ -83,14 +83,10 @@ class TestXomatcopy {
|
||||||
|
|
||||||
// Describes how to run a naive version of the routine (for correctness/performance comparison).
|
// 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.
|
// 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) {
|
static StatusCode RunReference1(const Arguments<T> &args, Buffers<T> &buffers, Queue &queue) {
|
||||||
return RunReference2(args, buffers, queue);
|
return RunReference2(args, buffers, queue);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef CLBLAST_REF_CBLAS
|
|
||||||
static StatusCode RunReference2(const Arguments<T> &args, Buffers<T> &buffers, Queue &queue) {
|
static StatusCode RunReference2(const Arguments<T> &args, Buffers<T> &buffers, Queue &queue) {
|
||||||
|
|
||||||
// Data transfer from OpenCL to std::vector
|
// Data transfer from OpenCL to std::vector
|
||||||
|
@ -128,7 +124,6 @@ class TestXomatcopy {
|
||||||
buffers.b_mat.Write(queue, args.b_size, b_mat_cpu);
|
buffers.b_mat.Write(queue, args.b_size, b_mat_cpu);
|
||||||
return StatusCode::kSuccess;
|
return StatusCode::kSuccess;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
// Describes how to download the results of the computation (more importantly: which buffer)
|
// 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) {
|
static std::vector<T> DownloadResult(const Arguments<T> &args, Buffers<T> &buffers, Queue &queue) {
|
||||||
|
|
Loading…
Reference in a new issue