adamantine-sim / adamantine

Software to simulate heat transfer for additive manufacturing
https://adamantine-sim.github.io/adamantine/
Other
32 stars 9 forks source link

Make polynomial_order and table_size constexpr #207

Closed Rombur closed 1 year ago

Rombur commented 1 year ago

With this PR, the compiler removes the call to pow. Now the execution time is dominated by adding material and refining the mesh.

stvdwtt commented 1 year ago

Looks good, just waiting for the CUDA CI to finish before I merge it.

stvdwtt commented 1 year ago

CI

It looks like the function "MaterialProperties::polynomial_order" that this PR removes is called in ThermalOperatorDevice.cu.

Rombur commented 1 year ago

It should be fixed now. Let's see CI