AvtechScientific / ASL

Advanced Simulation Library - hardware accelerated multiphysics simulation platform.
http://asl.org.il
GNU Affero General Public License v3.0
217 stars 55 forks source link

Program crash with Visual Studio #43

Open jbensabat opened 5 years ago

jbensabat commented 5 years ago

Hello I have compiled ASL with VTL 8.1.1 and Boost 1_68_00 I am trying to run the example bus_wind I get a program crash at ApplicationParametersManager

in function

template typename detail::param_traits<detail::cl_command_queue_info, name>::param_type getInfo(cl_int err = NULL) const { typename detail::param_traits< detail::cl_command_queue_info, name>::param_type param; cl_int result = getInfo(name, &param); if (err != NULL) { err = result; } return param; } err equals -34 any hint ? thanks jac

AvtechScientific commented 5 years ago

Hello @jbensabat ,

check the cl.h file of your OpenCL, it mentions there following error:

define CL_INVALID_CONTEXT -34

jbensabat commented 5 years ago

Hi thanks I partly resolved the problem by installing the intel runtime driver for my computer (CPU only) It then pops into a same error code but other function

string getPlatformVendor(const CommandQueue & queue)
{
    cl_context_properties cps = getContext(queue).getInfo<CL_CONTEXT_PROPERTIES>()[1];
    return  (cl::Platform((cl_platform_id)cps)).getInfo<CL_PLATFORM_VENDOR>();
}

it gets a "subscript out of range" error upon calling the function getContext(queue).getInfo()[1] It seems that the OpenCL has still to be properly adjusted best jac