PGCL Dynamic Compilation Problem

Hello.

I installed the PGCL 12.6 on Ubuntu, and I’m trying to launch an OpenCL application on my Android device, when I compile and run the “Simple1_dynamic” example, appeared the following error:

PGOCL-F-0005-Unable to open temporary file
PGOCL/arm Linux 12.6-0: compilation aborted
Error on invoking /data/pgi/bin/pgocl-llvm /data/local/opencl-kernel-Nm8198/opencl-kernel-Nm8198-0-src-def.cl -terse 1 -stdinc /data/pgi/include -x 119 0xa10000 -x 119 0x100000 -x 122 0x40 -x 123 0x1000 -x 127 4 -x 127 17 -x 119 0x40000000 -x 19 0x400000 -x 28 0x40000 -x 120 0x10000000 -x 70 0x8000 -x 122 1 -x 59 4 -x 59 4 -x 120 0x1000 -x 119 0x8000000 -astype 0 -ieee 1 -def _PGI_NOBUILTINS -def STCL -def PIC -x 122 0x80 -x 119 0x20 -x 123 0x80000000 -x 123 4 -x 2 0x400 -x 8 0x8000000 -x 62 8 -x 120 0x200000 -x 62 8 -x 249 30 -opt 2 -inform warn -asm /tmp/pgcll-tmp-xJ8203/opencl-kernel-Nm8198-0-src-def.ll
: 256
Segmentation fault
clBuildProgram failed.
Error value = -11

I don’t know why lead to this problem.

Any help is appreciated.
ZengFei.

Hi ZengFei,

It appears that the compiler can’t put a temporary file the “/tmp” directory and this this is causing it to abnormally abort. Can you check if you have read/write permissions in “/tmp”?

In talking with one of our developers, he said you might also try upgrading to 12.8. They changed how some of the working directory mechanics work and might help in working around this permissions issue.

Hope this helps,
Mat

Hi Mat,

That really can do it! Is my “/tmp” directory not create.

Thanks for the help!

cheers,
ZengFei.