vcg-uvic / viper

Open-source code for VIPER -- Volume Invariant Position-based Elastic Rods
Apache License 2.0
909 stars 105 forks source link

OpenCL version #4

Open frankiezafe opened 4 years ago

frankiezafe commented 4 years ago

hello,

are you planning to make an OpenCL version of your code? it would be great to ensure crossplatform and a broader usage of your (terrific) library if you're searching devs, lemme know!

all the best

drebain commented 4 years ago

We're not actively developing this codebase, so we don't have plans to add this. I think that unless there is some way to make thrust, or some drop-in replacement work with an OpenCL backend (some discussion on that here), it would likely require a lot of the simulation code to be rewritten.

I'm happy to answer questions about how the code works if someone is interested in doing this.

ahmidou commented 4 years ago

what about this? https://github.com/ROCmSoftwarePlatform/rocThrust

drebain commented 4 years ago

That seems like it could work. It will depend on the HIP stuff playing nicely with Eigen, but if it does I don't recall any other NVIDIA-specific things besides thrust that would cause problems.

If someone with an AMD gpu can confirm that it builds and runs, I could probably add an option for it to the build system.