I used a docker container on M1 MacBook Pro with ubuntu 18.04 and ran a C program. In the main function I call ilaenv to check the block size for LAPACK routine DGETRF with size 1000*1000. The function returned 64 as a reasonable block size. But in the main function I also call another function written by myself and it involves a single ilaenv call with the same parameter, but when I printed it I found out that the function just returned block size = 1, which confuses me a lot.
↧