не может использовать printf в функции ядра cuda

Кажется, чтоprintf Безразлично»работать внутри ядра кода cuda

#include "Common.h"
#include
#include 

__device__ __global__ void Kernel(float *a_d , float *b_d ,int size)
{
    int idx = threadIdx.x ;
    int idy = threadIdx.y ;
    //Allocating memory in the share memory of the device
    __shared__ float temp[16][16];

    //Copying the data to the shared memory
    temp[idy][idx] = a_d[(idy * (size+1)) + idx] ;


    printf("idx=%d, idy=%d, size=%d\n", idx, idy, size);


    for(int i =1 ; i

Ответы на вопрос(2)

Ваш ответ на вопрос