I am using CUDA 5.0 and I have modules which are compiled separately. I would like to access the same value in the constant memory from all modules. The problem is the following, when I define the symbol in each module the linker claims that the symbol has been redefined. Is there a workaround or a solution for this problem? Thank you for helping.
1
There are 1 best solutions below
Related Questions in CUDA
- Calculating Inter Annotator Agreement with brat annotated files
- How to convert txt.knowtator.xml file to .ann?
- Unable to annotate multiple lines in Brat
- How can I use NER Model from Simple Transformers with phrases instead of words, and startchar_endchar (mapping to text) instead of sentence_id?
- Dynamic annotation configuration settings in BRAT
- Create per user workspace in nlplab Brat annotation tool
- How can I do squence labeling and entities relationships labeling at the same time
- How to read multiple ann files (from brat annotation) within a folder into one pandas dataframe?
- Which Cygwin packages does one need to install to run BRAT?
- Create HTML visualization from Brat format
Related Questions in GPU-CONSTANT-MEMORY
- Calculating Inter Annotator Agreement with brat annotated files
- How to convert txt.knowtator.xml file to .ann?
- Unable to annotate multiple lines in Brat
- How can I use NER Model from Simple Transformers with phrases instead of words, and startchar_endchar (mapping to text) instead of sentence_id?
- Dynamic annotation configuration settings in BRAT
- Create per user workspace in nlplab Brat annotation tool
- How can I do squence labeling and entities relationships labeling at the same time
- How to read multiple ann files (from brat annotation) within a folder into one pandas dataframe?
- Which Cygwin packages does one need to install to run BRAT?
- Create HTML visualization from Brat format
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
In CUDA separate compilation mode, there is a true linker, and every symbol which is linked into the final device binary payload much be uniquely defined. This means __constant__ memory symbols must be only be defined in one place in all the code which is linked together.
The solution is probably to declare the symbol as
extern
at every translation unit scope except one, which contains the definition of the symbol. Note that this is the only case where it is valid to use extern with __constant__ symbols, otherwise they are implicitly static. There is a general discussion of the separate compilation model which describes this scenario buried in the documentation (both the programming guide and nvcc manual IIRC).