From 93b72e27c0a7407c137546695c7151105808a7a1 Mon Sep 17 00:00:00 2001 From: Tal Regev Date: Tue, 9 Mar 2021 20:00:08 +0200 Subject: [PATCH] Add openclapp to ci --- configure.ac | 4 ++++ samples/Makefile.am | 9 ++++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index 9d76bd9c9e..a121650902 100644 --- a/configure.ac +++ b/configure.ac @@ -220,6 +220,9 @@ if test x$enable_apps = xyes ; then AX_CHECK_CL if test "X$no_cl" = "Xyes"; then AC_MSG_WARN([OpenCL is missing, OpenClApp example is disable]) + enable_openclapp=no + else + enable_openclapp=yes fi configured_to_build="${configured_to_build} apps" fi @@ -1073,6 +1076,7 @@ AM_CONDITIONAL(ENABLE_MANAGER, [ test "x${ac_cv_have_wxwidgets}" = xyes -a "${en AM_CONDITIONAL(ENABLE_LIBRARIES, [test "${enable_libraries}" = yes]) AM_CONDITIONAL(ENABLE_BOINCZIP, [test "${enable_boinczip}" = yes]) AM_CONDITIONAL(ENABLE_APPS, [test "${enable_apps}" = yes]) +AM_CONDITIONAL(ENABLE_OPENCLAPP, [test "${enable_openclapp}" = yes]) AM_CONDITIONAL(ENABLE_UNIT_TESTS, [test "${enable_unit_tests}" = yes]) AM_CONDITIONAL(ENABLE_BOINCCRYPT, [test "x${enable_server}" = xyes || test "x${enable_client}" = xyes ]) AM_CONDITIONAL(INSTALL_HEADERS, [test "${enable_install_headers}" = yes]) diff --git a/samples/Makefile.am b/samples/Makefile.am index 6e32f400fb..e1a8a40c83 100644 --- a/samples/Makefile.am +++ b/samples/Makefile.am @@ -3,9 +3,12 @@ include $(top_srcdir)/Makefile.incl ## list the apps that should be build -SUBDIRS = condor example_app multi_thread sleeper vboxmonitor vboxwrapper worker wrapper ## NOTE: nvcuda and wrappture need external libraries -if CL_CFLAGS - SUBDIRS = $(SUBDIRS) openclapp +SUBDIRS = condor example_app multi_thread sleeper vboxmonitor vboxwrapper worker wrapper + +## build openclapp if you have opencl on your device +if ENABLE_OPENCLAPP +SUBDIRS += openclapp endif + maintainer-clean: