Displaying 3 results from an estimated 3 matches for "blur2d".
2011 Dec 07
2
[LLVMdev] Build PTX samples with LLVM/Clang/libclc
...libclc/
$ git clone git://git.pcc.me.uk/~peter/libclc.git
# Build libclc first
$ cd libclc/
$ ./configure.py --with-llvm-config=/path/to/llvm-config && make
# Then build your PTX samples
$ cd ../; make build; cd build
$ cmake ../
$ make
---
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.
[1] https://github.com/jholewinski/llvm-ptx-samples...
2015 Feb 03
2
[LLVMdev] Example for usage of LLVM/Clang/libclc
...did this but I am not sure if the
PTX code I am generating is correct (is the one that is supposed to be
generated).
For example, currently,
In OpenCL : get_global_id(0) translates to
In LLVM : %call = tail call i32 @get_global_id(i32 0) which translates
to
In PTX:
// .globl blur2d
.func (.param .b32 func_retval0) get_global_id
(
.param .b32 get_global_id_param_0
)
;
mov.u32 %r2, 0;
.param .b32 param0;
st.param.b32 [param0+0], %r2;
.param .b32 retval0;
call.uni (retval0),
get_global_id,
(
pa...
2011 Dec 07
0
[LLVMdev] Build PTX samples with LLVM/Clang/libclc
...m-ptx-samples
$ cd llvm-ptx-samples
$ git submodule init
$ git submodule update
I'll update the documentation to reflect this.
Also, the libclc configuration is not necessary. Only some header files
are pulled in by the samples.
> 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...