diff --git a/src/include/OSL/platform.h b/src/include/OSL/platform.h index e4f00a43d..2e72306f1 100644 --- a/src/include/OSL/platform.h +++ b/src/include/OSL/platform.h @@ -286,7 +286,7 @@ #define OSL_OMP_SIMD_LOOP(...) OSL_OMP_PRAGMA(omp simd __VA_ARGS__) -#if (OSL_GCCVERSION || OSL_INTEL_CLASSIC_COMPILER_VERSION || OSL_INTEL_LLVM_COMPILER_VERSION) +#if (OSL_GNUC_VERSION || OSL_INTEL_CLASSIC_COMPILER_VERSION || OSL_INTEL_LLVM_COMPILER_VERSION) # define OSL_OMP_COMPLEX_SIMD_LOOP(...) OSL_OMP_SIMD_LOOP(__VA_ARGS__) #else // Ignore requests to vectorize complex/nested SIMD loops for certain diff --git a/src/liboslexec/wide/wide_opcolor.cpp b/src/liboslexec/wide/wide_opcolor.cpp index ba347766c..330e01ef5 100644 --- a/src/liboslexec/wide/wide_opcolor.cpp +++ b/src/liboslexec/wide/wide_opcolor.cpp @@ -296,7 +296,7 @@ __OSL_MASKED_OP2(prepend_color_from, Wv, Ws)(void* bsg_, void* c_, void* from_, namespace { // Note: Clang 14 seems to no longer allow vectorizing these loops -#if ((OSL_GCCVERSION && OSL_CLANG_VERSION < 140000) \ +#if ((OSL_CLANG_VERSION && OSL_CLANG_VERSION < 140000) \ || OSL_INTEL_CLASSIC_COMPILER_VERSION || OSL_INTEL_LLVM_COMPILER_VERSION) # define WIDE_TRANSFORMC_OMP_SIMD_LOOP(...) OSL_OMP_SIMD_LOOP(__VA_ARGS__) #else