GroundhogLighting / Groundhog

SketchUp Extension for performing Radiance lighting analysis
http://www.groundhoglighting.com
13 stars 4 forks source link

Use Accelerad #40

Open agonzalezesteve opened 6 years ago

agonzalezesteve commented 6 years ago

Accelerad is suite of programs that improves ray tracing algorithms using an engine for GPU (now it's in a beta version).

https://nljones.github.io/Accelerad/index.html

I propose using this engine to accelerate simulations.

germolinal commented 6 years ago

Hello Adria,

I am happy to do that. However, I would argue that this needs to be done properly because not all computers can run Accelerad (only NVidia ones), am I right?

On the other hand, even if I believe Accelerad's license is OK with this use, we should check that.

So, two options:

  1. Create an option (i.e. configuration) that allows "enabling Accelerad"
  2. Create another version of Radiance that relies on Accelerad

I like option number 1 better. Unfortunately, I cannot help you test it, because I do not have NVidia graphics card.

It should be easy to implement Accelerad here... it is a matter of replacing the corresponding programs with the Accelerad ones. However, in order to make this optional, we need to somehow allow "choosing" a certain program (e.g.rtrace = accelerad_enabled ? "rtrace" : "acc_rtrace").

If you need any help, let's keep this thread going

mihado commented 5 years ago

With this https://rocm.github.io you can hypothetically run CUDA code on AMD GPU as well if the platform is modern enough (CPU: Haswell or Ryzen, GPU: from R9 3XX GCN 2.0). I think they are back porting this to support more somewhat older platform as well.

germolinal commented 5 years ago

That looks extremely cool! Unfortunately, right now I do not have time to work on that... but I will definitely check it out

mihado commented 5 years ago

I might work on this in December/January as I'm designing my house and I have an nvidia card, hopefully it won't be too hard. Accelerad uses nvidia OptiX extension so it might not be compatible with ROCm (yet) though.

germolinal commented 5 years ago

Please do it within the Emp-core https://github.com/GroundhogLighting/emp_core/! The plan is to migrate there....Groundhog 1.0b is using Emp as the calculation engine

El mié., 7 nov. 2018 a las 10:16, Minh Ha (notifications@github.com) escribió:

I might work on this in December/January as I'm designing my house and I have an nvidia card, hopefully it won't be too hard. Accelerad uses nvidia OptiX extension so it might not be compatible with ROCm (yet) though.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/GroundhogLighting/Groundhog/issues/40#issuecomment-436411311, or mute the thread https://github.com/notifications/unsubscribe-auth/AFVrhquxYhNnaVXpfzBd4f6A3eYXe2dEks5usfwagaJpZM4VCLLY .

-- Germán Molina

germolinal commented 5 years ago

And thanks! It would be really cool if you could do it.

El mié., 7 nov. 2018 a las 10:27, Germán Molina Larrain (< germolinal@gmail.com>) escribió:

Please do it within the Emp-core https://github.com/GroundhogLighting/emp_core/! The plan is to migrate there....Groundhog 1.0b is using Emp as the calculation engine

El mié., 7 nov. 2018 a las 10:16, Minh Ha (notifications@github.com) escribió:

I might work on this in December/January as I'm designing my house and I have an nvidia card, hopefully it won't be too hard. Accelerad uses nvidia OptiX extension so it might not be compatible with ROCm (yet) though.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/GroundhogLighting/Groundhog/issues/40#issuecomment-436411311, or mute the thread https://github.com/notifications/unsubscribe-auth/AFVrhquxYhNnaVXpfzBd4f6A3eYXe2dEks5usfwagaJpZM4VCLLY .

-- Germán Molina

-- Germán Molina