owo
This commit is contained in:
2
.clangd
Normal file
2
.clangd
Normal file
@@ -0,0 +1,2 @@
|
||||
CompileFlags:
|
||||
Remove: ['-Xcompiler=-Wall,-Winvalid-pch','-rdc=true','-prec-div=false','-Xptxas','-ftz=true','-prec-sqrt=false','-gencode','--default-stream','--expt-relaxed-constexpr']
|
||||
14
README.md
14
README.md
@@ -1,20 +1,18 @@
|
||||
# yggm
|
||||
### Yggdrasil address miner
|
||||
# How to build for CPU
|
||||
# How to build for CPU/GPU
|
||||
### First, install gcc14. Then:
|
||||
```sh
|
||||
git clone https://rcxpony.name/rcxpony/yggm.git && cd yggm
|
||||
meson setup build -Dbuildtype=release && cd build
|
||||
meson compile && ./yggm -t 10
|
||||
```
|
||||
# How to build for GPU
|
||||
```sh
|
||||
git clone https://rcxpony.name/rcxpony/yggm.git && cd yggm/build
|
||||
meson setup build -Dbuildtype=release && cd build
|
||||
meson compile && ./yggmcu -t 10
|
||||
meson compile
|
||||
./yggm -t 10 // for CPU
|
||||
./yggmcu -t 10 // for GPU
|
||||
```
|
||||
# ToDo
|
||||
- [x] CUDA support
|
||||
- [x] AVX2 optimizations
|
||||
- [ ] (CUDA) Optimize internal algorithms
|
||||
- [ ] Windows support
|
||||
- [ ] Tests
|
||||
#
|
||||
@@ -1,3 +1,4 @@
|
||||
|
||||
project('yggm', ['cpp', 'cuda'],
|
||||
version: '20.08.2025',
|
||||
default_options: ['cpp_std=c++20']
|
||||
@@ -15,7 +16,6 @@ common_cpp_flags = [
|
||||
|
||||
common_cuda_flags = [
|
||||
'-rdc=true',
|
||||
'-O3',
|
||||
'-Xptxas', '-O3',
|
||||
'-use_fast_math',
|
||||
'-ftz=true',
|
||||
@@ -26,7 +26,7 @@ common_cuda_flags = [
|
||||
'--default-stream', 'per-thread',
|
||||
'--expt-relaxed-constexpr',
|
||||
'-I../libs/',
|
||||
'--compiler-bindir=/usr/bin/gcc-14',
|
||||
'-I/opt/cuda/include',
|
||||
]
|
||||
|
||||
add_project_arguments(common_cpp_flags, language: 'cpp')
|
||||
@@ -41,7 +41,7 @@ endif
|
||||
cpp_sources = ['sources/main.cpp']
|
||||
cuda_sources = ['sources/main.cu'] + files(run_command('find', 'libs', '-name', '*.cu').stdout().split())
|
||||
|
||||
yggmcu = executable('yggmcu',
|
||||
executable('yggmcu',
|
||||
sources: cuda_sources,
|
||||
install: true,
|
||||
dependencies: dependency('cuda', modules: ['cudart'], required: false)
|
||||
|
||||
Reference in New Issue
Block a user