Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Program crash with Visual Studio #43

Open
jbensabat opened this issue Oct 25, 2018 · 2 comments
Open

Program crash with Visual Studio #43

jbensabat opened this issue Oct 25, 2018 · 2 comments

Comments

@jbensabat
Copy link

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

@AvtechScientific
Copy link
Owner

Hello @jbensabat ,

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

#define CL_INVALID_CONTEXT -34

@jbensabat
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants