【发布时间】:2010-12-30 17:43:42
【问题描述】:
我正在尝试在配置过程中测试一些典型的 cuda 功能。如何在我的 configure.ac 中编写它?比如:
AC_TRY_COMPILE([],
[
__global__ static void test_cuda() {
const int tid = threadIdx.x;
const int bid = blockIdx.x;
__syncthreads();
}
],
[cuda_comp=ok],[cuda_comp=no])
但是在 AC_LANG 中没有定义 nvcc。我必须创建自己的 m4 宏吗?
【问题讨论】: