Просмотр исходного кода

Check spinlock use consistency in debug mode.

Samuel Thibault лет назад: 13
Родитель
Сommit
b8fbe1ef89
2 измененных файлов с 2 добавлено и 5 удалено
  1. 1 0
      configure.ac
  2. 1 5
      src/common/starpu_spinlock.h

+ 1 - 0
configure.ac

@@ -697,6 +697,7 @@ AC_MSG_RESULT($enable_debug)
 
 if test x$enable_debug = xyes; then
 	CFLAGS="$CFLAGS -O0"
+	AC_DEFINE(STARPU_SPINLOCK_CHECK, [1], [check spinlock use])
 else
 	CFLAGS="$CFLAGS -O3"
 fi

+ 1 - 5
src/common/starpu_spinlock.h

@@ -1,6 +1,6 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
- * Copyright (C) 2010  Université de Bordeaux 1
+ * Copyright (C) 2010-2011  Université de Bordeaux 1
  * Copyright (C) 2010  Centre National de la Recherche Scientifique
  *
  * StarPU is free software; you can redistribute it and/or modify
@@ -23,10 +23,6 @@
 #include <common/utils.h>
 #include <common/config.h>
 
-//#ifndef STARPU_SPINLOCK_CHECK
-//#define STARPU_SPINLOCK_CHECK	1
-//#endif
-
 typedef struct starpu_spinlock_s {
 #ifdef STARPU_SPINLOCK_CHECK
 	pthread_mutexattr_t errcheck_attr;