opencilk / cilkrts Goto Github PK
View Code? Open in Web Editor NEWA copy of the Intel Cilk Plus runtime system with modifications to work with OpenCilk and its associated tools.
A copy of the Intel Cilk Plus runtime system with modifications to work with OpenCilk and its associated tools.
I have download and built OpenCilk/cilkrts from source. I have exported ~/cilk/cilkrts/build/install/lib
to LD_LIBRARY_PATH
but I still get /usr/bin/ld: cannot find -lcilkrts
when compiling one of you applications with the Tapir-LLVM compiler.
What am I missing here?
Hi! I've hit problems trying to build cilkrts on Arch Linux, using Tapir-LLVM as a Cilk compiler. Linking fails with the following message:
/home/guatto/src/Tapir-Meta/tapir/build/bin/clang++` -fPIC -DIN_CILK_RUNTIME=1 -fPIC -Wall -DHAVE_ALLOCA_H -DHAVE_ATTRIBUTE_VISIBILITY -DHAVE_PTHREAD_AFFINITY_NP -DDONT_USE_CPU_ALLOC_SIZE -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -D__need_wchar_t -D__need_size_t -std=c++98 -O3 -DNDEBUG -Wl,--version-script,/home/guatto/pro/cilkrts/runtime/gnu-symbols.ver -Wl,-z,noexecstack -Wl,-z,now -ldl -Wl,-z,relro --rtlib=compiler-rt -shared -Wl,-soname,libcilkrts.so.5 -o libcilkrts.so.5 CMakeFiles/cilkrts.dir/runtime/bug.cpp.o CMakeFiles/cilkrts.dir/runtime/cilk-abi.c.o CMakeFiles/cilkrts.dir/runtime/cilk-abi-cilk-for.cpp.o CMakeFiles/cilkrts.dir/runtime/cilk-abi-vla-internal.c.o CMakeFiles/cilkrts.dir/runtime/cilk_api.c.o CMakeFiles/cilkrts.dir/runtime/cilk_fiber.cpp.o CMakeFiles/cilkrts.dir/runtime/cilk_malloc.c.o CMakeFiles/cilkrts.dir/runtime/c_reducers.c.o CMakeFiles/cilkrts.dir/runtime/frame_malloc.c.o CMakeFiles/cilkrts.dir/runtime/full_frame.c.o CMakeFiles/cilkrts.dir/runtime/global_state.cpp.o CMakeFiles/cilkrts.dir/runtime/jmpbuf.c.o CMakeFiles/cilkrts.dir/runtime/local_state.c.o CMakeFiles/cilkrts.dir/runtime/metacall_impl.c.o CMakeFiles/cilkrts.dir/runtime/pedigrees.c.o CMakeFiles/cilkrts.dir/runtime/record-replay.cpp.o CMakeFiles/cilkrts.dir/runtime/reducer_impl.cpp.o CMakeFiles/cilkrts.dir/runtime/scheduler.c.o CMakeFiles/cilkrts.dir/runtime/signal_node.c.o CMakeFiles/cilkrts.dir/runtime/spin_mutex.c.o CMakeFiles/cilkrts.dir/runtime/stats.c.o CMakeFiles/cilkrts.dir/runtime/worker_mutex.c.o CMakeFiles/cilkrts.dir/runtime/config/x86/cilk-abi-vla.c.o CMakeFiles/cilkrts.dir/runtime/cilk_fiber-unix.cpp.o CMakeFiles/cilkrts.dir/runtime/except-gcc.cpp.o CMakeFiles/cilkrts.dir/runtime/os_mutex-unix.c.o CMakeFiles/cilkrts.dir/runtime/os-unix.c.o CMakeFiles/cilkrts.dir/runtime/sysdep-unix.c.o CMakeFiles/cilkrts.dir/runtime/config/x86/os-unix-sysdep.c.o CMakeFiles/cilkrts.dir/runtime/sslib/ignore_handler_s.c.o CMakeFiles/cilkrts.dir/runtime/sslib/safe_str_constraint.c.o CMakeFiles/cilkrts.dir/runtime/sslib/snprintf_support.c.o CMakeFiles/cilkrts.dir/runtime/sslib/strcpy_s.c.o CMakeFiles/cilkrts.dir/runtime/sslib/strncpy_s.c.o CMakeFiles/cilkrts.dir/runtime/sslib/strnlen_s.c.o -lpthread /usr/bin/ld: CMakeFiles/cilkrts.dir/runtime/cilk-abi.c.o: relocation R_X86_64_PC32 against protected symbol `__cilkrts_get_tls_worker' can not be used when making a shared object /usr/bin/ld: final link failed: bad value
I don't really understand what's going on, but the problem seems to be related to protected symbols. Not making the symbols protected seems to fix the issue, and can be achieved by patching CMakeLists.txt.
Hi there! Unsure if this is the right place to file this, but reducer_vector.h is missing from libcilkrts5 on Ubuntu Xenial. On the latest xenial version of the lib (5.4.0-6ubuntu1~16.04.11), all but vector reducer headers are available:
https://packages.ubuntu.com/xenial-updates/amd64/libgcc-5-dev/filelist
Perhaps the cilk install instructions at http://cilk.mit.edu/ could be updated to reflect that reducer_vector.h is missing on the latest package for some platforms? And maybe provide libcilkrts5 in the tapir toolchain ppa listed at cilk.mit.edu.
Thanks!
Joana
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.