diff options
author | Anthony Barbier <anthony.barbier@arm.com> | 2018-08-22 13:44:36 +0100 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2018-11-02 16:54:54 +0000 |
commit | 890ad1be4eff1a805fe07667f4044b1d38a07b39 (patch) | |
tree | 98d2e9e4ef76d1e015d867dd6945bee3cb7ba5f0 /tests/main.cpp | |
parent | aaba4c626bcc6365e0108130633ce43fafe9da45 (diff) | |
download | ComputeLibrary-890ad1be4eff1a805fe07667f4044b1d38a07b39.tar.gz |
COMPMID-1246: Fix bug in handling backends that can't be loaded in the Graph API
Change-Id: Iefd175af2f472179d86df5358a1527a79c5666ed
Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/145182
Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com>
Tested-by: Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'tests/main.cpp')
-rw-r--r-- | tests/main.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/main.cpp b/tests/main.cpp index aaae99157a..7616dbe225 100644 --- a/tests/main.cpp +++ b/tests/main.cpp @@ -76,7 +76,10 @@ int main(int argc, char **argv) { #ifdef ARM_COMPUTE_CL CLTuner cl_tuner(false); - CLScheduler::get().default_init(&cl_tuner); + if(opencl_is_available()) + { + CLScheduler::get().default_init(&cl_tuner); + } #endif /* ARM_COMPUTE_CL */ #ifdef ARM_COMPUTE_GC |