My hardware supports instruction sets. It can run without adding a return value, but when adding one, it throws an error Illegal instruction (core dumped).
Makefile is as follows:
CC = icc
CFLAGS = -g -march=native -mgfni -mavx512f
$(BIN): $(OBJS)
$(CC) $(CFLAGS) -o $(BIN) $(OBJS)
.c.o:
$(CC) $(CFLAGS) -c $< -o $@
clean:
rm -f $(OBJS) $(BIN)
I have tried many examples, but they all result in errors. For example, https://github.com/WojciechMula/toys/tree/master/avx512-galois.