Quantcast
Channel: Intel® Software - OpenCL*
Viewing all 1182 articles
Browse latest View live

Unknown crash during runtime

$
0
0
Hi,
I have encountered a crash problem running for Intel CPU on Windows 7 (x86) platforms with OpenCL CPU only.
My platforms is below,
CL_PLATFORM_NAME: Intel(R) OpenCL
CL_DEVICE_NAME:   Intel(R) Core(TM) i7-3610QM CPU @ 2.30GHz
CL_DEVICE_VERSION: OpenCL 1.2 (Build 57)
CL_DRIVER_VERSION: 5.0.0.57

I use only 3 cores for windows 7 system, and 1 core for RTOS system.

Mostly, it works fine when I repeat do the life time test when OpenCL run in CPU.

However, I got the following information in console mode and then crash.

Currently, I just got only one situation like this. Still try to duplicate it.

I don't have idea about it. Can anyone give me a hint of it?

============================================

0x0A091938 (0x10FFA080 0x0E5C56B8 0x0E5C56AC 0xA1F21EAB) <unknown module>
0x57BDACD0 (0x10FFA080 0x0E5C56B8 0x0E5C56AC 0x00000000)
0x5968E3E3 (0x00000000 0x00000098 0x00000000 0x07E272B8), clDevInitDeviceAgent() + 0x3833 bytes(s)
0x5973E908 (0x0D9FED24 0xA1F33BDF 0x0DA03E80 0x0D9FED20), ?GetTaskExecutor@TaskExecutor@OpenCL@Intel@@YAPAVITaskExecutor@123@XZ() + 0x7EB8 bytes(s)
0x59739019 (0x0D9FED20 0x0D9FED24 0x5830A4F0 0xA1F26F16), ?GetTaskExecutor@TaskExecutor@OpenCL@Intel@@YAPAVITaskExecutor@123@XZ() + 0x25C9 bytes(s)
0x5973EF0C (0x0DA07F20 0x0D9FED20 0x0DA23F88 0x00000001), ?GetTaskExecutor@TaskExecutor@OpenCL@Intel@@YAPAVITaskExecutor@123@XZ() + 0x84BC bytes(s)
0x58305439 (0x00000000 0x00000000 0x0DA27F08 0x0DA27F00), ?internal_current_slot@task_arena_base@internal@interface7@tbb@@KAHXZ() + 0xEB9 bytes(s)
0x583036B6 (0x0DA03E80 0x00000000 0x0DA27F00 0x0E5CF748), ?initialize@task_scheduler_init@tbb@@QAEXH@Z() + 0xD16 bytes(s)
0x582FE5E8 (0x00000000 0x00000000 0x00000000 0x00000000), ?thread_sleep_v3@internal@tbb@@YAXABVinterval_t@tick_count@2@@Z() + 0x1338 bytes(s)
0x0A091901 (0x10FFA080 0x0E7CB7D0 0x0E7CB7C4 0xA1D2FF93) <unknown module>
0x57BDACD0 (0x10FFA080 0x0E7CB7D0 0x0E7CB7C4 0x00000000)
0x5968E3E3 (0x00000000 0x00000097 0x00000000 0x07E272B8), clDevInitDeviceAgent() + 0x3833 bytes(s)
0x5973E908 (0x0D9FE824 0xA1D3DAF7 0x0D9FBE80 0x0D9FE820), ?GetTaskExecutor@TaskExecutor@OpenCL@Intel@@YAPAVITaskExecutor@123@XZ() + 0x7EB8 bytes(s)
0x59739019 (0x0D9FE820 0x0D9FE824 0x5830A4F0 0xA1D28EFE), ?GetTaskExecutor@TaskExecutor@OpenCL@Intel@@YAPAVITaskExecutor@123@XZ() + 0x25C9 bytes(s)
0x5973EF0C (0x0D9FEF20 0x0D9FE820 0xA1D28EC2 0x0E7CBB30), ?GetTaskExecutor@TaskExecutor@OpenCL@Intel@@YAPAVITaskExecutor@123@XZ() + 0x84BC bytes(s)
0x58308332 (0x0D9FF520 0x0D9FF51C 0xA1D3D8D7 0x00000000), ?internal_wait@task_arena_base@internal@interface7@tbb@@IBEXXZ() + 0x2382 bytes(s)

============================================

 

 


Difficulties to run OpenCL on HD Graphics 4000 and 5000

$
0
0

Hi,

I encounter difficulties to run OpenCL programs on both HD Graphics 4000 and 5000 with ubuntu I tried different drivers & ubuntu releases but linux doesn't boot or opencl app dosn't run.

Is the a recommended configuration to be able to install and run HD Graphics drivers and OpenCL SDK???

Intel GPUs in the Cloud

$
0
0

Can the Intel GPU cores be provisioned with any cloud solutions, e.g., OpenStack, just like Intel CPU cores and run OpenCL applications?  Any documentation to detail the cans and cannots?

How to use SIMD FPU on HD Graphics

$
0
0

I write the OpenCL kernel code for HD Graphics.

I know each EU has 4-way SIMD FPU.

But, I don't know how to use SIMD operation.

Does kernel compiled for HD Graphics is vectorized automatically?

How to know whether the kernel code is vectorized.

When my kernel compiled with intel kernel builder to CPU, it is displayed "Kernel <~~> was successfully vectorized".

I think this code is compiled with vectorize.

But, compiled to GPU, it isn't display so.

Is this kernel code vectorized automatically if compiled for HD Graphics?

If kernel code isn't vectorized automatically, how to vectorize the code?

TBBMALLOC.dll crash with OpenCL Runtime 15.1 on Xeon processor

$
0
0

Dear all,

I am developping an opencl application on multiple platforms (NVidia, AMD, intel CPU, intel GPU), running on Windows 7 - x64.
I came across a strange error where some code ends with Access Violation exception in tbbmalloc.dll when the selected platform is Intel CPU (OpenCL 1.2, on Xeon processor). Note that the code runs fine on other platforms.

Some information:

            CL_DEVICE_NAME: Intel(R) Xeon(R) CPU           W3680  @ 3.33GHz
CL_DEVICE_OPENCL_C_VERSION: OpenCL C 1.2
         CL_DRIVER_VERSION: 5.0.0.57

The call stack of the tbb thread (__TBB_machine_is_in_transaction) is the following:

>	0000000000000000()
 	000000001b851e09()
 	tbbmalloc.dll!000007fed70354d0()
 	[Frames below may be incorrect and/or missing, no symbols loaded for tbbmalloc.dll]
 	tbbmalloc.dll!000007fed7003983()
 	000000001e4d8000()

 

The driver used in this case is the latest OpenCL Runtime 15.1 for Intel Core and Intel Xeon Processors for Windows OS (64-bit & 32 bit).

After further debugging, I found out that the tbbmalloc.dll provided in this runtime 15.1, is quite old (ver 4.2.2014.601 which dates back to mid 2014).
Interestingly, when I tried to hack the instalation and replace the installed library in C:\Program Files (x86)\Common Files\Intel\OpenCL\bin\x64\tbb\ directory with a more recent version of the tbb library (using tbb 4.4.2015.728) everything is working correctly.

Without knowing the exact reason for the crash it really seems that tbbmalloc is faulty here, and some things have been corrected in newer versions of TBB.

So now comes my question: Is intel considering releasing soon an updated version of OpenCL runtime for Xeon Processors ?

Thanks in advance,
Jean-Michel

CodeAnalyzer.exe generates invalid javascript

$
0
0

Version 2015.2.027: both in the VS interface and the standalone version generate Javascript that does not work on my system, where I have only firefox and google chrome. In fact, there's a bunch of occurrences of this kind:

overviewGraph.setOptions({ ... , "zooming_onLoad_yAxis_to": x, y, "center_yAxis_ifElementsAreLessThan": ... })

thath is, zooming_onLoad_yAxis_to seems to have two values but that is not valid. By removing the second argument I can get the graphs, but I'm not quite sure of the actual results yet.

Occupancy and latency profilers broken on Ivy Bridge

$
0
0

Version 2015.2.027.

Occupancy gives nonsensical data:

latency crashes, probably because it tries to use svm which is not available in OpenCL 1.2:

THREAD NOT JOINABLE, PROBABLY CRASHED
ERROR (from lib-gtpin): [ERROR] FillMyFunctionMap() couldn't find clSetKernelArg SVMPointer

 

So basically none of the profilers works for me, alright.

pyopencl.RuntimeError : device not available

$
0
0

Hi All,

We have a DELL server PowerEdge M600 with Intel Xeon processor E5450 @ 3.00 GHz running RedHat RHEL6 [2.6.32-573.7.1.el6.x86_64] on 64bit platform.

ruby and redhat-lsb-core have been installed.

Has downloaded ocl-icd-2.2.7.tar.gz, untarred and built successfully.

opencl_runtime_15.1_x64_5.0.0.57.tgz has been installed successfully too.

when running a simple python script:

import pyopencl
pyopencl.create_some_context()

 

will always get this error message:

Choose platform:
[0] <pyopencl.Platform 'Intel(R) OpenCL' at 0x1691680>
Choice [0]:
Set the environment variable PYOPENCL_CTX='' to avoid being asked again.
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/test/pyopencl/__init__.py", line 886, in create_some_context
    return Context(devices)
pyopencl.RuntimeError: Context failed: device not available

 

 

This problem does not occur on other Dell poweredge server with E5xxx processor.

Anyone has a clue and solution to this?

 


Trying to install OpenCl Driver open mac

$
0
0

Hi all, 

I am trying to install the OpenCL driver on my macbook pro, which has an Intel HD 4000 GPU. I searched around for a while, and finally found the Intel INDE development package, which I downloaded and tried to install, but got this error:

Error while executing the startup script. Make sure that you have write permissions to /Users/Shared/Library/Application Support/Intel/Licenses folder.

However, I checked and this folder does not exist. 

Two questions: How do I resolve this error? and is there a simpler way to just get the OpenCL driver?

 

Thanks!!

 

clEnqueueWriteBuffer does not finish before Kernel

$
0
0

Hi,

in my program I am doing several 

clEnqueueWriteBuffer(queue, pDeviceMem, CL_FALSE, 0, mySize, pMyObject, 0, nullptr, nullptr);

before a kernel launch, and expect these operations to finish before the kernel starts.

I am running an In-order queue. However about 50% of the kernel launches don't get the values that should have been entered by clEnqueueWriteBuffer. 
If I set the "blocking flag" to CL_TRUE, the behaviour is as expected. Also on NVidia HW the behaviour is OK when running non-blocking buffer writes.

My system is running Windows 7, and Intel HD4600 with the latest driver..

 

Have you got any hints? Do I need to use a certain type of memory (Pinned, mappep/unmapped etc.) or should non-blocking operations work on CL memory created without the USE_HOST_MEMORY?

 

The Best of Both Worlds: Bringing Back the Intel® SDK for OpenCL™ Applications

Intel® SDK for OpenCL™ Applications 2015 R3 with Awesome New Features is Released!

$
0
0

I am glad to announce the availability of Intel® SDK for OpenCL™ Applications 2015 R3 with awesome new features! We made significant progress in the quality and ease of use. You can proceed straight to downloading the Intel® SDK for OpenCL™ Applications 2015 R3.

New Features in This Release:

  • Standalone distribution of Intel® SDK for OpenCL Applications 2015 R3 for Windows* (not part of Intel® INDE)

  • Intel Processor Graphics Assembly View Support - View the Intel Processor Graphics assembly code for the OpenCL kernels generated by the SDK and see how the code is mapped to the original OpenCL kernel code in OpenCL Kernel Development (available from the Code Builder plugin to Visual Studio)

  • New features in OpenCL Kernel Development:

    • Session generation support - capture kernels execution data from a given application and generate a Kernel Development session

    • Kernel analysis of the execution unit occupancy, and memory latency of the kernel instructions.

    • Support for YUV image format

    • Stability improvements

  • New analysis features

    • New guided analysis report with drill down views from host level profiling to kernel analysis

    • Additional analysis views including: OpenCL objects report, hardware counters, memory hierarchy view, and more. 

    • Ability to perform analysis directly on the OpenCL kernel without the need to re-run an entire application.

    • Improved host-level profiling tips.

About Intel OpenVX SDK seen in Khronos site..

$
0
0

Hi,

just know that OpenCL site may not be best place to ask.. please move to correct subforum..

just saw Nvidia Tegra X1 Jetson board with VisionWorks and seeing Khronos OpenVX conformance site I see that Intel has "OpenVX SDK for Intel(R) Core(TM) and Intel(R) Atom (TM)"  approved so..

I would like to have access even in beta from.. can you share some ETA?

also Nvidia implementation seems using CUDA and GPU accelerated is OpenVX Intel implementation using iGPU via OpenCL? if not using AVX 2 from CPU?

 

thanks..

 

Optimize the number of work-groups

$
0
0

I have a basic question on the number of work groups that can  run in parallel. According to the definition of compute unit each compute unit can have only one work group, so number of work groups which can be run concurrently depends "only" on the number of CU present  .But in the "OpenCL* Applications - Optimization Guide" it has been specified that number of work groups depends on the number of the work items in a group .    

OpenCL module fail in Opencv3.0 (CentOS 7) official program (Ok in Windows)

$
0
0

Hi, there, I tried to use OpenCL module in OpenCV3.0, This is official program(under project sample-cpp-(EXAMPLE)facedetect)  and could run successfully on Windows 7 (VS2012),
It's Ok when
    ocl::setUseOpenCL(false);
However, when ocl::setUseOpenCL(true); or comment it out, error occurred:

Error Detail:
——————————————————————————————————————————

# ./facedetect

This program demonstrates the cascade recognizer. Now you can use Haar or LBP features.
This classifier can recognize many kinds of rigid objects, once the appropriate classifier is trained.
It's most known use is for faces.
Usage:
./facedetect [--cascade=<cascade_path> this is the primary trained classifier such as frontal face]
   [--nested-cascade[=nested_cascade_path this an optional secondary classifier such as eyes]]
   [--scale=<image scale greater or equal to 1, try 1.3 for example>]
   [--try-flip]
   [filename|camera_index]

see facedetect.cmd for one call:
./facedetect --cascade="../../data/haarcascades/haarcascade_frontalface_alt.xml" --nested-cascade="../../data/haarcascades/haarcascade_eye.xml" --scale=1.3

During execution:
    Hit any key to quit.
    Using OpenCV version 3.0.0

init done
In capture ...
OpenCV Error: Assertion failed (clEnqueueWriteBuffer(q, (cl_mem)u->handle, CL_TRUE, dstrawofs, total, alignedPtr.getAlignedPtr(), 0, 0, 0) >= 0) in upload, file /root/Documents/linux_opencv-3.0.0/modules/core/src/ocl.cpp, line 4960
terminate called after throwing an instance of 'cv::Exception'
  what():  /root/Documents/linux_opencv-3.0.0/modules/core/src/ocl.cpp:4960: error: (-215) clEnqueueWriteBuffer(q, (cl_mem)u->handle, CL_TRUE, dstrawofs, total, alignedPtr.getAlignedPtr(), 0, 0, 0) >= 0 in function upload

Aborted (core dumped)

——————————————————————————————————————————

 

Platform:
——————————————————————————————————————————
# cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c
      8  Intel(R) Core(TM) i7-4790 CPU @ 3.60GHz
# lspci -nn -s 00:02.0
00:02.0 VGA compatible controller [0300]: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller [8086:0412]

(rev 06)

 

# python setup_inspector.py
Starting setup inspector version 1.0.3
 [ INFO ] Linux Kernel matches supported configuration - 3.10
 [ INFO ] Render nodes are not enabled in the system
 [ TIP ] Add kernel cmd line param - drm.rnodes=1 for va_media_sharing extension to be functional
 [ INFO ] 64 bit archtecture supported
 [ INFO ] i915 module is loaded
 [ INFO ] Linux Kernel i915 module contains vmap/userptr functionality
 [ INFO ] Linux Kernel i915 module contains i915_cmd_parser functionality
 [ INFO ] libIntelOpenCL found in package - /opt/intel/opencl/libIntelOpenCL.so
 [ INFO ] libIntelOpenCL found in package - /opt/intel/opencl/libIntelOpenCL.so.16
 [ INFO ] libIntelOpenCL found in package - /opt/intel/opencl/libIntelOpenCL.so.16.4.0
 [ INFO ] intel.icd contains icd entry: /opt/intel/opencl/libIntelOpenCL.so
 [ INFO ] No nomodeset in kernel startup
 [ INFO ] Warning: System does not have supported gcc version - 4.8.2
 [ TIP ] Install matching gcc compiler
 [ INFO ] System has supported glibc version - 2.17
 [ INFO ] Required ocl package is installed in the system
 [ INFO ] Linux OpenCL is installed properly on this platform
    [ OK ]    
#
——————————————————————————————————————————

 

What should I do? can anyone help me? Thanks~


Integer Overflow - AMD and Intel difference

$
0
0

Hi,

This is my first OpenCL project so I might be doing something wrong but I am having a very strange issue. 

Below is my kernel code: 

__kernel void collatz(__global int* in, __global int* out)
{
    uint id = get_global_id(0);
    unsigned long n = (unsigned long)id;
    uint count = 0;

    while (n > 1) {
        if (n % 2 == 0) {
            n = n / 2;
        } else {
            if(n == 1572066143) {
                printf("BEFORE - %lu\n", n);
                n = (3 * n) + 1;
                printf("AFTER  - %lu\n", n);
             } else {
                 n = (3 * n) + 1;
            }

       }

       count = count + 1;
    }

    out[id] = count;
}

And here is the output:

BEFORE - 1572066143
AFTER  - 421231134

To me it looks as if the "n" variable is overflowing but I can't figure out why that is happening as it is a unsigned long. 

The really strange thing is if I update the kernel to set the value of 'n' to 1572066143 then it works correctly.

__kernel void collatz(__global int* in, __global int* out)
{
    uint id = get_global_id(0);
    unsigned long n = (unsigned long)id;
    uint count = 0;

    while (n > 1) {
        if (n % 2 == 0) {
            n = n / 2;
        } else {
            if(n == 1572066143) {
		n = 1572066143;
                printf("BEFORE - %lu\n", n);
                n = (3 * n) + 1;
                printf("AFTER  - %lu\n", n);
             } else {
                 n = (3 * n) + 1;
            }

       }

       count = count + 1;
    }

    out[id] = count;
}

Output:

BEFORE - 1572066143
AFTER  - 4716198430

In addition if I run the exact same code on my AMD GPU then I get the correct value.

Please let us know what Processor, Operating System, Graphics Driver Version, and Tool Version you are using:

Processor: i5 4670K (HD Graphics 4600)
Operating System: Windows 10
Graphics Driver Version: 20.19.15.4300
Tool Version: Intel SDK for OpenCL 5.3.0.713

I have attached a zip file containing the host and kernel code. 

Any assistance would be great!

Thanks,
Stephen

 

  1. If code is involved, it is great to create a small "Reproducer" sample and attach it to the message in the form of a zip file
AttachmentSize
Downloadapplication/zipcollatz.zip1.92 KB

OpenCL example program(HelloWorld.cpp) cmake&make failed! CentOS 7

$
0
0

I download example code in “OpenCL Programming Guide” (by Aaftab Munshi…), but some error occurred while cmake .

——————————————————————————————————————————

[  OpenCL_Programming_Guide]# pwd

/home/OpenCL_Study/OpenCL_Programming_Guide

[  OpenCL_Programming_Guide]# cmake .

CMake Error at /usr/local/share/cmake-3.4/Modules/FindPackageHandleStandardArgs.cmake:148 (message):

  Could NOT find OpenCL (missing: OPENCL_LIBRARIES OPENCL_INCLUDE_DIRS)

Call Stack (most recent call first):

  /usr/local/share/cmake-3.4/Modules/FindPackageHandleStandardArgs.cmake:388 (_FPHSA_FAILURE_MESSAGE)

  cmake/FindOpenCL.cmake:80 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)

  CMakeLists.txt:9 (find_package)

 

 

-- Configuring incomplete, errors occurred!

See also "/home/OpenCL_Study/OpenCL_Programming_Guide/CMakeFiles/CMakeOutput.log".

[  OpenCL_Programming_Guide]# cmake .

CMake Error at /usr/local/share/cmake-3.4/Modules/FindPackageHandleStandardArgs.cmake:148 (message):

  Could NOT find OpenCL (missing: OPENCL_LIBRARIES OPENCL_INCLUDE_DIRS)

Call Stack (most recent call first):

  /usr/local/share/cmake-3.4/Modules/FindPackageHandleStandardArgs.cmake:388 (_FPHSA_FAILURE_MESSAGE)

  cmake/FindOpenCL.cmake:80 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)

  CMakeLists.txt:9 (find_package)

 

 

-- Configuring incomplete, errors occurred!

See also "/home/OpenCL_Study/OpenCL_Programming_Guide/CMakeFiles/CMakeOutput.log".

 

[  OpenCL_Programming_Guide]# echo $OPENCL_LIBRARIES

/opt/intel/opencl-1.2-sdk-5.0.0.93/lib64

[  OpenCL_Programming_Guide]# echo $OPENCL_INCLUDE_DIRS

/opt/intel/opencl/include/

——————————————————————————————————————————

 

Both OPENCL_LIBRARIES and OPENCL_INCLUDE_DIRS were set manually by me. (Not set by installed intel_code_builder_for_opencl_2015_5.0.0.62_x64)

 

However, I used cmake-gui to cmake is OK:

 

 

——————————————————————————————————————————

 

[OPG_output]# make

Scanning dependencies of target HelloWorld

[  8%] Building CXX object src/Chapter_2/HelloWorld/CMakeFiles/HelloWorld.dir/HelloWorld.cpp.o

/home/OpenCL_Study/OpenCL_Programming_Guide/src/Chapter_2/HelloWorld/HelloWorld.cpp: In function \u2018_cl_command_queue* CreateCommandQueue(cl_context, _cl_device_id**)\u2019:

/home/OpenCL_Study/OpenCL_Programming_Guide/src/Chapter_2/HelloWorld/HelloWorld.cpp:116:20: warning: \u2018_cl_command_queue* clCreateCommandQueue(cl_context, cl_device_id, cl_command_queue_properties, cl_int*)\u2019 is deprecated (declared at /opt/intel/opencl/include/CL/cl.h:1359) [-Wdeprecated-declarations]

     commandQueue = clCreateCommandQueue(context, devices[0], 0, NULL);

                    ^

/home/OpenCL_Study/OpenCL_Programming_Guide/src/Chapter_2/HelloWorld/HelloWorld.cpp:116:69: warning: \u2018_cl_command_queue* clCreateCommandQueue(cl_context, cl_device_id, cl_command_queue_properties, cl_int*)\u2019 is deprecated (declared at /opt/intel/opencl/include/CL/cl.h:1359) [-Wdeprecated-declarations]

     commandQueue = clCreateCommandQueue(context, devices[0], 0, NULL);

                                                                     ^

Linking CXX executable HelloWorld

CMakeFiles/HelloWorld.dir/HelloWorld.cpp.o: In function `CreateContext()':

HelloWorld.cpp:(.text+0x21): undefined reference to `clGetPlatformIDs'

HelloWorld.cpp:(.text+0xa2): undefined reference to `clCreateContextFromType'

HelloWorld.cpp:(.text+0xeb): undefined reference to `clCreateContextFromType'

CMakeFiles/HelloWorld.dir/HelloWorld.cpp.o: In function `CreateCommandQueue(_cl_context*, _cl_device_id**)':

HelloWorld.cpp:(.text+0x161): undefined reference to `clGetContextInfo'

HelloWorld.cpp:(.text+0x1f4): undefined reference to `clGetContextInfo'

HelloWorld.cpp:(.text+0x243): undefined reference to `clCreateCommandQueue'

CMakeFiles/HelloWorld.dir/HelloWorld.cpp.o: In function `CreateProgram(_cl_context*, _cl_device_id*, char const*)':

HelloWorld.cpp:(.text+0x3ac): undefined reference to `clCreateProgramWithSource'

HelloWorld.cpp:(.text+0x404): undefined reference to `clBuildProgram'

HelloWorld.cpp:(.text+0x43a): undefined reference to `clGetProgramBuildInfo'

HelloWorld.cpp:(.text+0x476): undefined reference to `clReleaseProgram'

CMakeFiles/HelloWorld.dir/HelloWorld.cpp.o: In function `CreateMemObjects(_cl_context*, _cl_mem**, float*, float*)':

HelloWorld.cpp:(.text+0x535): undefined reference to `clCreateBuffer'

HelloWorld.cpp:(.text+0x564): undefined reference to `clCreateBuffer'

HelloWorld.cpp:(.text+0x590): undefined reference to `clCreateBuffer'

CMakeFiles/HelloWorld.dir/HelloWorld.cpp.o: In function `Cleanup(_cl_context*, _cl_command_queue*, _cl_program*, _cl_kernel*, _cl_mem**)':

HelloWorld.cpp:(.text+0x64e): undefined reference to `clReleaseMemObject'

HelloWorld.cpp:(.text+0x66b): undefined reference to `clReleaseCommandQueue'

HelloWorld.cpp:(.text+0x67e): undefined reference to `clReleaseKernel'

HelloWorld.cpp:(.text+0x691): undefined reference to `clReleaseProgram'

HelloWorld.cpp:(.text+0x6a4): undefined reference to `clReleaseContext'

CMakeFiles/HelloWorld.dir/HelloWorld.cpp.o: In function `main':

HelloWorld.cpp:(.text+0x7dd): undefined reference to `clCreateKernel'

HelloWorld.cpp:(.text+0x8d8): undefined reference to `clSetKernelArg'

HelloWorld.cpp:(.text+0x8fc): undefined reference to `clSetKernelArg'

HelloWorld.cpp:(.text+0x920): undefined reference to `clSetKernelArg'

HelloWorld.cpp:(.text+0x9bf): undefined reference to `clEnqueueNDRangeKernel'

HelloWorld.cpp:(.text+0xa52): undefined reference to `clEnqueueReadBuffer'

collect2: error: ld returned 1 exit status

make[2]: *** [src/Chapter_2/HelloWorld/HelloWorld] Error 1

make[1]: *** [src/Chapter_2/HelloWorld/CMakeFiles/HelloWorld.dir/all] Error 2

make: *** [all] Error 2

[  OPG_output]#

——————————————————————————————————————————

 

It’s seemed that I still not configure environment correctly. Could you give me some advices?

 

Something you may want to know:

————————————————————————————————————————————

# find / -name libOpenCL.so*

 /opt/intel/opencl/libOpenCL.so.1

 /opt/intel/opencl/libOpenCL.so

 /opt/intel/opencl/libOpenCL.so.1.2

#

      8  Intel(R) Core(TM) i7-4790 CPU @ 3.60GHz

00:02.0 VGA compatible controller [0300]: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller [8086:0412] (rev 06)

————————————————————————————————————————————

Install OpenCl on centos 6

$
0
0

Hi all

I need to install Opencl in Centos 6, can someone point me where i can download the rpm for that or give me one link to download OpenCL Applications XE 2013 R3 

Thanks

JR

Problem Opencl VS2015

$
0
0

I had installed the newest opencl sdk (R3), but when i load vs2015 i receive the following error message: "Codebuilder initialization failed. Kernelbuilderapi.dll Exception HRESULT 0x8007007F

Unable to excetue Installation file

$
0
0

Hi there,

I download the pset_opencl_runtime_14.1_x64_4.5.0.8 package and tried to install it on my linux installation.

If I am trying to use the "install.sh" script I am getting the following information.

sudo bash install.sh -v
This script installs Intel(R) Software Development Products.

Usage: install.sh [options]

    -h, --help                 print this message
    -v, --version              print version information
    -s, --silent [FILE]        run install silently, with settings in the configuration file
    -d, --duplicate [FILE]     run install interactively, record the user input into the
                               configuration file
    -l, --lang                 set user interface language
    --cli-mode                 run install in command-line mode
    --gui-mode                 run install in graphical mode
    --user-mode                run install with current user privileges
    --signature                set public key file to validate signature
    --ignore-signature         skip signature validation
    --ignore-cpu               skip CPU model check
    --nonrpm-db-dir            set directory to store product installation database
    -t, --tmp-dir [FOLDER]     set custom temporary folder
    --SHARED_INSTALL           install to a network-mounted drive or shared file system
                               for multiple users

All provided paths must be absolute.

Copyright (C) 2006-2014 Intel Corporation. All rights reserved.

 

Okey, so that means, the usage is bash install.sh --cli-mode (for example). If run this I am getting :

sudo bash install.sh --cli-mode
This script installs Intel(R) Software Development Products.

Usage: install.sh [options]

    -h, --help                 print this message
    -v, --version              print version information
    -s, --silent [FILE]        run install silently, with settings in the configuration file
    -d, --duplicate [FILE]     run install interactively, record the user input into the
                               configuration file
    -l, --lang                 set user interface language
    --cli-mode                 run install in command-line mode
    --gui-mode                 run install in graphical mode
    --user-mode                run install with current user privileges
    --signature                set public key file to validate signature
    --ignore-signature         skip signature validation
    --ignore-cpu               skip CPU model check
    --nonrpm-db-dir            set directory to store product installation database
    -t, --tmp-dir [FOLDER]     set custom temporary folder
    --SHARED_INSTALL           install to a network-mounted drive or shared file system
                               for multiple users

All provided paths must be absolute.

Copyright (C) 2006-2014 Intel Corporation. All rights reserved.

 

... the same reaction. This happend by all installation parameters. Did I do something wrong / do I need to do something particular before running the installtion script? (It has already been made execute-able).

 

Thanks in advance.

Viewing all 1182 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>