Skip to content

Commit

Permalink
[ trivial ] Fix typo
Browse files Browse the repository at this point in the history
- Found duplicated TC name while creating GPU unittest cases

Resolves:
[arm64-v8a] Executable     : unittest_layers
ld: error: duplicate symbol: addition_w16a16
>>> defined at unittest_layers_addition.cpp:33 (../unittest/layers/unittest_layers_addition.cpp:33)
>>>            /home/sungsik/nntrainer/test/obj/local/arm64-v8a/objs-debug/unittest_layers/__/unittest/layers/unittest_layers_addition.o:(addition_w16a16)
>>> defined at unittest_layers_addition_cl.cpp:47 (../unittest/layers/unittest_layers_addition_cl.cpp:47)
>>>            /home/sungsik/nntrainer/test/obj/local/arm64-v8a/objs-debug/unittest_layers/__/unittest/layers/unittest_layers_addition_cl.o:(.bss.addition_w16a16+0x0)
clang++: error: linker command failed with exit code 1 (use -v to see invocation)

**Self evaluation:**
1. Build test:     [X]Passed [ ]Failed [ ]Skipped
2. Run test:     [X]Passed [ ]Failed [ ]Skipped

Signed-off-by: skykongkong8 <[email protected]>
  • Loading branch information
skykongkong8 committed Jun 27, 2024
1 parent ed2d27f commit 2960bfe
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions test/unittest/layers/unittest_layers_addition_cl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* @brief Addition Layer Test
* @see https://github.com/nnstreamer/nntrainer
* @author Yash Singh <[email protected]>
* @author Sungsik Kong <[email protected]>
* @bug No known bugs except for NYI items
*/
#include <tuple>
Expand All @@ -30,25 +31,26 @@ GTEST_PARAMETER_TEST(AdditionGPU, LayerSemanticsGpu,
::testing::Values(semantic_addition_gpu,
semantic_addition_multi_gpu));

auto addition_w32a32 = LayerGoldenTestParamType(
auto addition_w32a32_gpu = LayerGoldenTestParamType(
nntrainer::createLayer<nntrainer::AdditionLayerCL>, {}, "2:3:3:3,2:3:3:3",
"added_w32a32.nnlayergolden", LayerGoldenTestParamOptions::DEFAULT, "nchw",
"fp32", "fp32");

auto addition_w32a32_2 = LayerGoldenTestParamType(
auto addition_w32a32_2_gpu = LayerGoldenTestParamType(
nntrainer::createLayer<nntrainer::AdditionLayerCL>, {}, "3:4:3:4,3:4:3:4",
"added_w32a32_2.nnlayergolden", LayerGoldenTestParamOptions::DEFAULT, "nchw",
"fp32", "fp32");

GTEST_PARAMETER_TEST(AdditionGPU, LayerGoldenTest,
::testing::Values(addition_w32a32, addition_w32a32_2));
::testing::Values(addition_w32a32_gpu,
addition_w32a32_2_gpu));

#ifdef ENABLE_FP16
auto addition_w16a16 = LayerGoldenTestParamType(
auto addition_w16a16_gpu = LayerGoldenTestParamType(
nntrainer::createLayer<nntrainer::AdditionLayerCL>, {}, "2:3:3:3,2:3:3:3",
"added_w16a16.nnlayergolden", LayerGoldenTestParamOptions::DEFAULT, "nchw",
"fp16", "fp16");

GTEST_PARAMETER_TEST(Addition16, LayerGoldenTest,
::testing::Values(addition_w16a16));
::testing::Values(addition_w16a16_gpu));
#endif

0 comments on commit 2960bfe

Please sign in to comment.