Open CornyC opened 1 year ago
It should be possible to calculate the objective function in parallel using the OpenCL platform. Support for the CUDA platform is not available and has not been implemented.
Also, always set the platform_name of the objective function as follows:
paramol_settings.objective_function["parallel"] = True paramol_settings.objective_function["platform_name"] = "OpenCL"
Finally, be aware I am no longer working on this project and that unfortunately I don't have the time to continue developing it/fixing issues. Apologies for any inconvenience this may cause.
Ok thank you!
On Wed, 9 Nov 2022, 13:37 João Morado, @.***> wrote:
It should be possible to calculate the objective function in parallel using the OpenCL platform. Support for the CUDA platform is not available and has not been implemented.
Also, always set the platform_name of the objective function as follows:
paramol_settings.objective_function["parallel"] = True paramol_settings.objective_function["platform_name"] = "OpenCL"
Finally, be aware I am no longer working on this project and that unfortunately I don't have the time to continue developing it/fixing issues. Apologies for any inconvenience this may cause.
— Reply to this email directly, view it on GitHub https://github.com/JMorado/ParaMol/issues/81#issuecomment-1308688672, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEMDK47G35NVHNFHHWYHUFTWHOLHZANCNFSM6AAAAAARO4XYV4 . You are receiving this because you authored the thread.Message ID: @.***>
Hi I'm having some trouble running ParaMol in parallel mode: objective_function uses OpenCL as default, even if CUDA is given platform properties (like OpenCLPlatformIndex) cannot be passed via objective_function presumably leading to the error
--------------------------------------------------------------------------- RemoteTraceback Traceback (most recent call last) RemoteTraceback: """ Traceback (most recent call last): File "/home/ac127777/anaconda3/envs/mdanalysis-dev/lib/python3.8/multiprocessing/pool.py", line 125, in worker result = (True, func(*args, **kwds)) File "/home/ac127777/anaconda3/envs/mdanalysis-dev/lib/python3.8/multiprocessing/pool.py", line 51, in starmapstar return list(itertools.starmap(args[0], args[1])) File "/home/ac127777/anaconda3/envs/mdanalysis-dev/lib/python3.8/site-packages/ParaMol/Objective_function/gpu_objective_function.py", line 80, in f_callback_function context = Context(system, copy.deepcopy(integrator), platform) File "/home/ac127777/anaconda3/envs/mdanalysis-dev/lib/python3.8/site-packages/simtk/openmm/openmm.py", line 13232, in __init__ _openmm.Context_swiginit(self, _openmm.new_Context(*args)) simtk.openmm.OpenMMException: Specified DeviceIndex but not OpenCLPlatformIndex. When multiple platforms are available, a platform index is needed to specify a device. """
`The above exception was the direct cause of the following exception:OpenMMException Traceback (most recent call last)