From 27f38a377053877443cdd7f7a26df6df5ee96c67 Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Thu, 24 Oct 2019 09:13:57 -0700 Subject: [PATCH] Revert "Restore CUDA-based unit tests (#6518)" This reverts commit dc52b17c4dad0244dbdc0fe251e574c76ee20f8d. --- ci/test-stable.sh | 2 +- ledger/src/perf_libs.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ci/test-stable.sh b/ci/test-stable.sh index d78c6b239..35ad34a95 100755 --- a/ci/test-stable.sh +++ b/ci/test-stable.sh @@ -80,7 +80,7 @@ test-stable-perf) fi _ cargo +"$rust_stable" build --bins ${V:+--verbose} - _ cargo +"$rust_stable" test --package solana-ledger --package solana-core --lib ${V:+--verbose} -- --nocapture + _ cargo +"$rust_stable" test --package solana-core --lib ${V:+--verbose} -- --nocapture ;; test-local-cluster) echo "Executing $testName" diff --git a/ledger/src/perf_libs.rs b/ledger/src/perf_libs.rs index f16b27604..63e798dd9 100644 --- a/ledger/src/perf_libs.rs +++ b/ledger/src/perf_libs.rs @@ -159,6 +159,7 @@ pub fn init_cuda() { } pub fn api() -> Option<&'static Container>> { + #[cfg(test)] { static INIT_HOOK: Once = Once::new(); INIT_HOOK.call_once(|| {