ASL icon indicating copy to clipboard operation
ASL copied to clipboard

Program crash with Visual Studio

Open jbensabat opened this issue 7 years ago • 2 comments

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 <cl_int name> 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

jbensabat avatar Oct 25 '18 21:10 jbensabat

Hello @jbensabat ,

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

#define CL_INVALID_CONTEXT -34

AvtechScientific avatar Oct 26 '18 08:10 AvtechScientific

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<CL_CONTEXT_PROPERTIES>()[1] It seems that the OpenCL has still to be properly adjusted best jac

jbensabat avatar Oct 27 '18 03:10 jbensabat