/home/sampsa/amd/torch-compile/pytorch-amd/third_party/fbgemm/src/FbgemmI8Spmdm.cc:188:41: error: variable length arrays in C++ are a Clang extension [-Werror,-Wvla-cxx-extension]
188 | alignas(64) uint8_t A_temp_buffer[K * 32];
I tried by adding -Wno-vla-extension -fms-extensions to the compiler command, but that did not help.
Should I just disable fbgemm then? I already disabled MKLDNN as there was no .-way to make it work with the clang-based hipcc compiler and OpenMP.
Now I’m not even sure if that was just a warning message… there was also problems in finding “.d” files. After disabling fbgemm, I am getting
error: error opening 'caffe2/CMakeFiles/torch_cpu.dir/__/aten/src/ATen/DLConvertor.cpp.o.d': No such file or directory
7 warnings and 3 errors generated when compiling for gfx906
At least that last error message disappeared when I switched to cmake version 3.26. Cmake 3.30+ & seem to create a broken build system with missing “.d” (build record) files. Quite diabolic.
To summarize: I disabled fbgemm and downgraded to cmake 3.26. Not sure if the first one was necessary… Problem solved.