Post not yet marked as solved
Project is based on python3.8 and 3.9, containing some C and C++ source
How can I do parallel computing on CPU and GPU of M1max
In deed, I buy Mac m1max for the strong GPU to do quantitative finance, for which the speed is extremely important. Unfortunately, cuda is not compatible with Mac.
Show me how to do it, thx.
Are Accelerate(for CPU) and Metal(for GPU) can speed up any source by building 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 such method? I need speed up numpy, pandas and even a open souce project, such as https://github.com/microsoft/qlib
3、just show me the code
4、when compiling C++, C source, a lot of errors were reported, which gcc and g++ to choose? the default gcc installed by brew is 4.2.1, which cannot work. and I even tried to download gcc from the offical website of ARM, still cannot work. give me a hint.
thx so much
urgent
Post not yet marked as solved
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
Post not yet marked as solved
Compatibilty of m1max have troubled me hundreds of hours, please help, I am doing some urgent projects.
1、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
2、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
3、to compile, do I also need to install g++? witch version
show me the code