Skip to content

Commit 9d688a2

Browse files
committed
2 parents 7eb62ad + 9ab0d56 commit 9d688a2

File tree

5 files changed

+25
-13
lines changed

5 files changed

+25
-13
lines changed

.clang-format

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ BraceWrapping:
4444
SplitEmptyNamespace: false
4545
IndentBraces: false
4646

47-
SortIncludes: true
47+
SortIncludes: false
4848
SortUsingDeclarations: true
4949

5050
SpaceAfterCStyleCast: false

.vscode/extensions.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"recommendations": [
3+
"ms-vscode.cmake-tools", // For CMake
4+
"ms-vscode.cpptools-extension-pack", // For C++
5+
"13xforever.language-x86-64-assembly", // x86-64 Assembly
6+
"streetsidesoftware.code-spell-checker", // Avoid typos
7+
"aaron-bond.better-comments", // Color-coded comments
8+
"gkarlos.vscode-ptx-syntax", // PTX Assembly
9+
"dan-c-underwood.arm", // Arm Assembly
10+
"xaver.clang-format", // C++ code formatting
11+
]
12+
}

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ cmake_minimum_required(VERSION 3.16 FATAL_ERROR)
55
# Project Setup
66
# ------------------------------------------------------------------------------
77
project(less_slow
8-
VERSION 0.5.1
8+
VERSION 0.5.3
99
LANGUAGES C CXX ASM
1010
DESCRIPTION "Learning how to write Less Slow code, from numerical micro-kernels and SIMD to coroutines, ranges, and polymorphic state machines"
1111
HOMEPAGE_URL "https://github.com/ashvardanian/less_slow.cpp")

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.5.1
1+
0.5.3

less_slow.cpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1842,10 +1842,10 @@ BENCHMARK_CAPTURE(theoretic_tops, i7_amx_avx512, tops_i7_amx_avx512fma_asm_kerne
18421842
*/
18431843

18441844
#include <cassert> // `assert`
1845-
#include <fstream> // `std::ifstream`
1846-
#include <iterator> // `std::random_access_iterator_tag`
18471845
#include <memory> // `std::assume_aligned`, `std::unique_ptr`
18481846
#include <string> // `std::string`, `std::stoull`
1847+
#include <iterator> // `std::random_access_iterator_tag`
1848+
#include <fstream> // `std::ifstream`
18491849

18501850
/**
18511851
* @brief Reads the contents of a file from the specified path into a string.
@@ -2807,12 +2807,6 @@ static void pipeline_unifex(bm::State &state) {
28072807
BENCHMARK(pipeline_unifex);
28082808
#endif // TODO: UnifEx needs more work
28092809
#pragma endregion // Ranges and Iterators
2810-
#pragma region Variants, Tuples, and State Machines
2811-
2812-
#include <tuple> // `std::tuple`
2813-
#include <variant> // `std::variant`
2814-
2815-
#pragma endregion // Variants, Tuples, and State Machines
28162810

28172811
#pragma region Virtual Functions and Polymorphism
28182812

@@ -4360,6 +4354,12 @@ struct edge_t {
43604354
vertex_id_t from;
43614355
vertex_id_t to;
43624356
edge_weight_t weight;
4357+
4358+
//! NVCC's `std::construct_at` requires those default constructors
4359+
constexpr edge_t() noexcept = default;
4360+
constexpr edge_t(edge_t const &) noexcept = default;
4361+
constexpr edge_t(vertex_id_t from, vertex_id_t to, edge_weight_t weight) noexcept
4362+
: from(from), to(to), weight(weight) {}
43634363
};
43644364

43654365
static_assert( //
@@ -5055,9 +5055,9 @@ struct log_format_t {
50555055

50565056
#endif // defined(__cpp_lib_format)
50575057

5058-
#include <fmt/chrono.h> // formatting for `std::chrono` types
5059-
#include <fmt/compile.h> // compile-time format strings
50605058
#include <fmt/core.h> // `std::format_to_n`
5059+
#include <fmt/compile.h> // compile-time format strings
5060+
#include <fmt/chrono.h> // formatting for `std::chrono` types
50615061

50625062
struct log_fmt_t {
50635063
std::size_t operator()( //

0 commit comments

Comments
 (0)