|
Last change
on this file since 63 was
60,
checked in by meunier, 9 years ago
|
- Intégration des modifications de Clément,
qui a intégré la version parallélisée de systemcass
faite par Manuel.
|
|
File size:
527 bytes
|
| Line | |
|---|
| 1 | |
|---|
| 2 | #ifdef _OPENMP |
|---|
| 3 | #include <omp.h> |
|---|
| 4 | #endif |
|---|
| 5 | |
|---|
| 6 | #define ASSERT(x) \ |
|---|
| 7 | { \ |
|---|
| 8 | if (!(x)) { \ |
|---|
| 9 | cerr << "assert failed line " << __LINE__ << ", file " << __FILE__ << ": #x\n"; \ |
|---|
| 10 | exit(1); \ |
|---|
| 11 | } \ |
|---|
| 12 | } |
|---|
| 13 | |
|---|
| 14 | #ifdef _OPENMP |
|---|
| 15 | #define threads_omp() \ |
|---|
| 16 | ({ \ |
|---|
| 17 | omp_set_dynamic(false);\ |
|---|
| 18 | omp_set_num_threads(1);\ |
|---|
| 19 | }) |
|---|
| 20 | #else |
|---|
| 21 | #define threads_omp() |
|---|
| 22 | #endif |
|---|
| 23 | |
|---|
Note: See
TracBrowser
for help on using the repository browser.