This commit is contained in:
Jay D Dee
2022-01-12 21:08:25 -05:00
parent 17ccbc328f
commit 8727d79182
7 changed files with 86 additions and 23 deletions

View File

@@ -87,16 +87,17 @@ int verthash_info_init(verthash_info_t* info, const char* file_name)
// Allocate data
info->data = (uint8_t *)malloc_hugepages( fileSize );
if ( info->data )
if ( !opt_quiet ) applog( LOG_INFO, "Verthash data is using huge pages");
else
{
if ( !opt_quiet ) applog( LOG_INFO, "Verthash data is using huge pages");
}
else
info->data = (uint8_t *)_mm_malloc( fileSize, 64 );
if (!info->data)
{
fclose(fileMiningData);
// Memory allocation fatal error.
return 2;
}
if ( !info->data )
{
fclose( fileMiningData );
// Memory allocation fatal error.
return 2;
}
// Load data