Giter Club home page Giter Club logo

cudaadvisor's People

Contributors

sderek avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

cudaadvisor's Issues

Error: 'host side signature modification' on module '<stdin>'

Hi,

I've installed LLVM 4.0.1 successfully along with clang with this profiling tool and also all the software dependencies mentioned. However, when I try to run case studies mentioned in the paper available at expr/ I get the following error, which I can't understand.

opt: /home/rfgil/llvm/llvm-4.0.1/lib/IR/Instructions.cpp:263: void llvm::CallInst::init(llvm::FunctionType*, llvm::Value*, llvm::ArrayRefllvm::Value*, llvm::ArrayRef<llvm::OperandBundleDefTllvm::Value* >, const llvm::Twine&): Assertion `(i >= FTy->getNumParams() || FTy->getParamType(i) == Args[i]->getType()) && "Calling a function with a bad signature!"' failed.
#0 0x0000000003214502 (opt+0x3214502)
#1 0x00000000032148c4 (opt+0x32148c4)
#2 0x0000000003212af0 (opt+0x3212af0)
#3 0x0000000003213e73 (opt+0x3213e73)
#4 0x00007f99114650d0 __restore_rt (/lib64/libpthread.so.0+0x100d0)
#5 0x00007f991027c8d7 __GI_raise (/lib64/libc.so.6+0x348d7)
#6 0x00007f991027e53a __GI_abort (/lib64/libc.so.6+0x3653a)
#7 0x00007f991027547d __assert_fail_base (/lib64/libc.so.6+0x2d47d)
#8 0x00007f9910275532 (/lib64/libc.so.6+0x2d532)
#9 0x0000000002b8a033 (opt+0x2b8a033)
#10 0x00007f9910026d31 llvm::CallInst::CallInst(llvm::FunctionType*, llvm::Value*, llvm::ArrayRefllvm::Value*, llvm::ArrayRef<llvm::OperandBundleDefTllvm::Value* >, llvm::Twine const&, llvm::Instruction*) /home/rfgil/llvm/llvm-4.0.1/include/llvm/IR/Instructions.h:1905:0
#11 0x00007f9910026a7d llvm::CallInst::Create(llvm::FunctionType*, llvm::Value*, llvm::ArrayRefllvm::Value*, llvm::ArrayRef<llvm::OperandBundleDefTllvm::Value* >, llvm::Twine const&, llvm::Instruction*) /home/rfgil/llvm/llvm-4.0.1/include/llvm/IR/Instructions.h:1444:0
#12 0x00007f991002a7c0 llvm::IRBuilder<llvm::ConstantFolder, llvm::IRBuilderDefaultInserter>::CreateCall(llvm::FunctionType*, llvm::Value*, llvm::ArrayRefllvm::Value*, llvm::Twine const&, llvm::MDNode*) /home/rfgil/llvm/llvm-4.0.1/include/llvm/IR/IRBuilder.h:1589:0
#13 0x00007f9910028dd1 llvm::IRBuilder<llvm::ConstantFolder, llvm::IRBuilderDefaultInserter>::CreateCall(llvm::Function*, llvm::ArrayRefllvm::Value*, llvm::Twine const&, llvm::MDNode*) /home/rfgil/llvm/llvm-4.0.1/include/llvm/IR/IRBuilder.h:1606:0
#14 0x00007f991001f48c (anonymous namespace)::instru_host_sig::runOnBasicBlock71(llvm::ilist_iterator<llvm::ilist_detail::node_options<llvm::BasicBlock, true, false, void>, false, false>&) /home/rfgil/llvm/llvm-4.0.1/lib/Transforms/CUDAAdvisor/LLVM_advisor.cpp:2143:0
#15 0x00007f991001e6a2 (anonymous namespace)::instru_host_sig::runOnModule(llvm::Module&) /home/rfgil/llvm/llvm-4.0.1/lib/Transforms/CUDAAdvisor/LLVM_advisor.cpp:1949:0
#16 0x0000000002bbf75d (opt+0x2bbf75d)
#17 0x0000000002bbfe53 (opt+0x2bbfe53)
#18 0x0000000002bc0093 (opt+0x2bc0093)
#19 0x000000000152159c (opt+0x152159c)
#20 0x00007f9910267fe0 __libc_start_main (/lib64/libc.so.6+0x1ffe0)
#21 0x0000000001506249 (opt+0x1506249)
Stack dump:
0. Program arguments: opt -load /home/rfgil/llvm/build/lib/LLVMCudaAdvisor.so -instru-host-sig

  1. Running pass 'host side signature modification' on module ''.
    /bin/sh: line 1: 17635 Aborted (core dumped) opt -load /home/rfgil/llvm/build/lib/LLVMCudaAdvisor.so -instru-host-sig < host.bc > hosttmp.bc
    Makefile:74: recipe for target 'hosttmp.bc' failed

I've tried compiling several LLVM versions, and messing around with env.mk definitions setting llvm path variable both in build and installation folder. Nothing seems to solve the problem and I can't find any information about this error. Any help would be highly appreciated.

Thanks in advance!

Can you explain your code?

I am so sorry,to bother you, but I can't understand these codes. How do you get the 24 strings and what can they do?
const int AFsize = 24; std::string AF[AFsize] = {"print1", "print2", "print3", "print5", "takeString", "RetKernel", "storeLines", "dumpLines", "atomicAdd", //this is needed for -O0 "passBasicBlock", "callFunc", "mystrcpy", "mystrcmp", "getFuncID", "updateCallStack", "printCallStack", "getContextID", "cxtcpy", "myholdon", "cxtcmp", "cxtprint", "InitKernel", "print4", "assert_failPK"};

Build Error on all benchmark

building syrkllvm ...
ptxas --gpu-name sm_35 device.ptx -o device.o -v #-maxrregcount=63 #for verbose, resources check
ptxas device.ptx, line 1; fatal : Missing .version directive at start of file 'device.ptx'
ptxas fatal : Ptx assembly aborted due to errors
Makefile:96: recipe for target 'device.o' failed
make: *** [device.o] Error 255

Build errors on LLVM 6.0.0

On LLVM 6.0.0, gcc 8.1.1, the build errors.

The following is a sample of errors, but there are many more. It looks like an incompatibility.

../lib/Transforms/CUDAAdvisor/LLVM_advisor.cpp:515:43: error: ‘ArgumentListType’ is not a member of ‘llvm::Function’
                                 Function::ArgumentListType &args = F -> getArgumentList();
                                           ^~~~~~~~~~~~~~~~

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.