The PALISADE-CPU backend is a Reference backend engine for HEBench which is a shared library that implements the required functions specified in either the hebench::APIBridge or hebench::cpp wrapper. It is intended only as a reference on how to implement a PALISADE backend for HEBench and it is not fully optimized for performance.
Apache License 2.0
6
stars
2
forks
source link
Configuration File Values don't have Priority over Engine-Passed Values #36
Describe the bug
Using a configuration file without modifying the backend will result in the config-file batch size passed to LR getting ignored (for offline category only).
To Reproduce
Steps to reproduce the behavior:
Pull Down this repo (backend-cpu-palisade)
git clone https://github.com/hebench/backend-cpu-palisade.git
Switch to the development branch
cd backend-cpu-palisade && git checkout development
Build and Run to Generate a configuration file from the default backend
mkdir build && cd buildcmake -DCMAKE_INSTALL_PREFIX=. -DCMAKE_BUILD_TYPE=Release .. && make -j install./bin/test_harness -b ./libhebench_palisade_backend.so --config_file testing.yml --dump
Edit the configuration file and run with the updated file
testing.txtSee edited config file above with batch size = 15 (Change the above file type to "yml" before running)./bin/test_harness -b ./libhebench_palisade_backend.so --config_file testing.yml
See that custom batch size passed by configuration file is ignored
Output will still have batch size passed from engine file and instead of custom batch size in config:
, Category, Offline
, , Parameter, Samples requested
, , 0, 1
, , 1, 1
, , 2, 100
Expected behavior
The expectation is that the value passed in the configuration file has priority
*Also caught development up to main first
Describe the bug
Using a configuration file without modifying the backend will result in the config-file batch size passed to LR getting ignored (for offline category only).
To Reproduce
Steps to reproduce the behavior:
git clone https://github.com/hebench/backend-cpu-palisade.git
cd backend-cpu-palisade && git checkout development
mkdir build && cd build
cmake -DCMAKE_INSTALL_PREFIX=. -DCMAKE_BUILD_TYPE=Release .. && make -j install
./bin/test_harness -b ./libhebench_palisade_backend.so --config_file testing.yml --dump
See edited config file above with batch size = 15 (Change the above file type to "yml" before running)
./bin/test_harness -b ./libhebench_palisade_backend.so --config_file testing.yml
Expected behavior
The expectation is that the value passed in the configuration file has priority
Screenshots
N/A
Additional context
N/A