39 plasma_error(
"plasma_alloc_ibnb",
"plasma_tune() failed");
45 MT = (M%NB==0) ? (M/NB) : (M/NB+1);
46 NT = (N%NB==0) ? (N/NB) : (N/NB+1);
66 *memptr = malloc(size);
68 if (*memptr == NULL) {
69 plasma_error(
"plasma_alloc_ibnb_tile",
"malloc() failed");
92 plasma_error(
"plasma_alloc_ibnb_tile",
"plasma_tune() failed");
99 MT = (M%NB==0) ? (M/NB) : (M/NB+1);
100 NT = (N%NB==0) ? (N/NB) : (N/NB+1);
117 plasma_error(
"plasma_alloc_ibnb_tile",
"malloc() failed");
120 **desc =
plasma_desc_init(type, IB, NB, IB*NB, MT*IB, NT*NB, 0, 0, MT*IB, NT*NB);
124 plasma_error(
"plasma_alloc_ibnb_tile",
"malloc() failed");
131 plasma_error(
"plasma_alloc_ibnb_tile",
"invalid descriptor");
148 if (plasma == NULL) {
155 plasma_error(
"plasma_alloc_ipiv",
"plasma_tune() failed");
160 NT = (N%NB==0) ? (N/NB) : ((N/NB)+1);
161 MT = (M%NB==0) ? (M/NB) : ((M/NB)+1);
162 size = (size_t)MT*NT * NB *
sizeof(
int);
168 *memptr = malloc(size);
170 if (*memptr == NULL) {
199 if (plasma == NULL) {
203 if (*handle == NULL) {
204 plasma_error(
"PLASMA_Dealloc_Handle",
"attempting to deallocate a NULL handle");
234 if (plasma == NULL) {
239 plasma_error(
"PLASMA_Dealloc_Handle_Tile",
"attempting to deallocate a NULL descriptor");
242 if ((*desc)->mat == NULL) {
243 plasma_error(
"PLASMA_Dealloc_Handle_Tile",
"attempting to deallocate a NULL pointer");