This commit is contained in:
rcxpony
2025-08-21 04:52:43 +05:00
parent 558b6b3a2c
commit 4b5a9967ed
3 changed files with 11 additions and 11 deletions

2
.clangd Normal file
View 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']

View File

@@ -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
#

View File

@@ -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)