Adding bli_print_msg before bli_abort() for bli_thrinfo_sup_create_for_cntl

- Adding bli_print_msg to print failure message bout bli_abort in
  bli_thrinfo_sup_create_for_cntl function.
This commit is contained in:
S, Hari Govind
2025-09-19 10:53:50 +05:30
committed by GitHub
parent 823ec2cd40
commit a9df3fd8d5

View File

@@ -192,7 +192,7 @@ thrinfo_t* bli_thrinfo_sup_create_for_cntl
// communicator is divisible by the number of new sub-groups.
if ( parent_nt_in % parent_n_way != 0 )
{
printf( "Assertion failed: parent_nt_in <mod> parent_n_way != 0\n" );
bli_print_msg( "Assertion failed: parent_nt_in <mod> parent_n_way != 0.", __FILE__, __LINE__ );
bli_abort();
}
@@ -234,6 +234,7 @@ thrinfo_t* bli_thrinfo_sup_create_for_cntl
// Check if broadcast failed (can happen when parent communicator is NULL)
if ( new_comms == NULL )
{
bli_print_msg( "Broadcast failed if parent communicator is NULL.", __FILE__, __LINE__ );
bli_abort();
}