mirror of
https://github.com/zama-ai/tfhe-rs.git
synced 2026-01-09 22:57:59 -05:00
chore(gpu): temporarily set test threads to 1 for the GPU
This commit is contained in:
10
Makefile
10
Makefile
@@ -473,23 +473,23 @@ test_gpu: test_core_crypto_gpu test_integer_gpu test_cuda_backend
|
|||||||
.PHONY: test_core_crypto_gpu # Run the tests of the core_crypto module including experimental on the gpu backend
|
.PHONY: test_core_crypto_gpu # Run the tests of the core_crypto module including experimental on the gpu backend
|
||||||
test_core_crypto_gpu: install_rs_build_toolchain
|
test_core_crypto_gpu: install_rs_build_toolchain
|
||||||
RUSTFLAGS="$(RUSTFLAGS)" cargo $(CARGO_RS_BUILD_TOOLCHAIN) test --profile $(CARGO_PROFILE) \
|
RUSTFLAGS="$(RUSTFLAGS)" cargo $(CARGO_RS_BUILD_TOOLCHAIN) test --profile $(CARGO_PROFILE) \
|
||||||
--features=$(TARGET_ARCH_FEATURE),gpu -p $(TFHE_SPEC) -- core_crypto::gpu::
|
--features=$(TARGET_ARCH_FEATURE),gpu -p $(TFHE_SPEC) -- core_crypto::gpu:: --test-threads=1
|
||||||
RUSTFLAGS="$(RUSTFLAGS)" cargo $(CARGO_RS_BUILD_TOOLCHAIN) test --doc --profile $(CARGO_PROFILE) \
|
RUSTFLAGS="$(RUSTFLAGS)" cargo $(CARGO_RS_BUILD_TOOLCHAIN) test --doc --profile $(CARGO_PROFILE) \
|
||||||
--features=$(TARGET_ARCH_FEATURE),gpu -p $(TFHE_SPEC) -- core_crypto::gpu::
|
--features=$(TARGET_ARCH_FEATURE),gpu -p $(TFHE_SPEC) -- core_crypto::gpu:: --test-threads=1
|
||||||
|
|
||||||
.PHONY: test_integer_gpu # Run the tests of the integer module including experimental on the gpu backend
|
.PHONY: test_integer_gpu # Run the tests of the integer module including experimental on the gpu backend
|
||||||
test_integer_gpu: install_rs_build_toolchain
|
test_integer_gpu: install_rs_build_toolchain
|
||||||
RUSTFLAGS="$(RUSTFLAGS)" cargo $(CARGO_RS_BUILD_TOOLCHAIN) test --profile $(CARGO_PROFILE) \
|
RUSTFLAGS="$(RUSTFLAGS)" cargo $(CARGO_RS_BUILD_TOOLCHAIN) test --profile $(CARGO_PROFILE) \
|
||||||
--features=$(TARGET_ARCH_FEATURE),integer,gpu -p $(TFHE_SPEC) -- integer::gpu::server_key:: --test-threads=6
|
--features=$(TARGET_ARCH_FEATURE),integer,gpu -p $(TFHE_SPEC) -- integer::gpu::server_key:: --test-threads=1
|
||||||
RUSTFLAGS="$(RUSTFLAGS)" cargo $(CARGO_RS_BUILD_TOOLCHAIN) test --doc --profile $(CARGO_PROFILE) \
|
RUSTFLAGS="$(RUSTFLAGS)" cargo $(CARGO_RS_BUILD_TOOLCHAIN) test --doc --profile $(CARGO_PROFILE) \
|
||||||
--features=$(TARGET_ARCH_FEATURE),integer,gpu -p $(TFHE_SPEC) -- integer::gpu::server_key::
|
--features=$(TARGET_ARCH_FEATURE),integer,gpu -p $(TFHE_SPEC) -- integer::gpu::server_key::
|
||||||
|
|
||||||
.PHONY: test_integer_compression_gpu
|
.PHONY: test_integer_compression_gpu
|
||||||
test_integer_compression_gpu: install_rs_build_toolchain
|
test_integer_compression_gpu: install_rs_build_toolchain
|
||||||
RUSTFLAGS="$(RUSTFLAGS)" cargo $(CARGO_RS_BUILD_TOOLCHAIN) test --profile $(CARGO_PROFILE) \
|
RUSTFLAGS="$(RUSTFLAGS)" cargo $(CARGO_RS_BUILD_TOOLCHAIN) test --profile $(CARGO_PROFILE) \
|
||||||
--features=$(TARGET_ARCH_FEATURE),integer,gpu -p $(TFHE_SPEC) -- integer::gpu::ciphertext::compressed_ciphertext_list::tests::
|
--features=$(TARGET_ARCH_FEATURE),integer,gpu -p $(TFHE_SPEC) -- integer::gpu::ciphertext::compressed_ciphertext_list::tests:: --test-threads=1
|
||||||
RUSTFLAGS="$(RUSTFLAGS)" cargo $(CARGO_RS_BUILD_TOOLCHAIN) test --doc --profile $(CARGO_PROFILE) \
|
RUSTFLAGS="$(RUSTFLAGS)" cargo $(CARGO_RS_BUILD_TOOLCHAIN) test --doc --profile $(CARGO_PROFILE) \
|
||||||
--features=$(TARGET_ARCH_FEATURE),integer,gpu -p $(TFHE_SPEC) -- integer::gpu::ciphertext::compress
|
--features=$(TARGET_ARCH_FEATURE),integer,gpu -p $(TFHE_SPEC) -- integer::gpu::ciphertext::compress --test-threads=1
|
||||||
|
|
||||||
.PHONY: test_integer_gpu_ci # Run the tests for integer ci on gpu backend
|
.PHONY: test_integer_gpu_ci # Run the tests for integer ci on gpu backend
|
||||||
test_integer_gpu_ci: install_rs_check_toolchain install_cargo_nextest
|
test_integer_gpu_ci: install_rs_check_toolchain install_cargo_nextest
|
||||||
|
|||||||
@@ -130,8 +130,8 @@ fi
|
|||||||
# Override test-threads number to avoid Out-of-memory issues on GPU instances
|
# Override test-threads number to avoid Out-of-memory issues on GPU instances
|
||||||
if [[ "${backend}" == "gpu" ]]; then
|
if [[ "${backend}" == "gpu" ]]; then
|
||||||
if [[ "${BIG_TESTS_INSTANCE}" == TRUE ]]; then
|
if [[ "${BIG_TESTS_INSTANCE}" == TRUE ]]; then
|
||||||
test_threads=8
|
test_threads=1
|
||||||
doctest_threads=8
|
doctest_threads=1
|
||||||
else
|
else
|
||||||
test_threads=1
|
test_threads=1
|
||||||
doctest_threads=1
|
doctest_threads=1
|
||||||
|
|||||||
Reference in New Issue
Block a user