External calls are not supported - CUDA
Objective is to call a device function available in another file, when i compile the global kernel it shows the following error *External calls are not supported (found non-inlined call to _Z6GoldenSectionCUDA)* . Problematic Code (not the full code but where the problem arises), cat norm.h # ifndef NORM_H_ # define NORM_H_ # include<stdio.h> __device__ double invcdf(double prob, double mean, double stddev); #endif cat norm.cu # include <norm.h> __device__ double invcdf(double prob, double mean, double stddev) { return (mean + stddev*normcdfinv(prob)); } cat test.cu # include <norm.h> #