nvcc
Simplest Possible Example to Show GPU Outperform CPU Using CUDA
I am looking for the most concise amount of code possible that can be coded both for a CPU (using g++) and a GPU (using nvcc) for which the GPU consistently outperforms the CPU. Any type of algorithm[详细]
2023-04-11 12:32 分类:问答Error compiling template function in CUDA using nvcc
I have the following CUDA code: enum METHOD_E { METH_0 = 0, METH_1 }; template <enum METHOD_E METH> 开发者_如何学JAVAinline __device__ int test_func<METH>()[详细]
2023-04-05 14:32 分类:问答Cuda with Boost
I am currently writing a CUDA application and want to use the boost::program_options library to get the required parameters and user input.[详细]
2023-04-05 00:20 分类:问答How to compile OpenCV code using a Cuda shared library compiled using nvcc?
For a test I have written a code of matrix multiplication in C(cuda) and compiled it using nvcc to create shared library using following command.[详细]
2023-03-23 17:38 分类:问答Static Assert for NVCC and Compiler Bug
Whats the best way to have a static assert for the NVCC compiler inside a struct which is used for compile time settings:[详细]
2023-03-18 03:14 分类:问答Pass preprocessing variable to NVCC for compiling CUDA?
When I compile my CUDA code with NVCC and I have already defined a preprocessing variable in the code, e.g. #define DEBUG_OUTPUT 0, is there a way to overwrite such a variable on the fly when compilin[详细]
2023-03-14 11:37 分类:问答Registers and shared memory depending on compiling compute capability?
Hey there, when I compile with nvcc -arch=sm_13 I get: ptxas info: Used 29 registers, 28+16 bytes smem, 7200 bytes cmem[0], 8 bytes cmem[1][详细]
2023-03-06 10:21 分类:问答Undefined references to local objects
I\'m having problems linking a project using nvcc. They occur with symbols defined inside the project. I have some function symbols defined in the cuda_bvh_constru.o file. This is the nm output for th[详细]
2023-03-06 01:52 分类:问答CUDA statically allocating data on device
I\'ve been trying to allocate a variable that can be accessed by each kernel function. My attempt is the code attached below, but it won\'t compile cause the dArray can\'t be viewed accessed by the ke[详细]
2023-03-04 06:48 分类:问答cuda with mingw - updated
We have been developing our code in linux, but would like to compile a windows executable. The old non-gpu version compiles just fine with mingw in windows, so I was hoping I\'d be able to do the same[详细]
2023-03-02 17:05 分类:问答