You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For example, if I have an int* like an int array
How can I cast that int array into a FloatC/FloatD, which is a cuda_array in enoki efficiently? I don't think it is a good idea to scatter_add each element in that int array to enoki cuda_array.
Thanks
The text was updated successfully, but these errors were encountered:
using IntC = enoki::CUDAArray<int>;
using FloatC = enoki::CUDAArray<float>;
size_t size = ...; // Size of my arrayint* data = ...; // Points to an array of len == size
IntC data_gpu = IntC::copy(data, size);
// Then cast it to Float values
FloatC data_gpu_float = FloatC(data_gpu);
For example, if I have an int* like an int array
How can I cast that int array into a FloatC/FloatD, which is a cuda_array in enoki efficiently? I don't think it is a good idea to scatter_add each element in that int array to enoki cuda_array.
Thanks
The text was updated successfully, but these errors were encountered: