I have header file with this constants
__constant__ er_t SERIES_PREC;
__constant__ er_t ONE;
__constant__ er_t HALF;
I can’t include this header file in any *.cu files - error linkin.
How can i use constant memory in this situation?
I have header file with this constants
__constant__ er_t SERIES_PREC;
__constant__ er_t ONE;
__constant__ er_t HALF;
I can’t include this header file in any *.cu files - error linkin.
How can i use constant memory in this situation?
For assistance with debugging, please post buildable code, i.e. a minimal, complete program that reproduces the problem you encountered. Note that constant implies static storage as pointed out by the CUDA Programming Guide:
E.2.3.1. Device Memory Qualifiers […] shared and constant variables have implied static storage.
Code do not needed here, i just include in any files const.cuh witch have this constants and have error:
multiple defenition SERIES_PREC for example