Skip to content

Commit 0acd5ca

Browse files
authored
Merge pull request #446 from serge-sans-paille/feature/test-clang-avx512
Enable testing with clang on AVX512
2 parents 822b4bb + eb7ff4f commit 0acd5ca

File tree

3 files changed

+9
-10
lines changed

3 files changed

+9
-10
lines changed

.azure-pipelines/azure-pipelines-linux-clang.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,9 @@ jobs:
2727
llvm_version: '8'
2828
clang_9:
2929
llvm_version: '9'
30-
clang_10:
30+
clang_10_avx512:
3131
llvm_version: '10'
32+
avx512: 1
3233
pool:
3334
vmImage: ubuntu-16.04
3435
variables:

.azure-pipelines/unix-build.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,8 @@ steps:
77
if [[ $(enable_xtl_complex) == 1 ]]; then
88
conda install xtl -c conda-forge
99
fi
10-
if [[ $(avx512) == 1 ]]; then
11-
conda install gcc_linux-64 gxx_linux-64;
12-
sh $(Build.SourcesDirectory)/install_sde.sh;
10+
if test "x$(avx512)" = "x1" ; then
11+
sh $(Build.SourcesDirectory)/install_sde.sh
1312
fi
1413
displayName: Install dependencies
1514
workingDirectory: $(Build.BinariesDirectory)
@@ -33,7 +32,7 @@ steps:
3332
CMAKE_EXTRA_ARGS="$CMAKE_EXTRA_ARGS -DENABLE_FALLBACK=ON";
3433
fi
3534
if [[ $(avx512) == 1 ]]; then
36-
CMAKE_EXTRA_ARGS="$CMAKE_EXTRA_ARGS -DTARGET_ARCH=skylake-avx512";
35+
CMAKE_EXTRA_ARGS="$CMAKE_EXTRA_ARGS -DTARGET_ARCH=skylake-avx512"
3736
fi
3837
if [[ $(force_no_instr_set) == 1 ]]; then
3938
CMAKE_EXTRA_ARGS="$CMAKE_EXTRA_ARGS -DXSIMD_FORCE_X86_INSTR_SET=0 -DXSIMD_FORCE_X86_AMD_INSTR_SET=0";
@@ -52,14 +51,13 @@ steps:
5251
- script: |
5352
source activate xsimd
5453
if [[ $(avx512) == 1 ]]; then
55-
../../sde-external-8.56.0-2020-07-05-lin/sde64 -skx -- ./test_xsimd ;
54+
../../sde-external-8.56.0-2020-07-05-lin/sde64 -skx -- ./test_xsimd
5655
elif [[ $(cross_compile) == 1 ]]; then
5756
echo $(arm_arch_dir);
5857
if [[ $(arm_arch_dir) == 'aarch64-linux-gnu' ]]; then
59-
ls /usr/aarch64-linux-gnu/ ;
60-
qemu-aarch64 -L /usr/aarch64-linux-gnu/ ./test_xsimd ;
58+
qemu-aarch64 -L /usr/aarch64-linux-gnu/ ./test_xsimd
6159
else
62-
qemu-arm -L /usr/arm-linux-gnueabi/ ./test_xsimd ;
60+
qemu-arm -L /usr/arm-linux-gnueabi/ ./test_xsimd
6361
fi
6462
else
6563
./test_xsimd

include/xsimd/types/xsimd_avx512_bool.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ namespace xsimd
229229
template <class... Args>
230230
inline T& batch_bool_avx512<MASK, T>::load_values(Args... b)
231231
{
232-
return load_array({b...});
232+
return load_array({{b...}});
233233
}
234234

235235
namespace detail

0 commit comments

Comments
 (0)