Skip to content

Commit

Permalink
Speculative update to explicitly wait for async copy done when store.
Browse files Browse the repository at this point in the history
  • Loading branch information
liuliu committed Aug 20, 2024
1 parent 34bad96 commit ca70311
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion bin/nnc/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ LDFLAGS := -L"../../lib" -lccv $(LDFLAGS)
CFLAGS := -O3 -Wall -I"../../lib" $(CFLAGS)
NVFLAGS := -O3 -I"../../lib" -lineinfo $(NVFLAGS)

TARGETS = nnc-e2e-verify nnc-e2e-sym-verify nnc-sym cifar-10 imagenet coco imdb iwslt wmt csv imdb_lstm laplacian_test adversarial_shape_test
TARGETS = nnc-e2e-verify nnc-e2e-sym-verify nnc-sym cifar-10 imagenet coco imdb iwslt wmt csv imdb_lstm # laplacian_test adversarial_shape_test

FUZZ_TARGETS = csv_fuzz

Expand Down
Binary file not shown.
Binary file not shown.
4 changes: 2 additions & 2 deletions lib/nnc/mfa/ccv_nnc_mfa.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -190,9 +190,9 @@ mfa::context::context(MTL::Device* device)
this->library = NS::TransferPtr(device->newLibrary(url, &error));
} else {
#if TARGET_OS_IPHONE
dispatch_data_t data = dispatch_data_create(libmfaios16_v1_0_2_a_metallib, sizeof(libmfaios16_v1_0_2_a_metallib), NULL, 0);
dispatch_data_t data = dispatch_data_create(libmfaios16_v1_0_2_b_metallib, sizeof(libmfaios16_v1_0_2_b_metallib), NULL, 0);
#else
dispatch_data_t data = dispatch_data_create(libmfamacos13_v1_0_2_a_metallib, sizeof(libmfamacos13_v1_0_2_a_metallib), NULL, 0);
dispatch_data_t data = dispatch_data_create(libmfamacos13_v1_0_2_b_metallib, sizeof(libmfamacos13_v1_0_2_b_metallib), NULL, 0);
#endif
this->library = NS::TransferPtr(device->newLibrary(data, &error));
dispatch_release(data);
Expand Down
8 changes: 4 additions & 4 deletions lib/nnc/mfa/libmfa.inc

Large diffs are not rendered by default.

0 comments on commit ca70311

Please sign in to comment.