devinamatthews / tblis

TBLIS is a library and framework for performing tensor operations, especially tensor contraction, using efficient native algorithms.
BSD 3-Clause "New" or "Revised" License
114 stars 29 forks source link

Compiler vendor not detected properly when using conda tools #46

Open marcinz opened 2 years ago

marcinz commented 2 years ago

This is a repeat of #43 unfortunately. Conda has changed the version string on its compiler again:

$ $CC --version
x86_64-conda-linux-gnu-cc (conda-forge 11.2.0-15) 11.2.0
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

This time, there is no GCC in the string, upper or lower case.

marcinz commented 2 years ago

I am wondering if it would make sense to use ax_compiler_vendor?

devinamatthews commented 2 years ago

Thanks for the suggestion @marcinz. I will make a simple patch for now (same comment applies as in #45), but I'll raise this suggestion in BLIS.

devinamatthews commented 2 years ago

@marcinz please try 7d979b6.

isuruf commented 2 years ago

We are going to change the version string to x86_64-conda-linux-gnu-cc (conda-forge gcc 11.2.0-15) 11.2.0. Sorry about the change.