Repository navigation
Commit 7d739bc
committed
GPU: define CAMath::Abs for GPUdoubleCalcImpl
CAMath::Abs is a template that deduces its parameter rather than taking a float,
so a call on a GPUdoubleCalc intermediate selects the primary template, which is
declared and never defined. Four call sites in the track propagation do exactly
that. Compiling to an object hides it, so the Metal build only fails when the
kernels are linked; on the host the type is a double and the question does not
arise.
Every other CAMath entry point takes a float and is reached through the implicit
conversion, so only Abs needs the specialisation.1 parent bb585c3 commit 7d739bc
1 file changed
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
193 | 194 | | |
194 | 195 | | |
195 | 196 | | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
196 | 206 | | |
197 | 207 | | |
198 | 208 | | |
| |||
0 commit comments