Archived issue #0024153

Adding OpenCL to OCCT prerequisites

Open CASCADEOCCT:WOKclosed7 public notes

Search issues

Description

Adding OpenCL to OCCT prerequisites.

Sources are ready for optional compilation with OpenCL. All OpenCL-specific code is wrapped into HAVE_OPENCL ifdef/endif block.

Public activity

7 archived notes

Participants are labeled by their role within this record.

01Commenter 2
Dear dbp,

could you please add CSF_OpenCLDir variable to the branch CR24153 in the same way as it done for shaders?
02Commenter 2
Dear kgv,

the OpenCL resource directory (CSF_OpenCLDir) was added to WOK scripts.

But, to support OpenCL programs, the WOK GUI must also be modified (to add include, lib and bin directories of the specific OpenCL implementation).

03Commenter 3
Dear kgv,

the WOK scripts were modified to support OpenCL. WOK was tested under Windows to generate VS projects using CMake. Please review.
04Commenter 2
Dear dbp,

please remove CSF_OpenCLDir, as discussed before.

>> WOK was tested under Windows to generate VS projects using CMake
I don't see any changes in CMake scripts.
05Commenter 5
Dear kgv,

WOK scripts were cleared from CSF_OpenCLDir.
06Commenter 2
Dear Commenter 1,

please verify that changes in WOK branch are sufficient for building OCCT (#0024130) with OpenCL dependency on all supported platforms.
07Commenter 1
Ivan,

1. I tried to build CR24130 by cmake on Windows. But it seems root CMakeLists.txt
was not updated for OpenCL.

2. Building by Makefiles on Linux :
SDK are available in /dn29/PRODUCTS/maintenance/unix_6.6.1/OpenCL
Output:
checking tbb/tbb.h usability... yes
checking tbb/tbb.h presence... yes
checking for tbb/tbb.h... yes
checking CL/cl.h usability... yes
checking CL/cl.h presence... yes
checking for CL/cl.h... yes
checking for TBB_runtime_interface_version in -ltbb... yes
checking for OPENCL_runtime_interface_version in -lopencl... no
configure: "Specify --with-opencl-library to enable OpenCL support"

config.log :
configure:18190: checking for OPENCL_runtime_interface_version in -lopencl
configure:18215: g++ -o conftest -DCSFDB -DOCC_CONVERT_SIGNALS -DLIN -DLININTEL -D_GNU_SOURCE=1 -mmmx -msse -msse2 -mfpmath=sse -Wall -I/dn29/PRODUCTS/maintenance/unix_6.6.1/OpenCL/AMD-APP-SDK-v2.8.1.0-RC-lnx64/include/CL -I/dn29/PRODUCTS/maintenance/unix_6.6.1/Debian60-64/tbb-30_018oss/include -I/dn29/PRODUCTS/maintenance/unix_6.6.1/Debian60-64/freeimage-3.15.4/include -I/dn29/PRODUCTS/maintenance/unix_6.6.1/Debian60-64/gl2ps-1.3.8/include -D_OCC64 -L/dn29/PRODUCTS/maintenance/unix_6.6.1/OpenCL/AMD-APP-SDK-v2.8.1.0-RC-lnx64/lib/x86_64 -L/dn29/PRODUCTS/maintenance/unix_6.6.1/Debian60-64/tbb-30_018oss/lib/intel64/cc4.1.0_libc2.4_kernel2.6.16.21 -L/dn29/PRODUCTS/maintenance/unix_6.6.1/Debian60-64/freeimage-3.15.4/lib -L/dn29/PRODUCTS/maintenance/unix_6.6.1/Debian60-64/gl2ps-1.3.8/lib -lstdc++ -lrt conftest.cpp -lopencl -ltbb -lXt -lX11 -lGLU -lGL -L/dn29/PRODUCTS/maintenance/unix_6.6.1/Debian60-64/freetype-2.4.11/lib -lfreetype -ldl -lpthread >&5
/tmp/ccmoJHzX.o: In function `main':
conftest.cpp:(.text+0x5): undefined reference to `OPENCL_runtime_interface_version'
collect2: ld returned 1 exit status
configure:18215: $? = 1

Related records