|
SkePU 0.7
|
00001 00005 #ifndef DEBUG_H 00006 #define DEBUG_H 00007 00008 #ifndef SKEPU_DEBUG 00009 #define SKEPU_DEBUG 0 00010 #endif 00011 00012 //Currently StarPU does not support multiple threads inside OpenMP, even if you explicitly set it. 00013 #ifndef STARPU_OMP_THREADS 00014 #define STARPU_OMP_THREADS 1 00015 #endif 00016 00017 #if SKEPU_DEBUG > 0 00018 #include <iostream> 00019 #endif 00020 00021 #if SKEPU_DEBUG > 0 00022 #define DEBUG_TEXT_LEVEL1(text) std::cerr<<text; // uses it to output starpu codelet execution as well 00023 #else 00024 #define DEBUG_TEXT_LEVEL1(text) 00025 #endif 00026 00027 #if SKEPU_DEBUG > 1 00028 #define DEBUG_TEXT_LEVEL2(text) std::cerr<<text; 00029 #else 00030 #define DEBUG_TEXT_LEVEL2(text) 00031 #endif 00032 00033 #if SKEPU_DEBUG > 2 00034 #define DEBUG_TEXT_LEVEL3(text) std::cerr<<text; 00035 #else 00036 #define DEBUG_TEXT_LEVEL3(text) 00037 #endif 00038 00039 00040 #endif 00041
1.7.4