Skip to content

Commit 6a83233

Browse files
committed
fix ingest, market tasks
1 parent 8f94e1d commit 6a83233

File tree

5 files changed

+9
-10
lines changed

5 files changed

+9
-10
lines changed

Makefile

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,11 @@ build/.update-modules:
6666
# end git modules
6767

6868
## CUDA Library Path
69-
CUDA_PATH := $(shell dirname $$(dirname $$(which nvcc)))
70-
CUDA_LIB_PATH := $(CUDA_PATH)/lib64
71-
LIBRARY_PATH ?= $(CUDA_LIB_PATH)
72-
export LIBRARY_PATH
69+
setup_cuda:
70+
$(eval CUDA_PATH := $(shell dirname $$(dirname $$(which nvcc))))
71+
$(eval CUDA_LIB_PATH := $(CUDA_PATH)/lib64)
72+
export LIBRARY_PATH=$(CUDA_LIB_PATH)
73+
.PHONY: setup_cuda
7374

7475
## MAIN BINARIES
7576

@@ -97,7 +98,7 @@ BINS+=sptool
9798

9899
ifeq ($(shell uname),Linux)
99100

100-
batchdep: build/.supraseal-install
101+
batchdep: setup_cuda build/.supraseal-install
101102
batchdep: $(BUILD_DEPS)
102103
.PHONY: batchdep
103104

lib/paths/mocks/index.go

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

market/storageingest/deal_ingest_seal.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ import (
99
"net/url"
1010
"time"
1111

12-
"github.com/filecoin-project/curio/build"
13-
"github.com/filecoin-project/curio/deps/config"
1412
logging "github.com/ipfs/go-log/v2"
1513
"golang.org/x/xerrors"
1614

market/storageingest/deal_ingest_snap.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ import (
99
"net/url"
1010
"time"
1111

12-
"github.com/filecoin-project/curio/build"
13-
"github.com/filecoin-project/curio/deps/config"
1412
"golang.org/x/xerrors"
1513

1614
"github.com/filecoin-project/go-address"

tasks/storage-market/storage_market.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ func (d *CurioStorageDealMarket) findURLForOfflineDeals(ctx context.Context, dea
407407
if err != nil {
408408
return false, xerrors.Errorf("error making GET request: %w", err)
409409
}
410-
410+
411411
// Check the response code for 404
412412
if resp.StatusCode != http.StatusOK {
413413
if resp.StatusCode != 404 {

0 commit comments

Comments
 (0)