2014-06-28 03:05:18 +08:00
|
|
|
#include "../cblas.h"
|
2013-07-11 19:39:27 +08:00
|
|
|
|
|
|
|
|
int main() {
|
2014-06-28 03:05:18 +08:00
|
|
|
int th_model = openblas_get_parallel();
|
2013-07-11 19:39:27 +08:00
|
|
|
switch(th_model) {
|
2014-06-28 03:05:18 +08:00
|
|
|
case OPENBLAS_SEQUENTIAL:
|
|
|
|
|
printf("OpenBLAS is compiled sequentially.\n");
|
|
|
|
|
break;
|
|
|
|
|
case OPENBLAS_THREAD:
|
|
|
|
|
printf("OpenBLAS is compiled using the normal threading model\n");
|
|
|
|
|
break;
|
|
|
|
|
case OPENBLAS_OPENMP:
|
|
|
|
|
printf("OpenBLAS is compiled using OpenMP\n");
|
|
|
|
|
break;
|
2013-07-11 19:39:27 +08:00
|
|
|
}
|
2014-06-28 03:05:18 +08:00
|
|
|
return 0;
|
2013-07-11 19:39:27 +08:00
|
|
|
}
|
|
|
|
|
|