From 38b5e6b211d61f1de99553839ca5d54522c1425c Mon Sep 17 00:00:00 2001 From: Arity-T Date: Tue, 2 Dec 2025 11:45:34 +0000 Subject: [PATCH] =?UTF-8?q?=D0=9C=D0=B5=D0=BB=D0=BA=D0=B8=D0=B5=20=D0=BF?= =?UTF-8?q?=D1=80=D0=B0=D0=B2=D0=BA=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bitcoin-project/Makefile | 7 +++++-- bitcoin-project/README.md | 5 +++-- bitcoin-project/src/main.cpp | 3 ++- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/bitcoin-project/Makefile b/bitcoin-project/Makefile index a4e087a..37c42a3 100644 --- a/bitcoin-project/Makefile +++ b/bitcoin-project/Makefile @@ -15,7 +15,7 @@ TARGET = $(BUILD_DIR)/bitcoin_app PLUGIN_SRC = $(SRC_DIR)/gpu_plugin.cu PLUGIN = $(BUILD_DIR)/libgpu_compute.so -all: $(BUILD_DIR) $(PLUGIN) $(TARGET) +all: $(PLUGIN) $(TARGET) $(BUILD_DIR): mkdir -p $(BUILD_DIR) @@ -32,4 +32,7 @@ $(PLUGIN): $(PLUGIN_SRC) | $(BUILD_DIR) clean: rm -rf $(BUILD_DIR) -.PHONY: all clean +run: all + sbatch run.slurm + +.PHONY: all clean run diff --git a/bitcoin-project/README.md b/bitcoin-project/README.md index 77f3308..5f58a8d 100644 --- a/bitcoin-project/README.md +++ b/bitcoin-project/README.md @@ -1,12 +1,13 @@ Проект обязательно должен быть расположен в общей директории для всех узлов, -например, в `/mnt/shared/bitcoin-project` +например, в `/mnt/shared/supercomputers/bitcoin-project/build`. +Перед запуском указать актуальный путь в `run.slurm`. ```sh make ``` ```sh -sbatch run.slurm +make run ``` Обязательно должны быть запущены все 4 нода. Результат будет в out.txt. \ No newline at end of file diff --git a/bitcoin-project/src/main.cpp b/bitcoin-project/src/main.cpp index ad169b3..02d475f 100644 --- a/bitcoin-project/src/main.cpp +++ b/bitcoin-project/src/main.cpp @@ -36,7 +36,8 @@ int main(int argc, char** argv) { if (rank == 0) { std::cout << "Rank 0 loading CSV..." << std::endl; - auto records = load_csv("/mnt/shared/supercomputers/bitcoin-project/data/data.csv"); + // Запускаем из build + auto records = load_csv("../data/data.csv"); auto days = group_by_day(records); auto parts = split_days(days, size);