Nvcc compiler error - error: calling a __host__ function from a __global__ function is not allowed

Hi There,

I encountered a lot of nvcc (-std c++17) compiling error as below, any comments to help me out? thanks!

error: calling a host function(“nda::interval<(long)-9l, (long)-9l> ::extent const”) from a global function(“BilateralSliceKernel”) is not allowed

You cannot use function nda::interval::extend in a kernel if the function is not a device or host-device function.