Skip to content
Snippets Groups Projects
Commit faf9ac0a authored by Hashim Sharif's avatar Hashim Sharif
Browse files

Creating 2 sources for Sampling and Perforation Tests

parent 7c38ab9b
No related branches found
No related tags found
No related merge requests found
...@@ -140,8 +140,12 @@ add_tensor_runtime(tensor_runtime_online -DONLINE_PROFILING=true -DFP16_tuning=f ...@@ -140,8 +140,12 @@ add_tensor_runtime(tensor_runtime_online -DONLINE_PROFILING=true -DFP16_tuning=f
add_dependencies(tensor_runtime_online tensor_runtime) add_dependencies(tensor_runtime_online tensor_runtime)
# Adding rule for the debugging source # Adding rule for the debugging source
add_executable(unit_tests tests/unit_tests.cc) add_executable(sampling_tests tests/sampling_tests.cc)
target_link_libraries(unit_tests tensor_runtime_online) target_link_libraries(sampling_tests tensor_runtime_online)
add_executable(perforation_tests tests/perforation_tests.cc)
target_link_libraries(perforation_tests tensor_runtime_online)
# -- Compile tensor_runtime.ll if possible # -- Compile tensor_runtime.ll if possible
if(INDEP_BUILD) if(INDEP_BUILD)
......
#include "tests.h"
int main() {
llvm_hpvm_initTensorRt(0);
UnitTestResults unitTestResults;
testPerforation(unitTestResults);
unitTestResults.printSummary();
return 0;
}
#include "tests.h"
int main() {
llvm_hpvm_initTensorRt(0);
UnitTestResults unitTestResults;
testSampling(unitTestResults);
unitTestResults.printSummary();
return 0;
}
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <unistd.h> #include <unistd.h>
...@@ -460,17 +461,9 @@ void testSampling_1_1(UnitTestResults &unitTestResults) { ...@@ -460,17 +461,9 @@ void testSampling_1_1(UnitTestResults &unitTestResults) {
int main() { void testSampling(UnitTestResults &unitTestResults){
llvm_hpvm_initTensorRt(0);
UnitTestResults unitTestResults;
testSampling_3_3(unitTestResults); testSampling_3_3(unitTestResults);
testSampling_1_1(unitTestResults); testSampling_1_1(unitTestResults);
testPerforation(unitTestResults);
unitTestResults.printSummary();
return 0;
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment