Skip to content

Commit

Permalink
drop support for Intel's classic compiler (icp)
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhardmgruber authored and j-stephan committed Aug 31, 2021
1 parent cdaa6dc commit be4ab17
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 15 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,6 @@ jobs:
- name: build-ubuntu-clang12
env: {CXX: clang++-12, INSTALL_EXTRA: clang-12 libomp-12-dev}
add-llvm-repo: true
- name: build-ubuntu-icpc
env: {CXX: icpc}
intel: true
- name: build-ubuntu-icpx
env: {CXX: icpx}
intel: true
Expand Down
3 changes: 0 additions & 3 deletions include/llama/BlobAllocators.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@
#include <cstddef>
#include <memory>
#include <vector>
#ifdef __INTEL_COMPILER
# include <aligned_new>
#endif
#if defined(_LIBCPP_VERSION) && _LIBCPP_VERSION < 11000
# include <boost/shared_ptr.hpp>
#endif
Expand Down
3 changes: 0 additions & 3 deletions include/llama/Tuple.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ namespace llama
{
}

// icpc fails to compile the treemap tests with this ctor
#ifndef __INTEL_COMPILER
/// Construct a tuple from forwarded values of potentially different types as the tuple stores.
// SFINAE away this ctor if tuple elements cannot be constructed from ctor arguments
template<
Expand All @@ -46,7 +44,6 @@ namespace llama
, rest(std::forward<Ts>(restArgs)...)
{
}
#endif

FirstElement first; ///< the first element (if existing)
#ifndef __NVCC__
Expand Down
14 changes: 8 additions & 6 deletions include/llama/macros.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@

#pragma once

#if defined(__INTEL_COMPILER) || defined(__INTEL_LLVM_COMPILER)
#ifdef __INTEL_COMPILER
# error LLAMA has stopped supporting the Intel Classic Compiler after Intel announced its planned deprecation and replacement by the Intel LLVM-based compiler. Please migrate to Intel's LLVM-based compiler.
#endif

#if defined(__INTEL_LLVM_COMPILER)
# define LLAMA_INDEPENDENT_DATA _Pragma("ivdep")
#elif defined(__clang__)
# define LLAMA_INDEPENDENT_DATA _Pragma("clang loop vectorize(assume_safety) interleave(assume_safety)")
Expand All @@ -28,7 +32,7 @@
# define LLAMA_FN_HOST_ACC_INLINE __host__ __device__ __forceinline__
# elif defined(__GNUC__) || defined(__clang__)
# define LLAMA_FN_HOST_ACC_INLINE inline __attribute__((always_inline))
# elif defined(_MSC_VER) || defined(__INTEL_COMPILER) || defined(__INTEL_LLVM_COMPILER)
# elif defined(_MSC_VER) || defined(__INTEL_LLVM_COMPILER)
# define LLAMA_FN_HOST_ACC_INLINE __forceinline
# else
/// Some offloading parallelization language extensions such a CUDA, OpenACC or OpenMP 4.5 need to specify whether a
Expand All @@ -44,7 +48,7 @@
#ifndef LLAMA_LAMBDA_INLINE_WITH_SPECIFIERS
# if defined(__clang__) || defined(__INTEL_LLVM_COMPILER)
# define LLAMA_LAMBDA_INLINE_WITH_SPECIFIERS(...) __attribute__((always_inline)) __VA_ARGS__
# elif defined(__GNUC__) || defined(__INTEL_COMPILER) || (defined(__NVCC__) && !defined(_MSC_VER))
# elif defined(__GNUC__) || (defined(__NVCC__) && !defined(_MSC_VER))
# define LLAMA_LAMBDA_INLINE_WITH_SPECIFIERS(...) __VA_ARGS__ __attribute__((always_inline))
# elif defined(_MSC_VER)
# define LLAMA_LAMBDA_INLINE_WITH_SPECIFIERS(...) \
Expand All @@ -66,9 +70,7 @@
# define LLAMA_SUPPRESS_HOST_DEVICE_WARNING
#endif

#if defined(__INTEL_COMPILER) /*|| defined(__INTEL_LLVM_COMPILER)*/
# define LLAMA_FORCE_INLINE_RECURSIVE _Pragma("forceinline recursive")
#elif defined(_MSC_VER)
#if defined(_MSC_VER)
# define LLAMA_FORCE_INLINE_RECURSIVE __pragma(inline_depth(255))
#else
/// Forces the compiler to recursively inline the call hiearchy started by the subsequent function call.
Expand Down

0 comments on commit be4ab17

Please sign in to comment.