- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
in openCL SDK 1.5
using offline compiler compile CL kernel with -llvm option to generate llvm IR
then use llvm-as convert llvm IR -> bitcode will pop error: (llvm version:3.1 svn)
llvm-as: hello.ll:39:9: error: expected type
define x86_ocl_kernelcc void @hello(i8 addrspace(1)* nocapture %string, i8 addrspace(3)* %pLocalMem, %struct.WorkDim* %pWorkDim, i64* %pWGId, %struct.PaddedDimId* %pBaseGlbId, %struct.PaddedDimId* %pLocalIds, i64* %contextpointer, i64 %iterCount, i8* %pSpecialBuf, i64* %pCurrWI) nounwind {
this kernel come from "The openCL programming book" sample code 3-1
i've tried some CL kernel, and this error always occurred
and their's a bug in offline compiler windows version ,the "save LLVM..." option default file
type should be "*.ll" not "*.bc" , the offline compiler generate human readable llvm code.
링크가 복사됨
5 응답
- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
I would imagine no one at intel has tested their code with version 3.1 as 3.0 was release in December which was after the latest release of Intel's OpenCL SDK and runtime.
- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
-llvm flag generates a file with extension .bc, but it is a readable file just like the .ll
You may try open it in a text editor and you will get the textual llvm code.
We will consider your suggestion of changing the extension type to *.ll instead of *.bc.
Thanks,
Amjad
You may try open it in a text editor and you will get the textual llvm code.
We will consider your suggestion of changing the extension type to *.ll instead of *.bc.
Thanks,
Amjad
