starpu.mk 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. # StarPU --- Runtime system for heterogeneous multicore architectures.
  2. #
  3. # Copyright (C) 2017 CNRS
  4. # Copyright (C) 2017 Inria
  5. # Copyright (C) 2016-2017 Université de Bordeaux
  6. #
  7. # StarPU is free software; you can redistribute it and/or modify
  8. # it under the terms of the GNU Lesser General Public License as published by
  9. # the Free Software Foundation; either version 2.1 of the License, or (at
  10. # your option) any later version.
  11. #
  12. # StarPU is distributed in the hope that it will be useful, but
  13. # WITHOUT ANY WARRANTY; without even the implied warranty of
  14. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  15. #
  16. # See the GNU Lesser General Public License in COPYING.LGPL for more details.
  17. #
  18. if STARPU_USE_MPI_MASTER_SLAVE
  19. MPI_LAUNCHER = $(MPIEXEC) $(MPIEXEC_ARGS) -np 4
  20. MPI_RUN_ARGS = STARPU_WORKERS_NOBIND=1 STARPU_NCPU=4 STARPU_NMPIMSTHREADS=4
  21. endif
  22. V_nvcc_ = $(V_nvcc_$(AM_DEFAULT_VERBOSITY))
  23. V_nvcc_0 = @echo " NVCC " $@;
  24. V_nvcc_1 =
  25. V_nvcc = $(V_nvcc_$(V))
  26. V_icc_ = $(V_icc_$(AM_DEFAULT_VERBOSITY))
  27. V_icc_0 = @echo " ICC " $@;
  28. V_icc_1 =
  29. V_icc = $(V_icc_$(V))
  30. showcheck:
  31. -cat $(TEST_LOGS) /dev/null
  32. @! grep -q "ERROR: AddressSanitizer: " $(TEST_LOGS) /dev/null
  33. @! grep -q "WARNING: AddressSanitizer: " $(TEST_LOGS) /dev/null
  34. @! grep -q "ERROR: ThreadSanitizer: " $(TEST_LOGS) /dev/null
  35. @! grep -q "WARNING: ThreadSanitizer: " $(TEST_LOGS) /dev/null
  36. @! grep -q "ERROR: LeakSanitizer: " $(TEST_LOGS) /dev/null
  37. @! grep -q "WARNING: LeakSanitizer: " $(TEST_LOGS) /dev/null
  38. @! grep -q " runtime error: " $(TEST_LOGS) /dev/null
  39. RET=0 ; \
  40. for i in $(SUBDIRS) ; do \
  41. make -C $$i showcheck || RET=1 ; \
  42. done ; \
  43. exit $$RET