__saturatef is undefined in cuh file. These are my imports and define
#ifndef _RECURSIVEGAUSSIAN_KERNEL_CU_ #define _RECURSIVEGAUSSIAN_KERNEL_CU_ #include <stdlib.h> #include <stdio.h> #include <string.h> #include <cuda_runtime.h> #include "device_launch_parameters.h" #include <helper_cuda.h> #include <helper_math.h> #define BLOCK_DIM 16 #define CLAMP_TO_EDGE 1
If you are on windows, and you are making this observation based on intellisense, you should probably just ignore it.
Note that __saturatef() is only defined in CUDA device code. So it should only be used in a function that is marked with
If none of that helps, you should provide a complete example of your usage, as well as the actual compiler output when the error is observed.