编译不能通过,error C3861: “cudaMallocHost”: 找不到标识符
#ifndef _CUDA_TEMPLATE_TEST_
#define _CUDA_TEMPLATE_TEST_
class CMatrixTest{
float *elem;
public:
void Malloc(unsigned int entityNum)
{
cudaMallocHost((void**)&elem,entityNum*sizeof(float));
return;
}
};
#endif