Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add clang 13 to the CI #396

Merged
merged 2 commits into from
Oct 7, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@ jobs:
- name: build-ubuntu-clang12
env: {CXX: clang++-12, INSTALL_EXTRA: clang-12 libomp-12-dev}
add-llvm-repo: true
- name: build-ubuntu-clang13
env: {CXX: clang++-13, INSTALL_EXTRA: clang-13 libomp-13-dev}
add-llvm-repo: true
- name: build-ubuntu-icpx
env: {CXX: icpx}
intel: true
Expand All @@ -117,7 +120,9 @@ jobs:
if: ${{ matrix.add-llvm-repo }}
run: |
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key|sudo apt-key add -
sudo add-apt-repository 'deb http://apt.llvm.org/focal/ llvm-toolchain-focal main'
sudo add-apt-repository 'deb http://apt.llvm.org/focal/ llvm-toolchain-focal-12 main'
sudo add-apt-repository 'deb http://apt.llvm.org/focal/ llvm-toolchain-focal-13 main'
- name: install OneAPI
if: ${{ matrix.intel }}
run: |
Expand Down
5 changes: 3 additions & 2 deletions examples/viewcopy/viewcopy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,11 @@ auto memcpy_avx2(void* dst, const void* src, size_t n) noexcept -> void*
constexpr auto bytesPerIteration = 32 * unrollFactor;
while(n >= bytesPerIteration)
{
# ifndef __INTEL_LLVM_COMPILER
# if defined(__GNUC__) || defined(__clang__) || defined(__INTEL_LLVM_COMPILER)
# pragma GCC unroll unrollFactor
# else
# pragma unroll
# endif
# pragma GCC unroll unrollFactor
for(auto i = 0; i < unrollFactor; i++)
_mm256_stream_si256(
reinterpret_cast<__m256i*>(d) + i,
Expand Down