Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HIP for Windows OS #6

Open
muziqaz opened this issue Mar 29, 2023 · 2 comments
Open

HIP for Windows OS #6

muziqaz opened this issue Mar 29, 2023 · 2 comments

Comments

@muziqaz
Copy link

muziqaz commented Mar 29, 2023

Hi,

any chance for similar thing on Windows?

Thanks
Regards

@philipturner
Copy link

philipturner commented Mar 15, 2024

I tried to compile the OpenMM HIP plugin on Windows:

  1. Set up the repo with CMake-GUI
  2. make doesn't exist on Windows, so instead compiled through Visual Studio GUI
  3. Copied the entire include directory from OpenMM into the OpenMM-HIP source tree, bypassing a header search path error
  4. Removed the #error Windows not supported
  5. Linked hipRTC at runtime to bypass a linker error: https://gist.github.com/philipturner/87c3584f91995081da88a430e651a1d7#file-hipcompilerkernels-cpp-L124-L473
  6. Got the entire Visual Studio project to compile without errors, and produce a .dll
  7. Executed the test files, which all exited with error code 0x000000135
  8. Loaded the HIP plugin from mm.Platform.loadPluginsFromDirectory, but it always produced the exception:
openmm.OpenMMException: Error loading library C:/Users/phili/miniforge3/Library/lib/plugins/OpenMMHIP.dll: 126

I have an AMD 7900 XTX and am using it for simulations. HIP should be faster than OpenCL. I'm unable to use Linux because the computer kept breaking down with Ubuntu, so I gave up and went with Windows 10.

@ex-rzr any suggestions? Should I try messing with WSL? Or just fork and compile the OpenMM OpenCL backend, with cl_khr_subgroups in the kernel for finding interacting blocks.

@ex-rzr
Copy link
Contributor

ex-rzr commented Mar 16, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants