Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
FORMUS3IC_LAS3
/
embb
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
fca2298d
authored
Mar 30, 2015
by
Christian Kern
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Only run opencl tests if opencl is installed. Otherwise skip those tests.
parent
b46f1e37
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
0 deletions
+17
-0
doc/examples/main.cc
+8
-0
mtapi_opencl_c/test/main.cc
+9
-0
No files found.
doc/examples/main.cc
View file @
fca2298d
...
@@ -26,6 +26,7 @@
...
@@ -26,6 +26,7 @@
#include <iostream>
#include <iostream>
#include <embb/base/c/thread.h>
#include <embb/base/c/thread.h>
#include "../../mtapi_opencl_c/src/embb_mtapi_opencl_runtimelinker.h"
void
RunMTAPI_C
();
void
RunMTAPI_C
();
void
RunMTAPI_C_Plugin
();
void
RunMTAPI_C_Plugin
();
...
@@ -67,7 +68,14 @@ int main() {
...
@@ -67,7 +68,14 @@ int main() {
std
::
cout
<<
"RunMTAPI_C_Network() ... done"
<<
std
::
endl
;
std
::
cout
<<
"RunMTAPI_C_Network() ... done"
<<
std
::
endl
;
std
::
cout
<<
"RunMTAPI_C_OpenCL() ..."
<<
std
::
endl
;
std
::
cout
<<
"RunMTAPI_C_OpenCL() ..."
<<
std
::
endl
;
if
(
embb_mtapi_opencl_link_at_runtime
()
!=
0
)
{
RunMTAPI_C_OpenCL
();
RunMTAPI_C_OpenCL
();
}
else
{
::
std
::
cout
<<
"! Skipping OpenCL tests, as OpenCL is not installed on your system."
<<
::
std
::
endl
;
}
std
::
cout
<<
"RunMTAPI_C_OpenCL() ... done"
<<
std
::
endl
;
std
::
cout
<<
"RunMTAPI_C_OpenCL() ... done"
<<
std
::
endl
;
std
::
cout
<<
"RunMTAPI_CPP() ..."
<<
std
::
endl
;
std
::
cout
<<
"RunMTAPI_CPP() ..."
<<
std
::
endl
;
...
...
mtapi_opencl_c/test/main.cc
View file @
fca2298d
...
@@ -29,8 +29,17 @@
...
@@ -29,8 +29,17 @@
#include <embb_mtapi_opencl_test_linker.h>
#include <embb_mtapi_opencl_test_linker.h>
#include <embb_mtapi_opencl_test_task.h>
#include <embb_mtapi_opencl_test_task.h>
#include <embb_mtapi_opencl_runtimelinker.h>
PT_MAIN
(
"MTAPI OPENCL"
)
{
PT_MAIN
(
"MTAPI OPENCL"
)
{
if
(
embb_mtapi_opencl_link_at_runtime
()
!=
0
)
{
PT_RUN
(
LinkerTest
);
PT_RUN
(
LinkerTest
);
PT_RUN
(
TaskTest
);
PT_RUN
(
TaskTest
);
}
else
{
::
std
::
cout
<<
"! Skipping OpenCL tests, as OpenCL is not installed on your system."
<<
::
std
::
endl
;
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment