编译和安装

操作步骤

  1. 使用PuTTY工具,以root用户登录服务器。
  2. 执行以下命令进入源码目录。

    cd /path/to/thrust/thrust

  3. 执行以下命令创建并进入编译目录。

    mkdir build
    cd build

  4. 执行以下命令进行编译安装。

    cmake .. -DCMAKE_INSTALL_PREFIX=/path/to/thrust
    make -j 64
    make -j install