Skip to content

Commit

Permalink
disable multi-threading for icpc 12 and 13
Browse files Browse the repository at this point in the history
Patch: Jae-hyeon and Alex
  • Loading branch information
Alexander Voigt authored and Alexander Voigt committed Jan 7, 2015
1 parent 2aa21db commit 78d73e7
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions configure
Expand Up @@ -1240,6 +1240,27 @@ check_cxx_compiler_version() {
logmsg " $CXX version found: $cxx_compiler_version"
}

#_____________________________________________________________________
check_icpc_features() {
local compiler="$1"
local version="$2"

checking_msg "$compiler compiler features"

local major minor patch
split_version "$version" major minor patch

# disable multi-threading for versions < 14.0.0
if ! major_minor_patch_at_least $major $minor $patch "14" "0" "0" &&
[ "$enable_threads" = "yes" ]; then
message ""
message " Warning: multi-threading support requires $compiler 14.0.0 or newer."
enable_threads="no"
else
result "ok"
fi
}

#_____________________________________________________________________
check_cxx_dep_gen_type() {
checking_msg "type of C++ file dependency generator ${CXX_DEP_GEN}"
Expand Down Expand Up @@ -1359,6 +1380,13 @@ get_icpc_version() {
eval "$ret_var=\"$version\""
}

#_____________________________________________________________________
check_cxx_compiler_features() {
case "$cxx_compiler_type" in
intel) check_icpc_features "$CXX" "$cxx_compiler_version" ;;
esac
}

#_____________________________________________________________________
get_clang_version() {
if test $# -ne 2; then
Expand Down Expand Up @@ -2226,6 +2254,7 @@ if test "x${enable_compile}" = "xyes"; then
check_cxx
check_cxx_compiler_type
check_cxx_compiler_version
check_cxx_compiler_features
check_cxxflags
check_cxx_dep_gen
check_cxx_dep_gen_type
Expand Down

0 comments on commit 78d73e7

Please sign in to comment.