Check this thread, the discussion provides some details on blas and torch and some additional settings and flags you can look into. Maybe run the scripts I provided there so we can see if it’s indeed a blas-related issue? Also posting the compilation logs could help if you indeed see performance differences between the two installs.