37 #ifndef PCL_DEVICE_FUNCATTRIB_HPP_
38 #define PCL_DEVICE_FUNCATTRIB_HPP_
50 cudaFuncAttributes attrs;
51 cudaFuncGetAttributes(&attrs, func);
53 printf(
"=== Function stats ===\n");
55 printf(
"sharedSizeBytes = %d\n", (
int)attrs.sharedSizeBytes);
56 printf(
"constSizeBytes = %d\n", (
int)attrs.constSizeBytes);
57 printf(
"localSizeBytes = %d\n", (
int)attrs.localSizeBytes);
58 printf(
"maxThreadsPerBlock = %d\n", attrs.maxThreadsPerBlock);
59 printf(
"numRegs = %d\n", attrs.numRegs);
60 printf(
"ptxVersion = %d\n", attrs.ptxVersion);
61 printf(
"binaryVersion = %d\n", attrs.binaryVersion);
void printFuncAttrib(Func &func)