You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

get_threading_model.c 403 B

123456789101112131415161718
  1. #include "../cblas.h"
  2. int main() {
  3. int th_model = openblas_get_parallel();
  4. switch(th_model) {
  5. case OPENBLAS_SEQUENTIAL:
  6. printf("OpenBLAS is compiled sequentially.\n");
  7. break;
  8. case OPENBLAS_THREAD:
  9. printf("OpenBLAS is compiled using the normal threading model\n");
  10. break;
  11. case OPENBLAS_OPENMP:
  12. printf("OpenBLAS is compiled using OpenMP\n");
  13. break;
  14. }
  15. return 0;
  16. }