Skip to content

Commit

Permalink
Merge pull request #90 from harold-b/v1.1.0
Browse files Browse the repository at this point in the history
v1.1.0
- Output buffering has been disabled (thanks @mocksoul)
- Phase 1 sorting has been optimized with performance boost on average of 20 seconds+
- Allow displaying memo with the `--show-memo` switch.
- Specify a memo for debugging with the `--memo` switch.
- Disable automatic CPU affinity with the `--no-cpu-affinity`  switch. See `bladebit --help` for more info on what this might be used for.
  • Loading branch information
harold-b authored Sep 12, 2021
2 parents f3fbfff + 83fd46e commit b48f262
Show file tree
Hide file tree
Showing 44 changed files with 1,928 additions and 67 deletions.
6 changes: 6 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -120,12 +120,18 @@
// ,"-t", "32"

],

"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"setupCommands": [
// {
// "description": "Set scheduler locking to step",
// "ignoreFailures": false,
// "text": "set scheduler-locking step"
// },
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
Expand Down
24 changes: 21 additions & 3 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
"nominmax"
],
"files.associations": {
"*.sd": "yaml",
"*.userprefs": "xml",
"Fastfile": "ruby",
"*.plist": "xml",
"*.sd": "yaml",
"*.json": "jsonc",
"*.ir": "llvm",
"*.qs": "javascript",
"*.ac": "shellscript",
"player": "json",
"*.userprefs": "xml",
"memory": "cpp",
"cstddef": "cpp",
"string": "cpp",
Expand Down Expand Up @@ -81,7 +81,25 @@
"complex": "cpp",
"forward_list": "cpp",
"typeindex": "cpp",
"valarray": "cpp"
"valarray": "cpp",
"__bit_reference": "cpp",
"__config": "cpp",
"__debug": "cpp",
"__errc": "cpp",
"__functional_base": "cpp",
"__hash_table": "cpp",
"__locale": "cpp",
"__mutex_base": "cpp",
"__node_handle": "cpp",
"__nullptr": "cpp",
"__split_buffer": "cpp",
"__string": "cpp",
"__threading_support": "cpp",
"__tree": "cpp",
"__tuple": "cpp",
"ios": "cpp",
"locale": "cpp",
"stack": "cpp"
},
"cSpell.words": [
"Ryzen"
Expand Down
11 changes: 11 additions & 0 deletions bladebit.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@
<ItemGroup>
<!-- ClInclude's -->
<ClInclude Include="src\algorithm\RadixSort.h"/>
<ClInclude Include="src\algorithm\YSort.h"/>
<ClInclude Include="src\b3\blake3_impl.h"/>
<ClInclude Include="src\b3\blake3.h"/>
<ClInclude Include="src\bech32\segwit_addr.h"/>
Expand Down Expand Up @@ -260,10 +261,12 @@
<ClInclude Include="src\Types.h"/>
<ClInclude Include="src\Util.h"/>
<ClInclude Include="src\util\Log.h"/>
<ClInclude Include="src\Version.h"/>
<ClInclude Include="src\View.h"/>
</ItemGroup>
<ItemGroup>
<!-- ClCompile's -->
<ClCompile Include="src\algorithm\YSort.cpp"/>
<ClCompile Include="src\b3\blake3_avx2.c">
<ExcludedFromBuild Condition="'$(Configuration)'=='release'">true</ExcludedFromBuild>
<ExcludedFromBuild Condition="'$(Configuration)'=='debug'">true</ExcludedFromBuild>
Expand Down Expand Up @@ -344,6 +347,12 @@
<ExcludedFromBuild Condition="'$(Configuration)'=='debug.arm'">true</ExcludedFromBuild>
<ExcludedFromBuild Condition="'$(Configuration)'=='release.arm'">true</ExcludedFromBuild>
</ClCompile>
<ClCompile Include="src\test\test_numa_sort.cpp">
<ExcludedFromBuild Condition="'$(Configuration)'=='release'">true</ExcludedFromBuild>
<ExcludedFromBuild Condition="'$(Configuration)'=='debug'">true</ExcludedFromBuild>
<ExcludedFromBuild Condition="'$(Configuration)'=='debug.arm'">true</ExcludedFromBuild>
<ExcludedFromBuild Condition="'$(Configuration)'=='release.arm'">true</ExcludedFromBuild>
</ClCompile>
<ClCompile Include="src\threading\Semaphore.cpp"/>
<ClCompile Include="src\threading\Thread.cpp"/>
<ClCompile Include="src\threading\ThreadPool.cpp"/>
Expand Down Expand Up @@ -417,6 +426,7 @@
<ClInclude Include="lib/include/relic/relic_util.h"/>
<ClInclude Include="lib/include/relic/relic.h"/>
<ClInclude Include="src/algorithm/RadixSort.h"/>
<ClInclude Include="src/algorithm/YSort.h"/>
<ClInclude Include="src/b3/blake3_impl.h"/>
<ClInclude Include="src/b3/blake3.h"/>
<ClInclude Include="src/bech32/segwit_addr.h"/>
Expand Down Expand Up @@ -455,6 +465,7 @@
<ClInclude Include="src/Types.h"/>
<ClInclude Include="src/Util.h"/>
<ClInclude Include="src/util/Log.h"/>
<ClInclude Include="src/Version.h"/>
<ClInclude Include="src/View.h"/>
</ItemGroup>

Expand Down
18 changes: 18 additions & 0 deletions bladebit.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@
<ClInclude Include="src\algorithm\RadixSort.h">
<Filter>src\algorithm</Filter>
</ClInclude>
<ClInclude Include="src\algorithm\YSort.h">
<Filter>src\algorithm</Filter>
</ClInclude>
<ClInclude Include="src\b3\blake3_impl.h">
<Filter>src\b3</Filter>
</ClInclude>
Expand Down Expand Up @@ -213,6 +216,9 @@
<ClInclude Include="src\util\Log.h">
<Filter>src\util</Filter>
</ClInclude>
<ClInclude Include="src\Version.h">
<Filter>src</Filter>
</ClInclude>
<ClInclude Include="src\View.h">
<Filter>src</Filter>
</ClInclude>
Expand Down Expand Up @@ -348,6 +354,9 @@
<ClInclude Include="src/algorithm/RadixSort.h">
<Filter>src/algorithm</Filter>
</ClInclude>
<ClInclude Include="src/algorithm/YSort.h">
<Filter>src/algorithm</Filter>
</ClInclude>
<ClInclude Include="src/b3/blake3_impl.h">
<Filter>src/b3</Filter>
</ClInclude>
Expand Down Expand Up @@ -462,11 +471,17 @@
<ClInclude Include="src/util/Log.h">
<Filter>src/util</Filter>
</ClInclude>
<ClInclude Include="src/Version.h">
<Filter>src</Filter>
</ClInclude>
<ClInclude Include="src/View.h">
<Filter>src</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<ClCompile Include="src\algorithm\YSort.cpp">
<Filter>src\algorithm</Filter>
</ClCompile>
<ClCompile Include="src\b3\blake3_avx2.c">
<Filter>src\b3</Filter>
</ClCompile>
Expand Down Expand Up @@ -557,6 +572,9 @@
<ClCompile Include="src\test\test_main.cpp">
<Filter>src\test</Filter>
</ClCompile>
<ClCompile Include="src\test\test_numa_sort.cpp">
<Filter>src\test</Filter>
</ClCompile>
<ClCompile Include="src\threading\Semaphore.cpp">
<Filter>src\threading</Filter>
</ClCompile>
Expand Down
1 change: 1 addition & 0 deletions builds/linux/debug.arm.mk
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# Autogenerated by psync 1.2.0

SOURCES += \
src/algorithm/YSort.cpp \
src/b3/blake3_dispatch.c \
src/b3/blake3_portable.c \
src/b3/blake3.c \
Expand Down
1 change: 1 addition & 0 deletions builds/linux/debug.mk
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# Autogenerated by psync 1.2.0

SOURCES += \
src/algorithm/YSort.cpp \
src/b3/blake3_avx2_x86-64_unix.S \
src/b3/blake3_avx512_x86-64_unix.S \
src/b3/blake3_dispatch.c \
Expand Down
2 changes: 2 additions & 0 deletions builds/linux/debug.test.mk
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# Autogenerated by psync 1.2.0

SOURCES += \
src/algorithm/YSort.cpp \
src/b3/blake3_avx2_x86-64_unix.S \
src/b3/blake3_avx512_x86-64_unix.S \
src/b3/blake3_dispatch.c \
Expand Down Expand Up @@ -29,6 +30,7 @@ SOURCES += \
src/pos/chacha8.cpp \
src/SysHost.cpp \
src/test/test_main.cpp \
src/test/test_numa_sort.cpp \
src/threading/Semaphore.cpp \
src/threading/Thread.cpp \
src/threading/ThreadPool.cpp \
Expand Down
1 change: 1 addition & 0 deletions builds/linux/release.arm.mk
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# Autogenerated by psync 1.2.0

SOURCES += \
src/algorithm/YSort.cpp \
src/b3/blake3_dispatch.c \
src/b3/blake3_portable.c \
src/b3/blake3.c \
Expand Down
1 change: 1 addition & 0 deletions builds/linux/release.mk
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# Autogenerated by psync 1.2.0

SOURCES += \
src/algorithm/YSort.cpp \
src/b3/blake3_avx2_x86-64_unix.S \
src/b3/blake3_avx512_x86-64_unix.S \
src/b3/blake3_dispatch.c \
Expand Down
2 changes: 2 additions & 0 deletions builds/linux/release.test.mk
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# Autogenerated by psync 1.2.0

SOURCES += \
src/algorithm/YSort.cpp \
src/b3/blake3_avx2_x86-64_unix.S \
src/b3/blake3_avx512_x86-64_unix.S \
src/b3/blake3_dispatch.c \
Expand Down Expand Up @@ -29,6 +30,7 @@ SOURCES += \
src/pos/chacha8.cpp \
src/SysHost.cpp \
src/test/test_main.cpp \
src/test/test_numa_sort.cpp \
src/threading/Semaphore.cpp \
src/threading/Thread.cpp \
src/threading/ThreadPool.cpp \
Expand Down
1 change: 1 addition & 0 deletions builds/macos/debug.arm.mk
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# Autogenerated by psync 1.2.0

SOURCES += \
src/algorithm/YSort.cpp \
src/b3/blake3_dispatch.c \
src/b3/blake3_portable.c \
src/b3/blake3.c \
Expand Down
1 change: 1 addition & 0 deletions builds/macos/debug.mk
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# Autogenerated by psync 1.2.0

SOURCES += \
src/algorithm/YSort.cpp \
src/b3/blake3_avx2_x86-64_unix.S \
src/b3/blake3_avx512_x86-64_unix.S \
src/b3/blake3_dispatch.c \
Expand Down
2 changes: 2 additions & 0 deletions builds/macos/debug.test.mk
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# Autogenerated by psync 1.2.0

SOURCES += \
src/algorithm/YSort.cpp \
src/b3/blake3_avx2_x86-64_unix.S \
src/b3/blake3_avx512_x86-64_unix.S \
src/b3/blake3_dispatch.c \
Expand Down Expand Up @@ -29,6 +30,7 @@ SOURCES += \
src/pos/chacha8.cpp \
src/SysHost.cpp \
src/test/test_main.cpp \
src/test/test_numa_sort.cpp \
src/threading/Semaphore.cpp \
src/threading/Thread.cpp \
src/threading/ThreadPool.cpp \
Expand Down
1 change: 1 addition & 0 deletions builds/macos/release.arm.mk
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# Autogenerated by psync 1.2.0

SOURCES += \
src/algorithm/YSort.cpp \
src/b3/blake3_dispatch.c \
src/b3/blake3_portable.c \
src/b3/blake3.c \
Expand Down
1 change: 1 addition & 0 deletions builds/macos/release.mk
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# Autogenerated by psync 1.2.0

SOURCES += \
src/algorithm/YSort.cpp \
src/b3/blake3_avx2_x86-64_unix.S \
src/b3/blake3_avx512_x86-64_unix.S \
src/b3/blake3_dispatch.c \
Expand Down
2 changes: 2 additions & 0 deletions builds/macos/release.test.mk
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# Autogenerated by psync 1.2.0

SOURCES += \
src/algorithm/YSort.cpp \
src/b3/blake3_avx2_x86-64_unix.S \
src/b3/blake3_avx512_x86-64_unix.S \
src/b3/blake3_dispatch.c \
Expand Down Expand Up @@ -29,6 +30,7 @@ SOURCES += \
src/pos/chacha8.cpp \
src/SysHost.cpp \
src/test/test_main.cpp \
src/test/test_numa_sort.cpp \
src/threading/Semaphore.cpp \
src/threading/Thread.cpp \
src/threading/ThreadPool.cpp \
Expand Down
1 change: 1 addition & 0 deletions builds/win32/debug.arm.mk
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# Autogenerated by psync 1.2.0

SOURCES += \
src/algorithm/YSort.cpp \
src/b3/blake3_dispatch.c \
src/b3/blake3_portable.c \
src/b3/blake3.c \
Expand Down
1 change: 1 addition & 0 deletions builds/win32/debug.mk
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# Autogenerated by psync 1.2.0

SOURCES += \
src/algorithm/YSort.cpp \
src/b3/blake3_avx2_x86-64_unix.S \
src/b3/blake3_avx512_x86-64_unix.S \
src/b3/blake3_dispatch.c \
Expand Down
2 changes: 2 additions & 0 deletions builds/win32/debug.test.mk
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# Autogenerated by psync 1.2.0

SOURCES += \
src/algorithm/YSort.cpp \
src/b3/blake3_avx2_x86-64_unix.S \
src/b3/blake3_avx512_x86-64_unix.S \
src/b3/blake3_dispatch.c \
Expand All @@ -28,6 +29,7 @@ SOURCES += \
src/pos/chacha8.cpp \
src/SysHost.cpp \
src/test/test_main.cpp \
src/test/test_numa_sort.cpp \
src/threading/Semaphore.cpp \
src/threading/Thread.cpp \
src/threading/ThreadPool.cpp \
Expand Down
1 change: 1 addition & 0 deletions builds/win32/release.arm.mk
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# Autogenerated by psync 1.2.0

SOURCES += \
src/algorithm/YSort.cpp \
src/b3/blake3_dispatch.c \
src/b3/blake3_portable.c \
src/b3/blake3.c \
Expand Down
1 change: 1 addition & 0 deletions builds/win32/release.mk
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# Autogenerated by psync 1.2.0

SOURCES += \
src/algorithm/YSort.cpp \
src/b3/blake3_avx2_x86-64_unix.S \
src/b3/blake3_avx512_x86-64_unix.S \
src/b3/blake3_dispatch.c \
Expand Down
2 changes: 2 additions & 0 deletions builds/win32/release.test.mk
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# Autogenerated by psync 1.2.0

SOURCES += \
src/algorithm/YSort.cpp \
src/b3/blake3_avx2_x86-64_unix.S \
src/b3/blake3_avx512_x86-64_unix.S \
src/b3/blake3_dispatch.c \
Expand All @@ -28,6 +29,7 @@ SOURCES += \
src/pos/chacha8.cpp \
src/SysHost.cpp \
src/test/test_main.cpp \
src/test/test_numa_sort.cpp \
src/threading/Semaphore.cpp \
src/threading/Thread.cpp \
src/threading/ThreadPool.cpp \
Expand Down
1 change: 1 addition & 0 deletions project.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ bladebit.configs.test = () => config({
,src: [

'src/test/test_main.cpp'
,'src/test/test_numa_sort.cpp'
// ,'src/test/TestNuma.cpp'
]

Expand Down
6 changes: 6 additions & 0 deletions src/Config.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
// #TODO: This should perhaps be named max jobs.
#define MAX_THREADS 256

// Perform Y sorts at the block level.
// Unrolling loops by chacha block size.
#define Y_SORT_BLOCK_MODE 1

///
/// Debug Stuff
///
Expand Down Expand Up @@ -34,4 +38,6 @@
// #define DBG_WRITE_LINE_POINTS 1
// #define DBG_WRITE_SORTED_F7_TABLE 1

// Enable to test plotting times without writing to disk
// #define BB_BENCHMARK_MODE 1

Loading

0 comments on commit b48f262

Please sign in to comment.