#3324 closed defect (fixed)
ParModelica: OCLRuntimeUtil.cl not found
Reported by: | Gustaf Thorslund | Owned by: | Mahder Alemseged Gebremedhin |
---|---|---|---|
Priority: | high | Milestone: | 1.9.4 |
Component: | ParModelica | Version: | trunk |
Keywords: | Cc: |
Description
When trying to run ParModelica-code, it fails with:
2 CL_DEVICE_NAME : Intel(R) HD Graphics Haswell M 2 CL_DRIVER_VERSION : 0.8.0 2 CL_DEVICE_MAX_COMPUTE_UNITS : 64 2 CL_DEVICE_MAX_CLOCK_FREQUENCY : 1000 2 CL_DEVICE_LOCAL_MEM_SIZE : 64 KB 2 CL_DEVICE_GLOBAL_MEM_SIZE: 128 MB 2 CL_DEVICE_MAX_MEM_ALLOC_SIZE: 128 MB 2 CL_DEVICE_MAX_PARAMETER_SIZE: 1024 MB 2 CL_DEVICE_MAX_WORK_GROUP_SIZE: 512 2 CL_DEVICE_PREFERRED_VECTOR_WIDTH_DOUBLE : 0 - Select your device: 2 Error building program: CL_BUILD_PROGRAM_FAILURE Build failed: Errors detected in compilation of OpenCL code: CL_PROGRAM_BUILD_LOG: /tmp/7OHC0m.cl:1:10: fatal error: 'ParModelica/explicit/openclrt/OCLRuntimeUtil.cl' file not found
I've been told this does not happen with NVIDIA. The ugly workaround for me have been:
-
Compiler/Template/CodegenC.tpl
diff --git a/Compiler/Template/CodegenC.tpl b/Compiler/Template/CodegenC.tpl index 366cb6f..dd45777 100644
a b template simulationParModelicaKernelsFile(String filePrefix, list<Function> func 4179 4179 let()= System.tmpTickResetIndex(0,20) /* parfor index */ 4180 4180 4181 4181 << 4182 #include <ParModelica/explicit/openclrt/OCLRuntimeUtil.cl>4182 #include "ParModelica/explicit/openclrt/OCLRuntimeUtil.cl" 4183 4183 4184 4184 // ParModelica Parallel Function headers. 4185 4185 <%functionHeadersParModelica(filePrefix, functions)%> … … template functionsParModelicaKernelsFile(String filePrefix, Option<Function> mai 4201 4201 let()= System.tmpTickResetIndex(0,20) /* parfor index */ 4202 4202 4203 4203 << 4204 #include <ParModelica/explicit/openclrt/OCLRuntimeUtil.cl>4204 #include "ParModelica/explicit/openclrt/OCLRuntimeUtil.cl" 4205 4205 4206 4206 // ParModelica Parallel Function headers. 4207 4207 <%functionHeadersParModelica(filePrefix, functions)%>
Then I add a symlink from the place where the generated OpenCL-code is (/tmp)
gustaf@ulmus:/tmp$ ln -s /home/gustaf/src/OpenModelica/build/include/omc/c/ParModelica .
This is no perfect solution, but let me carry on until I hit other bugs.
Change History (5)
comment:1 by , 10 years ago
Summary: | OCLRuntimeUtil.cl not found → ParModelica: OCLRuntimeUtil.cl not found |
---|
comment:2 by , 9 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:3 by , 9 years ago
Milestone: | Future → 1.9.4 |
---|
Sorting these closed tickets away from "Future". Since they were closed after the last 1.9.3 release, it's very likely that they should have been part of the 1.9.4 release.
Note:
See TracTickets
for help on using tickets.
Fixed in 4300bd200d268d9e3377e47e8e9353a4c1dad384/OMCompiler.