compute-runtime icon indicating copy to clipboard operation
compute-runtime copied to clipboard

Make process terminating at 93% [question] [build issue]

Open ducbueno opened this issue 6 years ago • 6 comments

Hello.

I'm trying to install the compute-runtime in Manjaro Linux.

I have installed all the pre-requisites (without erros of any kind), however when run make for the compute-runtime the process terminates at 93% showing the following as the first error:

make[2]: *** [shared/source/built_ins/kernels/CMakeFiles/builtins_Gen8core.dir/build.make:98: bin/built_ins/x64/gen8/aux_translation_Gen8core.spv] Error 250

This is what appears before the error:

[ 93%] Generating ../../../../bin/built_ins/x64/gen8/aux_translation_Gen8core.spv, ../../../../bin/built_ins/x64/gen8/aux_translation_Gen8core.bin, ../../../../bin/built_ins/x64/gen8/aux_translation_Gen8core.cpp, ../../../../bin/built_ins/x64/gen8/aux_translation_Gen8core.gen [ 93%] Generating ../../../../bin/built_ins/x64/gen9/aux_translation_Gen9core.spv, ../../../../bin/built_ins/x64/gen9/aux_translation_Gen9core.bin, ../../../../bin/built_ins/x64/gen9/aux_translation_Gen9core.cpp, ../../../../bin/built_ins/x64/gen9/aux_translation_Gen9core.gen [ 93%] Generating ../../../../bin/built_ins/x64/gen9/aux_translation_Gen9lp.spv, ../../../../bin/built_ins/x64/gen9/aux_translation_Gen9lp.bin, ../../../../bin/built_ins/x64/gen9/aux_translation_Gen9lp.cpp, ../../../../bin/built_ins/x64/gen9/aux_translation_Gen9lp.gen [ 93%] Generating ../../../../bin/built_ins/x64/gen12lp/aux_translation_Gen12LPlp.spv, ../../../../bin/built_ins/x64/gen12lp/aux_translation_Gen12LPlp.bin, ../../../../bin/built_ins/x64/gen12lp/aux_translation_Gen12LPlp.cpp, ../../../../bin/built_ins/x64/gen12lp/aux_translation_Gen12LPlp.gen [ 93%] Generating ../../../../bin/built_ins/x64/gen11/aux_translation_Gen11lp.spv, ../../../../bin/built_ins/x64/gen11/aux_translation_Gen11lp.bin, ../../../../bin/built_ins/x64/gen11/aux_translation_Gen11lp.cpp, ../../../../bin/built_ins/x64/gen11/aux_translation_Gen11lp.gen

Does anyone know what is going on?

If here is not the appropriate place to ask this kind of question, I would appreciate if anyone could direct me to the correct place.

Thanks in advance.

ducbueno avatar Apr 24 '20 19:04 ducbueno

This is the build phase where the driver precompiles some internal kernels to SPIRV to embed inside the driver itself. Are the other platforms passing for the same kernel while gen8 is failing? If not, temporarily, you might be able to disable GEN8 support in the CMake system while we figure out why it's failing.

bfliflet avatar Apr 24 '20 20:04 bfliflet

To disable GEN8 support you can run make, like we do on Travis, see: https://github.com/intel/compute-runtime/blob/master/scripts/docker/Dockerfile-ubuntu-18.04-gcc-gen-9 Can you also check if you can reproduce this compilation error using the latest Neo with updated IGC to 1.0.3899

JacekDanecki avatar May 08 '20 13:05 JacekDanecki

I'm running into a very similar error (Error 250) when building version 20.14.16441 from source (on top of gmmlib 20.1.1 and intel-graphics-compiler 1.0.3698, on CentOS 7.8).

Configuring with "-DSUPPORT_GEN8=0 -DSUPPORT_GEN9=1 -DSUPPORT_GEN11=0 -DSUPPORT_GEN12LP=0" as suggested doesn't help me at all...

I can try again with the latest version of everything, but can somebody clarify what "Error 250" actually means exactly? Where can I find the actual error message what tells me more about that is wrong here?

boegel avatar Jun 30 '20 13:06 boegel

Packages from Neo 20.14.16441 for Centos 7 you can find on SF mirror

Regarding "Error 250" you can check lines > 98 in ocloc_api.cpp and see what step returns this error.

JacekDanecki avatar Jul 02 '20 14:07 JacekDanecki

I fixed this issue by adding the cmake flag -DIGC_DIR=<IGC install prefix> to my build.

KipHamiltons avatar Jan 15 '21 03:01 KipHamiltons

Error 250 can be reported by ocloc when there is problem with libigdfcl library loading, as reported here: https://gist.github.com/KipHamiltons/8d1d518c5adf8745ab401c8812029ba9#file-output-txt-L365 IGC headers and libraries are searched by pkg-config tool executed by cmake, so when IGC is installed in different location than specified in igc-opencl.pc, it can be overwritten by IGC_DIR variable as mentioned by @KipHamiltons

If we add -DIGC_DIR=/home/tests/igc to cmake parameters, path to libigdfcl will be added to LD_LIBRARY_PATH set before ocloc execution. It can be verified by "make VERBOSE=1"

cd /home/tests/compute-runtime/shared/source/built_ins/kernels && LD_LIBRARY_PATH=/home/tests/igc/lib/:/home/tests/compute-runtime/build/bin /home/tests/compute-runtime/build/bin/ocloc -q -spv_only -file copy_image3d_to_buffer_stateless.builtin_kernel -out_dir /home/tests/compute-runtime/build/bin/built_ins/x64/spirv/ -output_no_suffix -options -cl-kernel-arg-info

JacekDanecki avatar Aug 24 '21 15:08 JacekDanecki