|
@@ -24,17 +24,25 @@
|
|
|
* Encapsulation of the starpu_pthread_create_* functions.
|
|
|
*/
|
|
|
|
|
|
-#define _STARPU_PTHREAD_CREATE_ON(name, thread, attr, routine, arg, where) do { \
|
|
|
- int p_ret = starpu_pthread_create((thread), (attr), (routine), (arg)); \
|
|
|
- if (STARPU_UNLIKELY(p_ret != 0)) { \
|
|
|
- fprintf(stderr, \
|
|
|
- "%s:%d starpu_pthread_create: %s\n", \
|
|
|
- __FILE__, __LINE__, strerror(p_ret)); \
|
|
|
- } \
|
|
|
+#define _STARPU_PTHREAD_CREATE_ON(name, thread, attr, routine, arg, where) do { \
|
|
|
+ int p_ret = starpu_pthread_create_on((name), (thread), (attr), (routine), (arg), (where)); \
|
|
|
+ if (STARPU_UNLIKELY(p_ret != 0)) { \
|
|
|
+ fprintf(stderr, \
|
|
|
+ "%s:%d starpu_pthread_create: %s\n", \
|
|
|
+ __FILE__, __LINE__, strerror(p_ret)); \
|
|
|
+ STARPU_ABORT(); \
|
|
|
+ } \
|
|
|
} while (0)
|
|
|
|
|
|
-#define _STARPU_PTHREAD_CREATE(name, thread, attr, routine, arg) \
|
|
|
- _STARPU_PTHREAD_CREATE_ON(name, thread, attr, routine, arg, 0)
|
|
|
+#define _STARPU_PTHREAD_CREATE(name, thread, attr, routine, arg) do { \
|
|
|
+ int p_ret = starpu_pthread_create((name), (thread), (attr), (routine), (arg)); \
|
|
|
+ if (STARPU_UNLIKELY(p_ret != 0)) { \
|
|
|
+ fprintf(stderr, \
|
|
|
+ "%s:%d starpu_pthread_create: %s\n", \
|
|
|
+ __FILE__, __LINE__, strerror(p_ret)); \
|
|
|
+ STARPU_ABORT(); \
|
|
|
+ } \
|
|
|
+} while (0)
|
|
|
|
|
|
/*
|
|
|
* Encapsulation of the starpu_pthread_mutex_* functions.
|