我试了两天在电脑上安装cilk。目前我正试图在Ubuntu16.04上安装它(由于Ubuntu18似乎有问题,我尝试安装旧的操作系统(。我正在遵循上的说明http://cilk.mit.edu/download/,但当我执行命令时:
$ cmake -DCMAKE_BUILD_TYPE=Release -DLLVM_TARGETS_TO_BUILD=host -DLLVM_BINUTILS_INCDIR=/usr/include ..
它不起作用,给出以下错误:
CMake Error at cmake/modules/LLVM-Config.cmake:256 (message):
Library 'NVPTX' is a direct reference to a target library for an omitted
target.
Call Stack (most recent call first):
tools/polly/lib/CMakeLists.txt:91 (llvm_map_components_to_libnames)
-- Configuring incomplete, errors occurred!
我该怎么办?
在Ubuntu上安装Cilk时出现问题。。。
Ubuntu 16.04:在执行sudo apt-get install tapirclang-5.0 libcilkrts5
时缺少libtapirllvm5.0
,因此我们可以使用g++
$ git clone https://github.com/OpenCilk/cilkrts.git
$ cd cilkrts/ && mkdir build && cd build/
$ CC=gcc-5 CXX=g++-5 cmake -DCMAKE_INSTALL_PREFIX=../install ..
$make
.
[100%] Built target cilkrts_static
Ubuntu 18.04:相同→$ CC=gcc-5 CXX=g++-5 cmake -DCMAKE_INSTALL_PREFIX=../install ..
→[100%] Built target cilkrts
。。。。即没有错误。