2using System.Collections.Generic;
5using System.Threading.Tasks;
28 Console.WriteLine(
"Initialize the SqueezeBrains library");
29 err =
Sb.
Init(
"../../../sb.lic");
32 Console.WriteLine(
"Sb.Init failed with error " + err);
40 Console.WriteLine(
"Wait for license...");
41 err = Common.WaitLicense();
44 Console.WriteLine(
"SbLicense.WaitLicense failed with error " + err);
51 Console.WriteLine(
"Release SqueezeBrains library");
54 Console.WriteLine(
"Press ENTER to terminate\n");
60 static void Main(
string[] args)
Tutorial 1 - How to initialize the library
static SbError Release()
Releases all the resources allocated in the library
static SbInfo GetInfo(int dl_devices_info)
The function gets information of the sb library and the available computational devices
static SbError Init(String ^ license_file)
Init the SB Library. The function initializes all the functionalities of the library including the li...
Info class that wraps the sb_t_info structure. You must call the Dispose() method to free all the re...
SbError Refresh(int dl_devices_info)
Refresh the sb library information
String compile_time
String of the compile time of the sb library sb_t_info.compile_time
String version_str
String of the version of the sb library. sb_t_info.version_str
String compile_date
String of the compile date of the sb library. sb_t_info.compile_date