Message boards : Questions and problems : How to use GPU instead of CPU?
Message board moderation
Author | Message |
---|---|
New member Send message Joined: 15 Aug 25 Posts: 1 |
Hello. I am the owner of the repository https://github.com/nevstas/ludmila Can you help me please? I need advice. My script is using CPU for calculations. Is it possible to change the script so that the calculations are performed not on CPU but on GPU? I think it will be much faster on GPU than on CPU. I want to buy goolge colab pro, or just use GPU on my computer. I asked chatgpt how to change my script but without success. Python is not my main programming language, I am PHP developer. Thanks |
Send message Joined: 25 May 09 Posts: 1355 ![]() |
While using a GPU may be faster than using a CPU there are a lot of things to consider. GPUs are very good at highly repetitive "simple" calculations that can be done in parallel, but programming them is very different, and requires the use of the requisite tools and techniques. I don't know of any Python tools for GPUs (they may exist, it's just that I haven't looked for them), most GPU programming appears to use some form of C/C++ with extensions and libraries. Good luck. |
Copyright © 2025 University of California.
Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License,
Version 1.2 or any later version published by the Free Software Foundation.