Ejemplo n.º 1
0
static void init(struct fmt_main *self) {
	saved_key = mem_calloc(BF_N, sizeof(*saved_key)) ;
	global_work_size = 0 ;

	//Prepare OpenCL environment.
	opencl_preinit();

	// Check if specific LWS/GWS was requested
	opencl_get_user_preferences(FORMAT_LABEL);

	// BF_select_device(platform,device);
	//platform_id = get_platform_id(gpu_id);
        BF_select_device(self) ;
	keys_mode = 'a' ;
	sign_extension_bug = 0 ;
	//fprintf(stderr, "****Please see 'opencl_bf_std.h' for device specific optimizations****\n");
}
Ejemplo n.º 2
0
static void init(struct fmt_main *pFmt)
{	// BF_select_device(platform,device);
        BF_select_device(0,0);
	keys_mode = 'a';
	sign_extension_bug = 0;
}