one is code builder, that is use for project setting and othe stuff.
the other is in create new project the is the new build new project "OpenCL"
and that guide you to make a new solution,
after click all the defaults, it makes a new solution with a very simple cl funtion named template.cl
- Code: Select all
/*****************************************************************************
* Copyright (c) 2013-2016 Intel Corporation
* All rights reserved.
*
* WARRANTY DISCLAIMER
*
* THESE MATERIALS ARE PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL INTEL OR ITS
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
* OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THESE
* MATERIALS, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* Intel Corporation is the author of the Materials, and requests that all
* problem reports or change requests be submitted to it directly
*****************************************************************************/
__kernel void Add(__global int* pA, __global int* pB, __global int* pC)
{
const int x = get_global_id(0);
const int y = get_global_id(1);
const int width = get_global_size(0);
const int id = y * width + x;
pC[id] = pA[id] + pB[id];
}
the click build fail with tha error message,
basically the opencl compiler C:\Intel\OpenCL\sdk\bin\x86\ioc32.exe
fail a compiling template.cl
but ta is teh same erro I get each time I launch visual studio, it say the there are no recognizable devices in the machine,
bu t this is an pure core i7-7700 cpu, which has an 630 gpu
but even if it does it still has avx2 so it should recognize opencl on CPU configuration
but they all fail.
is as if the SDK things this is an AMD cpu
I try to run the drive setup, and it say the drive is already installed.
This is extremity frustration, I will try to make a simple compute sharer extranal DLL and see if tha work.
basically I will make an astarct interface for plugin external solver to the engine.
teh first one will be the same one that is in file ../sdk\dgPhysics\dgWorldDynamicsParallelSolver.cpp
just as it is now, and that will be the base one, then after it working I will try to covert that to use avx2 so that will be the CPU solution to emulate from.
the from that we can make basics one we can make gpu or versions, but I do no wnat to mess up the engine but adding external header like opencls, cuda, opengl, vulcan of directx
instead there will be an abstract interface and the engine will load those solvers as runtime dlls if they are in some folder. then the user can select them.
that's the idea but so far the first attend is a failure.