Ejemplo n.º 1
0
sc_session
scCreateSessionForDeviceType(
	sc_device_type device_type, 
	sc_uint device_count, 
	sc_status *status)
{
	sc_status result;
	sc_session handle = scCreateSession();
	result = SetupOpenCLSessionForDeviceType(handle, device_type, device_count);
	if(status) (*status) = result;
	return handle;
}
Ejemplo n.º 2
0
sc_session
scCreateSessionForHost(void)
{
	sc_session handle = scCreateSession();
	sc_session_t* session = (sc_session_t*)handle;
	if(session)
		session->valid = SC_TRUE;

    scInfo(handle, "Adding host to compute session.\n");

	return (sc_session)session;
}
Ejemplo n.º 3
0
XRGAMESPY_API SCResult xrGS_scCreateSession(SCInterfacePtr theInterface,
        const GSLoginCertificate * theCertificate,
        const GSLoginPrivateData * thePrivateData,
        SCCreateSessionCallback theCallback,
        gsi_time theTimeoutMs,
        void * theUserData)
{
    return scCreateSession(
               theInterface,
               theCertificate,
               thePrivateData,
               theCallback,
               theTimeoutMs,
               theUserData
           );
}