¡@

Home 

c++ Programming Glossary: cudamemcpytosymbol

cudaMemcpyToSymbol using or not using string

http://stackoverflow.com/questions/15435880/cudamemcpytosymbol-using-or-not-using-string

using or not using string I was trying to copy a structure.. int a b c __constant__ Foo cData int main Foo hData 1 2 3 cudaMemcpyToSymbol cData hData sizeof Foo ... And this worked fine in my kernel.. use a const char as symbol name and things stopped working cudaMemcpyToSymbol cData hData sizeof Foo prints 0 0 0 I thought both versions..

How to use CUDA constant memory in a programmer pleasant way?

http://stackoverflow.com/questions/4008031/how-to-use-cuda-constant-memory-in-a-programmer-pleasant-way

__constant__ CaseParams deviceCaseParams I use the call cudaMemcpyToSymbol to transfer these params from the host to the device void copyMetaData.. host to the device void copyMetaData CaseParams caseParams cudaMemcpyToSymbol deviceCaseParams caseParams sizeof CaseParams which works. Anyways.. deviceCaseParams and the copy operation of it the call to cudaMemcpyToSymbol must be in the same file . At the moment I have these two in..