Please help me, really urgent, please. The compatibilty of m1max chip troubled me hundreds of hour.
1、Please show me how to speed up source downloaded from github, such as numpy 、pandas or any other source, by fully using the CPU and GPU chips. (python3.8 and 3.9)
can I do it just like this?
Step 1: download source from github
Step 2: create a file named "site.cfg"in this souce file, and add content: [accelerate] libraries=Metal, Acelerate, vecLib
Step 3: Terminal: NPY_LAPACK_Order=accelerate python3 setup.py build
Step 4: pip3 install . or python3 setup.py install ? (I am not sure which method to apply)
2、How is the compatibility of Accelate and Metal? Can work with most of the source? Any tips? such as https://github.com/microsoft/qlib
3、which gcc to install? show me the code when I do it, some error happens, gcc(version 4.2.1 installed by brew) cannot compile some source, such as "ecos". Moreover, I cannot compile many sources directly by python3 setup.py install (without accelerate) How to config the gcc? which version to use on m1max
4、sometimes I can compile source by brew. but extremely unconvenient, because I need to install packages on vitual environment (e.g. conda env)other than on base path. what should I do? can I install brew on vitual environment? or just use brew to build the source, then I install by pip on vitual env? or can I config the brew to install on only vitual environment? Just show me the code
5、to compile, do I also need to install g++? witch version, show me the code
6、show me how to speed up python program by GPU and parallel computing on Accelerate
No need to shout!