blis icon indicating copy to clipboard operation
blis copied to clipboard

fatal error: malloc.h: No such file or directory

Open AmperesAvengement opened this issue 2 years ago • 2 comments

I ran into a build issue using GCC on Linux in which the compiler attempts to include malloc.h, despite it being replaced by stdlib.h.

I was able to fix it by changing

#include "malloc.h"

to

#if defined(_WIN32) || defined(__llvm__) || defined(_LIBC_)
#include "malloc.h"
#endif

in aocl_dtl/aoclos.h

AmperesAvengement avatar Nov 01 '23 16:11 AmperesAvengement

@BhaskarNallani @kvaragan In case you haven't seen this yet... Looks like an issue with the AMD fork of BLIS.

fgvanzee avatar Dec 12 '23 19:12 fgvanzee

Hi @AmperesAvengement , which gcc version used ? .Did you try this fork: https://github.com/amd/blis ?

kvaragan avatar Dec 13 '23 06:12 kvaragan