memcpy
Dividing up CUDA cudaMemcpy into chunks
A co-worker and I were brainstorming on how to mitigate the memory transfer time between host and device and it came up that perhaps arranging things to one mega-transfer (i.e. one single call) might[详细]
2023-03-22 15:30 分类:问答atomic memcpy suggestion
While testing a program for scalability, I came across the situation where I have to make my memcpy operation as atomic operation . I have to copy 64bytes of data from one location to other .[详细]
2023-03-20 07:01 分类:问答SWIG: String not being fully copied or displayed?
I need to send a pointer to a character array to one of my functions. To produce this char*, I use this function in one of my c files such that is called like this[详细]
2023-03-18 20:57 分类:问答c++ generic to_stream() and from_stream()
I wonder if the following works (I guess not, otherwise everyone would\'ve used it, righ开发者_运维知识库t? :-)). I tried them on simply classes I wrote, but I wonder if it works for the general case.[详细]
2023-03-17 07:28 分类:问答glMapBuffer undeclared in OpenGL-ES 2.0
I am doing Opengl-es 2.0 in ununtu 10.10 through the use of kronos and pvrsdk .Now code #include <GLES2/gl2.h>[详细]
2023-03-16 21:40 分类:问答MexFile causing "Assertion detected" error - problem with memcpy in mexfiles?
This problem is unfortunately narrow, but I\'m at a loss. I have a custom mex file that takes two lists of uint32s that are each sorted and contain no common entries and returns a single sorted list[详细]
2023-03-16 05:58 分类:问答memcpy was not declared error in eclipse CDT C++
I am trying to do memcpy char *pdata = data pointer; int64_t deviceId; memcpy(&deviceId, pdata+1, 8);[详细]
2023-03-13 10:34 分类:问答atoi on a character array with lots of integers
I have a code in which the character array is populated by integers (converted to char arrays), and read by another function which reconverts it back to integers. I have used the following function to[详细]
2023-03-12 11:24 分类:问答Valgrind says "Source and destination overlap in memcpy" about two buffers but they seems to not overlap
LAST EDIT in the end of OP I tested with Valgrind a function used in a project and it says \"Source and destination overlap in memcpy\" and gives me also \"Invalid read\" and \"Invalid write\" errors[详细]
2023-03-12 10:31 分类:问答Is memcpy() safe when copy some content larger than dst?
Is it safe when the request_token.size() is larger than LEN? char dst[LEN]; mem开发者_JAVA百科cpy(dst, request_token.c_str(), request_token.size());[详细]
2023-03-11 20:57 分类:问答