Closed realWDC closed 4 years ago
It should be possible to do this with some minor tweaks to the codebase, but it will not be efficient (for the reasons that are described in the documentation section about dynamic CPU arrays). Longer term, I plan to have a JIT compiler for CPU dynamic arrays, at which point it would start to make sense to offer proper support for DiffArray<FloatX>
.
Thank you for the kind reply and future plans.
I am trying to auto-diff using
DiffArray<FloatX>
defined below, instead of the usualDiffArray<CudaArray<float>>
:Compiled with Clang++-9 on Ubuntu 18.04, linked with
libenoki-autodiff.so
,libenoki-cuda.so
andcuda.so
(the last two may not need; but just adding FYI). Which gives:If instead
using FloatD = DiffArray<Float>;
, then it works. How to fix this link error forDiffArray<FloatX>
defined above?