Copying a struct containing pointers to CUDA device

Edit: CUDA 6 introduces Unified Memory, which makes this “deep copy” problem a lot easier. See this post for more details. Don’t forget that you can pass structures by value to kernels. This code works: // pass struct by value (may not be efficient for complex structures) __global__ void kernel2(StructA in) { in.arr[threadIdx.x] *= 2; … Read more

What is a “fat pointer”?

The term “fat pointer” is used to refer to references and raw pointers to dynamically sized types (DSTs) – slices or trait objects. A fat pointer contains a pointer plus some information that makes the DST “complete” (e.g. the length). Most commonly used types in Rust are not DSTs but have a fixed size known … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)