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.

gemm64.cpp 528 B

123456789101112131415161718192021
  1. #include <iostream>
  2. #include "common.h"
  3. #include "cblas.h"
  4. int main ( int argc, char* argv[] ) {
  5. const long n = ((long)1 << 31) - 1;
  6. std::cout << n <<std::endl;
  7. float* A = new float[n];
  8. float* B = new float[n];
  9. float* C = new float[1];
  10. for(long i =0; i <n; i++){
  11. A[i] = 1;
  12. B[i] = 1;
  13. }
  14. cblas_sgemm(CblasRowMajor, CblasNoTrans, CblasNoTrans, 1, 1, n, 1.0, A, n, B, 1, 0.0, C, 1);
  15. std::cout << *C <<std::endl;
  16. delete[] A;
  17. delete[] B;
  18. delete[] C;
  19. return 0;
  20. }