vim CMakeLists.txt cmake_minimum_required(VERSION 2.6) project(cudatest) find_package(CUDA) if( NOT CUDA_FOUND ) message(STATUS "CUDA Not Found. Project will not be build.") endif( CUDA_FOUND ) cuda_add_executable(${PROJECT_NAME} gpu.cu) 保存 cmake . cmake --build . ./gputest版...