&total_allocatable_memory,NULL); assert(ciErr == CL_SUCCESS);if(platform_name =="AMD Accelerated Parallel Processing") {/* This value is tweak-able; AMD platform does not seem to * give maximum performance when all of CL_DEVICE_MAX_MEM_ALLOC_SIZE * is considered for further computation....
func CLGetDeviceInfo(device CL_device_id, param_name CL_device_info, param_value_size CL_size_t, param_value *interface{}, param_value_size_ret *CL_size_t) CL_int { if (param_value_size == 0 || param_value == nil) && param_value_size_ret == nil { return CL_INVALID_VALUE ...