Skip to content

Commit 9767ca6

Browse files
committed
revert unneccessary changes
1 parent 9e9df9b commit 9767ca6

4 files changed

Lines changed: 6 additions & 111 deletions

File tree

DeeployTest/Platforms/GAP9/sdk.config

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ CONFIG_PLATFORM_GVSOC=y
3030
# CONFIG_DRIVER_CLUSTERDECOMPRESSOR=n
3131

3232
# GAP9 cluster stack size configuration
33-
# Training networks with L3 tiling generate large functions with deep
34-
# closure chains that need more stack than the SDK default (~4KB).
35-
CONFIG_CL_MASTER_CORE_STACK_SIZE=14000
36-
# CONFIG_CL_SLAVE_CORE_STACK_SIZE=1000
33+
# Uncomment and adjust these values if you need to modify stack sizes:
34+
# CONFIG_CL_MASTER_CORE_STACK_SIZE=14000
35+
# CONFIG_CL_SLAVE_CORE_STACK_SIZE=1000

DeeployTest/Platforms/Siracusa/src/deeploytest.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#include "testinputs.h"
1212
#include "testoutputs.h"
1313

14-
#define MAINSTACKSIZE 12000
14+
#define MAINSTACKSIZE 8000
1515
#define SLAVESTACKSIZE 3800
1616

1717
struct pi_device cluster_dev;
@@ -41,7 +41,7 @@ void CompareFloatOnCluster(void *args) {
4141
float actual_val = actual[i];
4242
float diff = expected_val - actual_val;
4343

44-
if ((diff < -1e-3) || (diff > 1e-3) || isnan(diff)) {
44+
if ((diff < -1e-4) || (diff > 1e-4) || isnan(diff)) {
4545
local_err_count += 1;
4646

4747
printf("Expected: %10.6f ", expected_val);
@@ -138,10 +138,7 @@ int main(void) {
138138
&float_compare_args);
139139
cluster_task.stack_size = MAINSTACKSIZE;
140140
cluster_task.slave_stack_size = SLAVESTACKSIZE;
141-
142141
pi_cluster_send_task_to_cl(&cluster_dev, &cluster_task);
143-
printf("%i errors in %i in output %i\r\n", float_error_count,
144-
float_compare_args.num_elements, buf);
145142

146143
tot_err += float_error_count;
147144
} else {

DeeployTest/deeploy_log.txt

Lines changed: 0 additions & 45 deletions
This file was deleted.

DeeployTest/test_platforms.py

Lines changed: 1 addition & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@
33
# SPDX-License-Identifier: Apache-2.0
44

55
import pytest
6-
from pathlib import Path
7-
from test_siracusa_train_config import DEFAULT_CORES as SIRACUSA_TRAIN_DEFAULT_CORES
8-
from test_siracusa_train_config import TRAINING_TESTS as SIRACUSA_TRAINING_TESTS
9-
from testUtils.pytestRunner import create_training_test_config
106
# Import platform-specific test configurations
117
from test_chimera_config import KERNEL_TESTS as CHIMERA_KERNEL_TESTS
128
from test_chimera_config import MODEL_TESTS as CHIMERA_MODEL_TESTS
@@ -46,7 +42,7 @@
4642
from test_softhier_config import DEFAULT_NUM_CLUSTERS as SOFTHIER_DEFAULT_NUM_CLUSTERS
4743
from test_softhier_config import KERNEL_TESTS as SOFTHIER_KERNEL_TESTS
4844
from test_softhier_config import MODEL_TESTS as SOFTHIER_MODEL_TESTS
49-
from testUtils.pytestRunner import create_test_config, get_worker_id, run_and_assert_test
45+
from testUtils.pytestRunner import create_test_config, run_and_assert_test
5046

5147

5248
def generate_test_params(test_dict, config_name):
@@ -751,58 +747,6 @@ def test_siracusa_neureka_tiled_models_l3_doublebuffer_wmem(test_params, deeploy
751747
run_and_assert_test(test_name, config, skipgen, skipsim)
752748

753749

754-
@pytest.mark.siracusa_train
755-
@pytest.mark.models
756-
@pytest.mark.parametrize("test_name", list(SIRACUSA_TRAINING_TESTS.keys()),
757-
ids = list(SIRACUSA_TRAINING_TESTS.keys()))
758-
def test_siracusa_train_models(test_name, deeploy_test_dir, toolchain, toolchain_dir, cmake_args, skipgen,
759-
skipsim) -> None:
760-
n_steps, n_accum, num_data = SIRACUSA_TRAINING_TESTS[test_name]
761-
762-
# simplemlp_train uses external path (not under DeeployTest/Tests/)
763-
if test_name == "Models/SimpleMLP_Train":
764-
ext_test_dir = "/app/Onnx4Deeploy/onnx/model/simplemlp_train"
765-
platform = "Siracusa"
766-
gen_dir = str(Path(deeploy_test_dir) / f"TEST_{platform.upper()}" / "simplemlp_train")
767-
worker_id = get_worker_id()
768-
if worker_id == "master":
769-
build_dir = str(Path(deeploy_test_dir) / f"TEST_{platform.upper()}" / "build_master")
770-
else:
771-
build_dir = str(Path(deeploy_test_dir) / f"TEST_{platform.upper()}" / f"build_{worker_id}")
772-
773-
from testUtils.core.config import DeeployTestConfig
774-
config = DeeployTestConfig(
775-
test_name = "simplemlp_train",
776-
test_dir = ext_test_dir,
777-
platform = platform,
778-
simulator = "gvsoc",
779-
tiling = False,
780-
gen_dir = gen_dir,
781-
build_dir = build_dir,
782-
toolchain = toolchain,
783-
toolchain_install_dir = toolchain_dir,
784-
cmake_args = list(cmake_args) + [f"NUM_CORES={SIRACUSA_TRAIN_DEFAULT_CORES}"],
785-
gen_args = [f"--cores={SIRACUSA_TRAIN_DEFAULT_CORES}"],
786-
training = True,
787-
n_train_steps = n_steps,
788-
n_accum_steps = n_accum,
789-
training_num_data_inputs = num_data,
790-
)
791-
else:
792-
config = create_training_test_config(
793-
test_name = test_name,
794-
platform = "Siracusa",
795-
simulator = "gvsoc",
796-
deeploy_test_dir = deeploy_test_dir,
797-
toolchain = toolchain,
798-
toolchain_dir = toolchain_dir,
799-
cmake_args = cmake_args,
800-
cores = SIRACUSA_TRAIN_DEFAULT_CORES,
801-
n_train_steps = n_steps,
802-
n_accum_steps = n_accum,
803-
training_num_data_inputs = num_data,
804-
)
805-
806750
@pytest.mark.gap9
807751
@pytest.mark.kernels
808752
@pytest.mark.parametrize("test_name", GAP9_KERNEL_TESTS, ids = GAP9_KERNEL_TESTS)

0 commit comments

Comments
 (0)