makefile
This commit is contained in:
parent
bb8b407b44
commit
41f4f94a8d
6
.gitignore
vendored
6
.gitignore
vendored
@ -1,3 +1,5 @@
|
|||||||
build/
|
|
||||||
.vscode/
|
.vscode/
|
||||||
*.o
|
*.o
|
||||||
|
*.sh
|
||||||
|
main
|
||||||
|
yggm
|
@ -7,7 +7,7 @@ cmake -B build && cmake --build build -j$(nproc)
|
|||||||
build/yggm -t 10
|
build/yggm -t 10
|
||||||
```
|
```
|
||||||
# ToDo
|
# ToDo
|
||||||
- [x] Cuda support (slow)
|
- [x] Cuda support (not optimized)
|
||||||
- [x] Support for avx2
|
- [x] Support for avx2
|
||||||
- [ ] Support for sse4
|
- [ ] Support for sse4
|
||||||
#
|
#
|
18
build/Makefile
Normal file
18
build/Makefile
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
NVCC := nvcc
|
||||||
|
NVCC_FLAGS := -O3 -use_fast_math -Xptxas -O3 -gencode arch=compute_75,code=sm_75 \
|
||||||
|
--default-stream per-thread -Wno-deprecated-gpu-targets --expt-relaxed-constexpr -I../libs/
|
||||||
|
MAIN_SOURCE := ../sources/main.cu
|
||||||
|
LIBS_DIR := ../libs/
|
||||||
|
BUILD_DIR := ../build/
|
||||||
|
LIBS_SOURCES := $(wildcard $(LIBS_DIR)*.cu)
|
||||||
|
LIBS_OBJECTS := $(patsubst $(LIBS_DIR)%.cu,$(BUILD_DIR)/%.o,$(LIBS_SOURCES))
|
||||||
|
TARGET := main
|
||||||
|
all: $(TARGET)
|
||||||
|
$(BUILD_DIR):
|
||||||
|
mkdir -p $(BUILD_DIR)
|
||||||
|
$(TARGET): $(MAIN_SOURCE) $(LIBS_OBJECTS)
|
||||||
|
$(NVCC) $(NVCC_FLAGS) -o $(TARGET) $(MAIN_SOURCE) $(LIBS_OBJECTS)
|
||||||
|
$(BUILD_DIR)/%.o: $(LIBS_DIR)%.cu | $(BUILD_DIR)
|
||||||
|
$(NVCC) $(NVCC_FLAGS) -c $< -o $@
|
||||||
|
#clean:
|
||||||
|
# rm -f $(BUILD_DIR)/*.o
|
@ -4,10 +4,10 @@
|
|||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
#include <cuda_runtime.h>
|
#include <cuda_runtime.h>
|
||||||
#include <curand_kernel.h>
|
#include <curand_kernel.h>
|
||||||
#include "../libs/sha512.cuh"
|
#include <sha512.cuh>
|
||||||
#include <arpa/inet.h>
|
#include <arpa/inet.h>
|
||||||
#include "../libs/ed25519.cuh"
|
#include <ed25519.cuh>
|
||||||
#include "../libs/edsign.cuh"
|
#include <edsign.cuh>
|
||||||
__device__ __constant__ char hexDigitsConst[17] = "0123456789abcdef";
|
__device__ __constant__ char hexDigitsConst[17] = "0123456789abcdef";
|
||||||
using Address = unsigned char[16];
|
using Address = unsigned char[16];
|
||||||
using Key = unsigned char[32];
|
using Key = unsigned char[32];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user