GithubHelp home page GithubHelp logo

opencilk / cilkrts Goto Github PK

View Code? Open in Web Editor NEW
11.0 11.0 9.0 545 KB

A copy of the Intel Cilk Plus runtime system with modifications to work with OpenCilk and its associated tools.

CMake 0.77% HTML 0.24% C++ 64.40% C 33.12% CSS 0.14% Makefile 0.14% Assembly 0.55% Perl 0.64%

cilkrts's People

Contributors

hansangbae avatar neboat avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cilkrts's Issues

Link cilkrts to external application

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?

Linking fails on Arch Linux with GNU ld 2.32

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

logs_failure.txt

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.

patch.txt

reducer_vector.h is not included in libcilkrts5

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.