[LLVMdev] Build PTX samples with LLVM/Clang/libclc

陳韋任 chenwj at iis.sinica.edu.tw
Wed Dec 7 07:46:36 PST 2011


> I agree.  I'm just not sure how these projects fit in with LLVM as a whole.
>  LLVM does not really have a "samples" project, and these are very specific
> in their use-case.

  I mean maintaining a document about PTX and its samples in one place so that
people won't get lost among those website. 

> libclc is a submodule of the llvm-ptx-samples repo.  Therefore, the flow is
> simple:
> 
> $ git clone git://github.com/jholewinski/llvm-ptx-samples
> $ cd llvm-ptx-samples
> $ git submodule init
> $ git submodule update

  That's simple. I'm still learning how to git. :) 

> >  O.K., I have a problem here.
> >
> > [ 12%] Compiling blur2d_kernel.cl -> blur2d_kernel.ll
> > clang: error: no such file or directory: 'ptx32'
> > make[2]: *** [bin/blur2d_kernel.ll] Error 1
> > make[1]: *** [opencl/blur2d/CMakeFiles/blur2d_kernel.ptx.dir/all] Error 2
> >
> >  Do you know how to fix it? Thanks.
> >
> 
> That's a new one.  I just tried a fresh clone and build, and did not
> experience this issue.
> 
> Can you run "make VERBOSE=1" and post the compiler command-line?

  Sorry, I delete the problematic source directory and cannot reproduce it. :/
`git submodule` works fine. Thanks! :)

Regards,
chenwj

-- 
Wei-Ren Chen (陳韋任)
Computer Systems Lab, Institute of Information Science,
Academia Sinica, Taiwan (R.O.C.)
Tel:886-2-2788-3799 #1667
Homepage: http://people.cs.nctu.edu.tw/~chenwj




More information about the llvm-dev mailing list