加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
CMakeLists.txt 787 Bytes
一键复制 编辑 原始数据 按行查看 历史
Yaojie Yu 提交于 2022-02-14 15:40 . 完成GPU上的编译和运行。
cmake_minimum_required(VERSION 3.12)
# set project name
project(xFR-Adv-2D)
# set target name
set(TARGET_NAME xFR-Adv)
# set c++ standard
set(CMAKE_CXX_STANDARD 14)
# set g++ flags
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -O0")
# include files
include_directories(${PROJECT_SOURCE_DIR}/include)
# set install dir
set(CMAKE_INSTALL_PREFIX ${PROJECT_SOURCE_DIR})
# set backend option
#option(Kokkos_ENABLE_OPENMP "OpenMP backend" ON)
# This assumes you have copied the source, sym-linked to source,
# or have kokkos available as a git submodule
add_subdirectory(3rdparty/kokkos)
# This assumes you have copied the source, sym-linked to source,
# or have kokkos-kernels available as a git submodule
add_subdirectory(3rdparty/kokkos-kernels)
# add src dir
add_subdirectory(src)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化