Trigger ocl_nbnxm_kernels target with clang-tidy
authorSzilárd Páll <pall.szilard@gmail.com>
Mon, 8 Oct 2018 15:50:05 +0000 (17:50 +0200)
committerPaul Bauer <paul.bauer.q@gmail.com>
Sun, 17 Nov 2019 16:16:35 +0000 (17:16 +0100)
Target only compiles object files for compiler warnings checks.
Also renamed target.

Refs #2661

Change-Id: Iffe5a2fa7d34d6bc4ff2081c3210191141ddcaf7

admin/builds/gromacs.py
src/gromacs/nbnxm/opencl/CMakeLists.txt

index 49007c5a63f125a098c719b7e73bf4b1b005d2e2..e429c623bc650b256c17992060950b8a5cd426dc 100644 (file)
@@ -251,6 +251,10 @@ def do_build(context):
         context.build_target(target='install')
         # TODO: Consider what could be tested about the installed binaries.
 
+        # run OpenCL offline compile tests on clang tidy builds
+        if (context.opts.tidy and context.opts.opencl):
+            context.build_target(target='ocl_nbnxm_kernels')
+
         if not context.opts.mdrun_only:
             context.env.prepend_path_env(os.path.join(context.workspace.build_dir, 'bin'))
             context.chdir(regressiontests_path)
index d9e5b32e42a04192526ae2e5025e9f3852e59e31..2263a7874528d6552f4089b4431f174f07bce19a 100644 (file)
@@ -84,4 +84,4 @@ foreach(ELEC_DEF IN LISTS ELEC_DEFS)
         endforeach()
     endforeach()
 endforeach()
-add_custom_target(ocl_kernel DEPENDS ${NBNXM_OCL_KERNELS})
+add_custom_target(ocl_nbnxm_kernels DEPENDS ${NBNXM_OCL_KERNELS})