AWS Lambda : OpenBLAS WARNING - could not determine the L2 cache size on this system, assuming 256k - While using Google Custom Search API

PythonPython 3.xAmazon Web-ServicesGoogle ApiAws Lambda

Python Problem Overview


I deployed the Google Custom Search API as AWS lambda function for my project. It uses the 3GB (full memory provided by lambda) and task got terminated.

It throws a warning :

"OpenBLAS WARNING - could not determine the L2 cache size on this system, assuming 256k"

I don't know why its consuming more memory?

Python Solutions


Solution 1 - Python

This warning is just a warning, and has nothing to do with your problems.

BLAS is a highly optimised library, aiming to get near-perfect performance on all hardware. AWS Lambdas are supposed to run in a more abstract environment than most, and the low-level details of what CPU it's running on are not available to your code. Therefore OpenBLAS just guesses.

The only impact it would have is slightly reduced performance of certain mathematical operations, if the guess were incorrect.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionKarthik SubramaniyamView Question on Stackoverflow
Solution 1 - PythonOrangeDogView Answer on Stackoverflow