I would like to know if there is a way to solve an Pyomo Concrete Model over a GPU with using the NVIDIA Cuda.
I checked out https://developer.nvidia.com/how-to-cuda-python, and saw a video about it. And It turns out if your input parameters are recognizable by numpy, such as; np.float32, np.float64, etc... it is possible to compile/solve over a GPU,
We are using a function to create all model and solve it with:
optim = SolverFactory('glpk')
optim = setup_solver(optim, logfile=log_filename)
result = optim.solve(prob, tee=True)
In this case our input to solve function would be prob(a pyomo concrete model). Is there a way to solve it over a GPU instead of a CPU?
Thank You!
No you can't.
In fairness one could write a book on how misguided this idea is, but let's make it simple and just point out some basic stuff (and ignore a lot of other details):