Fixed inactive trsm_r blocksize constraint code.

Details:
- Changed a cpp macro that was meant to prevent using certain trsm_r code
  if BLIS_RELAX_MCNR_NCMR_CONSTRAINTS was defined. It was actually coded
  incorrectly at first. I've now fixed its location and changed its
  consequence to a compile-time #error message.
This commit is contained in:
Field G. Van Zee
2016-11-16 14:04:33 -06:00
parent 6b5a4032d2
commit 031978d264

View File

@@ -86,9 +86,6 @@ void bli_trsm_front
}
#if 0
// NOTE: Enabling this code requires that BLIS be configured with
// BLIS_RELAX_MCNR_NCMR_CONSTRAINTS defined.
#ifdef BLIS_RELAX_MCNR_NCMR_CONSTRAINTS
// If A is being solved against from the right, transpose all operands
// so that we can perform the computation as if A were being solved
@@ -101,9 +98,14 @@ void bli_trsm_front
bli_obj_induce_trans( c_local );
}
#endif
#else
// NOTE: Enabling this code requires that BLIS NOT be configured with
// BLIS_RELAX_MCNR_NCMR_CONSTRAINTS defined.
#ifdef BLIS_RELAX_MCNR_NCMR_CONSTRAINTS
#error "BLIS_RELAX_MCNR_NCMR_CONSTRAINTS must not be defined for current trsm_r implementation."
#endif
// If A is being solved against from the right, swap A and B so that
// the triangular matrix will actually be on the right.
if ( bli_is_right( side ) )