15#include "../common/common.h"
29 printf(
"Initialize the SqueezeBrains library\n");
41 printf(
"ERROR: impossibile to get hardware information\n");
45 f = fopen(
"../hw.lic",
"w");
46 fwrite(hw_info, 1, strlen(hw_info), f);
49 printf(
"\nHardware information have been saved in the file \"hw.lic\"\n");
50 printf(
"To buy a master license send this file to licensing@fabervision.com\n\n");
57 printf(
"Release SqueezeBrains library\n");
60 printf(
"Press ENTER to terminate\n");
#define CHECK_FN_GOTO(function)
sb_t_err
Errors code enum.
sb_t_err sb_destroy_info(sb_t_info **const info)
Destroys the structure.
sb_t_err sb_release(void)
Releases all the resources allocates in the library.
sb_t_err sb_get_info(sb_t_info **const info, int dl_devices_info)
The function gets information about the sb library and the available computational devices.
sb_t_err sb_init(const char *const license_file)
Initializes the SB library.
#define SB_INIT_NO_LICENSE_KEY
Use this define with sb_init in order to not manage license keys.
sb_t_err sb_license_get_hw_info(char **const str)
Returns the hardware information.
void sb_free(void *ptr)
Deallocates a memory block.
General information about sb library and computing devices like CPU and GPUs.
char compile_time[32]
String with the compilation time of the sb library.
char compile_date[32]
String with the compilation date of the sb library.
char version_str[16]
String with the version of the sb library.