Subject: CGAL users discussion list
List archive
- From: Andrew Cunningham <>
- To:
- Subject: Re: [cgal-discuss] Advice with Intel compilers
- Date: Wed, 9 Dec 2020 07:13:34 -0800
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=None ; spf=None
- Ironport-phdr: 9a23:j+lOLR3PjMpbeJ3qsmDT+DRfVm0co7zxezQtwd8ZseMRKfad9pjvdHbS+e9qxAeQG9mCtLQd1Lqd7vmocFdDyK7JiGoFfp1IWk1NouQttCtkPvS4D1bmJuXhdS0wEZcKflZk+3amLRodQ56mNBXdrXKo8DEdBAj0OxZrKeTpAI7SiNm82/yv95HJbAhEmTiwbalvIBi0rgjduckbjZZ/Iast1xXFpWdFdf5Lzm1yP1KTmBj85sa0/JF99ilbpuws+c1dX6jkZqo0VbNXAigoPGAz/83rqALMTRCT6XsGU2UZiQRHDg7Y5xznRJjxsy/6tu1g2CmGOMD9UL45VSi+46ptVRTljjoMOTwk/2HNksF/g6xbrxChqRJxwIDafZ+bO+ZxcK7GYdMaXHBMUtpNWyBdAI6xaZYEAeobPeZfqonwv0cDrR2jCgm2GuzuxCJDi2Hr3a081eQhEAfG3AMgH90UtXTfsdL4O7sdUe+vyKnF1i/MY+pK1jfg7ojIdBEhofeDXbJwa8XRzFMjGB/CjlWVsIHoOS6e2esRvWaB9eVgSf6vhHA9qwF3ujWiyccih4fHiI8Vyl7K+id0zYUoKdClSEB1YdCqHZ9fuiyUOYV7TcwvTm9qtSsnxbALp5q2cTYUxZg62xPSaP2Kfo6V6RztU+aRJC13hHNjeL+nhhay91KgyuzmWcWu3lZKtCxImcTPuHAVzxHf9NSLR/9n8kqi2TuDzR7f5v1HLEwumqfWL5gsyaMqmJUJq0TMBCr2lV32jKCIckUk/fCl6+H9bbXnop+QLpF7hRzjPqg3lMyyDuA1PhIBX2ic/uS827nj8lPjTLpWif02l7HVsJHcJcsFuq60GxFZ3pon5hqlDDqr0M4UkWcbIF9GYh6KgIzkN0nLIP/iDPe/h1qskC1sx/DDJrDuGIjCLn3CkLfnZrty8VdQxxYuzdBZ4ZJUC7cBIP3zWkDrsdzUFAM2Mwuxw+r/EtVyypseWX6TAq+eKK7drVCI6fgrI+WVeYAVuS39JOQ45/71ln80gkQdfKms3ZsPcn+0BPVmI0ODYXrtmNgNC2kKvhBtBNHsk0CIBD5Pe26pDeV7/SA+EIvgDIHZR4nrjqbGxza+BpQRZ2ZIDReHHn7sMomFQPwRcznBH8l6jzY4WKi9Ho89yQm15ki90KtiNuOS+ysCtJul2sIy/PzWjRh19Dp6CIOW3GiJCm11hWgVXCRl4KcqqkN0zhKP0LNznudDPd1V/fJAFAkgZrDGyOkvItb+QA/eNvyUTlCnRNqmCDR5Gtk+ytsmagN2BtOkjxbM3yOvRbQSkurYV9QP7qvA0i2pdI5GwHHc2fx51gh0co50LWSjw5VH2U3WDo/NnV+ekv/6J61Z1zPL8maFwmqHuQdTVwsiCfyZD0BaXVPfqJHC3m2HV6WnUOR1O05K1MiEK61FatTsy15BQaW7YYmMUyeKg261QC2w6PaMYY7tIThP2SzcDA0Jn1lW8yrXcwc5ASilriTVCzk8TV8=
Hi AAron,
We use Intel Compiler 19.1 Update 4 with CGAL on both Linux (GCC 8)
and Windows ( Visual Studio 2019 16.7.5).
We needed to put the code below in the first few lines of the .cxx
files that use CGAL.
The problems are not arguably caused by "bugs" in the Intel Compiler.
I would argue it is questionable CGAL C++ headers. For example
__cpp_lib_is_swappable is a C++20 feature not a C++17 feature though
some compilers support it in C++17.
#include <type_traits>
#include <CGAL/FPU.h>
#ifdef __INTEL_COMPILER
# ifdef __cpp_lib_is_swappable
# undef __cpp_lib_is_swappable
# endif
# ifdef _MSC_VER
# ifdef CGAL_BUG_SQRT
# undef CGAL_BUG_SQRT
# define CGAL_BUG_SQRT( d ) std::sqrt ( d )
# endif
# endif
#endif
On Tue, Dec 8, 2020 at 3:07 PM Aaron Smith <> wrote:
>
> Hi cgal-discuss,
>
> I am new to this list so first of all thanks for the library. I have been
> using CGAL to build Voronoi tessellations in one of my academic research
> codes. This works well with gcc and clang compilers, but when I try to use
> intel compilers on some supercomputers I get errors like the ones shown
> below (for example). I have success with Intel on 1 supercomputer but get
> these errors on 3 others. Is this a known issue? Am I missing something or
> is Intel not expected to be supported?
>
> Note: CGAL version 5.1.1 and Intel 19 on linux (but no root access)
> systems. Installing headers locally and including via Makefile (not from
> CMake). I am using -std=c++17
>
> Thanks,
> Aaron
>
> —
>
> local/include/CGAL/Kernel/hash_functions.h(25): error: namespace "std" has
> no member "enable_if_t"
> inline std::enable_if_t<std::is_same<typename K::Rep_tag,
> Cartesian_tag>::value, std::size_t>
> ^
>
> In file included from local/include/CGAL/Kernel/global_functions.h(25),
> from local/include/CGAL/Cartesian/Cartesian_base.h(22),
> from local/include/CGAL/Simple_cartesian.h(20),
> from
> local/include/CGAL/Exact_predicates_inexact_constructions_kernel.h(20),
> from src/geometry/cgal.h(16),
> from src/geometry/cgal.cc(13):
> local/include/CGAL/Kernel/hash_functions.h(25): error: expected a ";"
> inline std::enable_if_t<std::is_same<typename K::Rep_tag,
> Cartesian_tag>::value, std::size_t>
> ^
>
> In file included from local/include/CGAL/Kernel/global_functions.h(25),
> from local/include/CGAL/Cartesian/Cartesian_base.h(22),
> from local/include/CGAL/Simple_cartesian.h(20),
> from
> local/include/CGAL/Exact_predicates_inexact_constructions_kernel.h(20),
> from src/geometry/cgal.h(16),
> from src/geometry/cgal.cc(13):
> local/include/CGAL/Kernel/hash_functions.h(195): error: no instance of
> overloaded function "CGAL::hash_value" matches the argument list
> argument types are: (const CGAL::Bbox_2)
> return CGAL::hash_value (bbox);
> ^
> local/include/CGAL/Kernel/hash_functions.h(22): note: this candidate was
> rejected because at least one template argument could not be deduced
> using boost::hash_value;
> ^
>
> --
> You are currently subscribed to cgal-discuss.
> To unsubscribe or access the archives, go to
> https://sympa.inria.fr/sympa/info/cgal-discuss
>
- [cgal-discuss] Advice with Intel compilers, Aaron Smith, 12/09/2020
- Re: [cgal-discuss] Advice with Intel compilers, Sebastien Loriot, 12/09/2020
- Re: [cgal-discuss] Advice with Intel compilers, Marc Glisse, 12/09/2020
- Re: [cgal-discuss] Advice with Intel compilers, Andrew Cunningham, 12/09/2020
- Re: [cgal-discuss] Advice with Intel compilers, Sebastien Loriot, 12/09/2020
Archive powered by MHonArc 2.6.19+.