Skip to content

Commit

Permalink
simplify with inline static
Browse files Browse the repository at this point in the history
  • Loading branch information
samayala22 committed Feb 8, 2024
1 parent cb061ac commit 643387c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
4 changes: 2 additions & 2 deletions vlm/backends/avx2/src/vlm_backend_avx2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ void BackendAVX2::compute_lhs(const FlowData& flow) {
auto wing_pass = taskflow.for_each_index(start_wing, end_wing, [&] (u32 i) {
macro_kernel_avx2<true>(m, lhs, i, i, sigma_p4);
macro_kernel_remainder_scalar<true>(m, lhs, i, i);
}, tf::GuidedPartitioner());
});

u32 idx = m.nc - 1;
auto cond = taskflow.emplace([&]{
Expand All @@ -298,7 +298,7 @@ void BackendAVX2::compute_lhs(const FlowData& flow) {
const u32 lidx = idx * m.ns + j;
macro_kernel_avx2<false>(m, lhs, ia, lidx, sigma_p4);
macro_kernel_remainder_scalar<false>(m, lhs, idx, idx);
}, tf::GuidedPartitioner());
});
auto back = taskflow.emplace([&]{
idx++;
return 0; // 0 means continue
Expand Down
2 changes: 1 addition & 1 deletion vlm/include/vlm_executor.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ namespace vlm {
return *_instance;
}
private:
static std::unique_ptr<tf::Executor> _instance;
inline static std::unique_ptr<tf::Executor> _instance;

Executor() = default;
~Executor() = default;
Expand Down
5 changes: 0 additions & 5 deletions vlm/src/vlm_executor.cpp

This file was deleted.

0 comments on commit 643387c

Please sign in to comment.