To receive notifications about scheduled maintenance, please subscribe to the mailing-list gitlab-operations@sympa.ethz.ch. You can subscribe to the mailing-list at https://sympa.ethz.ch

Commit 3301f9c6 authored by Donjan Rodic's avatar Donjan Rodic
Browse files

updated ex07 solution

parent 490aada8
CXX ?= c++
CXX ?= g++
CXXFLAGS ?= -std=c++14 -Wall -Wextra -Wpedantic -fopenmp -O3 -march=native -DNDEBUG
LIBS = -lblas
all: gemm
gemm: gemm.cpp matrix.hpp aligned_allocator.hpp
$(CXX) $(CXXFLAGS) gemm.cpp -o gemm $(LIBS)
$(CXX) $(CXXFLAGS) $< -o $@ $(LIBS)
......@@ -44,7 +44,7 @@ class aligned_allocator {
}
template <typename U>
aligned_allocator(aligned_allocator<U,Alignment> const& b) NOEXCEPT_SPEC {
aligned_allocator(aligned_allocator<U,Alignment> const&) NOEXCEPT_SPEC {
}
pointer allocate(size_type n) {
......@@ -89,21 +89,21 @@ class aligned_allocator {
c->~C();
}
bool operator == (aligned_allocator const& a2) const NOEXCEPT_SPEC {
bool operator == (aligned_allocator const&) const NOEXCEPT_SPEC {
return true;
}
bool operator != (aligned_allocator const& a2) const NOEXCEPT_SPEC {
bool operator != (aligned_allocator const&) const NOEXCEPT_SPEC {
return false;
}
template <typename U, unsigned int UAlignment>
bool operator == (aligned_allocator<U,UAlignment> const& b) const NOEXCEPT_SPEC {
bool operator == (aligned_allocator<U,UAlignment> const&) const NOEXCEPT_SPEC {
return false;
}
template <typename U, unsigned int UAlignment>
bool operator != (aligned_allocator<U,UAlignment> const& b) const NOEXCEPT_SPEC {
bool operator != (aligned_allocator<U,UAlignment> const&) const NOEXCEPT_SPEC {
return true;
}
};
......
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment