bassoy / ttv Goto Github PK
View Code? Open in Web Editor NEWC++ Header-Only Library for High-Performance Tensor-Vector Multiplication
License: GNU Lesser General Public License v3.0
C++ Header-Only Library for High-Performance Tensor-Vector Multiplication
License: GNU Lesser General Public License v3.0
I get this failure at linking (tried gcc12 and gcc11, same result):
/opt/local/bin/g++-mp-11 -Wextra -Wall -Wpedantic -Ofast -std=c++17 -pthread -fopenmp build/gtest_tlib_layout.o build/gtest_tlib_mtv.o build/gtest_tlib_shape.o build/gtest_tlib_strides.o build/gtest_tlib_ttv.o build/gtest_tlib_workload.o build/main.o -lgtest -lpthread -lgomp -lpthread -lm -lopenblas -o bin/main
Undefined symbols:
"__ZN7testing8internal30GetBoolAssertionFailureMessageB5cxx11ERKNS_15AssertionResultEPKcS5_S5_", referenced from:
__ZN30LayoutTest_inverse_layout_Test8TestBodyEv in gtest_tlib_layout.o
__ZN30LayoutTest_inverse_layout_Test8TestBodyEv in gtest_tlib_layout.o
__ZN30LayoutTest_inverse_layout_Test8TestBodyEv in gtest_tlib_layout.o
__ZN30LayoutTest_inverse_layout_Test8TestBodyEv in gtest_tlib_layout.o
__ZN28LayoutTest_inverse_mode_Test8TestBodyEv in gtest_tlib_layout.o
__ZN28LayoutTest_inverse_mode_Test8TestBodyEv in gtest_tlib_layout.o
__ZN29LayoutTest_output_layout_Test8TestBodyEv in gtest_tlib_layout.o
__ZN29LayoutTest_output_layout_Test8TestBodyEv in gtest_tlib_layout.o
__ZN29LayoutTest_output_layout_Test8TestBodyEv in gtest_tlib_layout.o
__ZN32LayoutTest_generate_4_order_Test8TestBodyEv in gtest_tlib_layout.o
__ZN32LayoutTest_generate_4_order_Test8TestBodyEv in gtest_tlib_layout.o
__ZN32LayoutTest_generate_4_order_Test8TestBodyEv in gtest_tlib_layout.o
__ZN32LayoutTest_generate_4_order_Test8TestBodyEv in gtest_tlib_layout.o
__ZN32LayoutTest_generate_4_order_Test8TestBodyEv in gtest_tlib_layout.o
__ZN32LayoutTest_generate_4_order_Test8TestBodyEv in gtest_tlib_layout.o
__ZN32LayoutTest_generate_4_order_Test8TestBodyEv in gtest_tlib_layout.o
__ZN32LayoutTest_generate_1_order_Test8TestBodyEv in gtest_tlib_layout.o
__ZN32LayoutTest_generate_1_order_Test8TestBodyEv in gtest_tlib_layout.o
__ZN32LayoutTest_generate_1_order_Test8TestBodyEv in gtest_tlib_layout.o
__ZN32LayoutTest_generate_1_order_Test8TestBodyEv in gtest_tlib_layout.o
__ZN32LayoutTest_generate_1_order_Test8TestBodyEv in gtest_tlib_layout.o
__ZN32LayoutTest_generate_1_order_Test8TestBodyEv in gtest_tlib_layout.o
__ZN32LayoutTest_generate_2_order_Test8TestBodyEv in gtest_tlib_layout.o
__ZN32LayoutTest_generate_2_order_Test8TestBodyEv in gtest_tlib_layout.o
__ZN32LayoutTest_generate_2_order_Test8TestBodyEv in gtest_tlib_layout.o
__ZN32LayoutTest_generate_2_order_Test8TestBodyEv in gtest_tlib_layout.o
__ZN32LayoutTest_generate_3_order_Test8TestBodyEv in gtest_tlib_layout.o
__ZN32LayoutTest_generate_3_order_Test8TestBodyEv in gtest_tlib_layout.o
__ZN32LayoutTest_generate_3_order_Test8TestBodyEv in gtest_tlib_layout.o
__ZN32LayoutTest_generate_3_order_Test8TestBodyEv in gtest_tlib_layout.o
__ZN31LayoutTest_is_valid_layout_Test8TestBodyEv in gtest_tlib_layout.o
__ZN31LayoutTest_is_valid_layout_Test8TestBodyEv in gtest_tlib_layout.o
__ZN23ShapeTest_is_valid_Test8TestBodyEv in gtest_tlib_shape.o
__ZN23ShapeTest_is_valid_Test8TestBodyEv in gtest_tlib_shape.o
__ZN23ShapeTest_is_valid_Test8TestBodyEv in gtest_tlib_shape.o
__ZN23ShapeTest_is_valid_Test8TestBodyEv in gtest_tlib_shape.o
__ZN23ShapeTest_is_valid_Test8TestBodyEv in gtest_tlib_shape.o
__ZN23ShapeTest_is_valid_Test8TestBodyEv in gtest_tlib_shape.o
__ZN23ShapeTest_is_valid_Test8TestBodyEv in gtest_tlib_shape.o
__ZN24ShapeTest_is_tensor_Test8TestBodyEv in gtest_tlib_shape.o
__ZN24ShapeTest_is_tensor_Test8TestBodyEv in gtest_tlib_shape.o
__ZN24ShapeTest_is_scalar_Test8TestBodyEv in gtest_tlib_shape.o
__ZN24ShapeTest_is_scalar_Test8TestBodyEv in gtest_tlib_shape.o
__ZN24ShapeTest_is_vector_Test8TestBodyEv in gtest_tlib_shape.o
__ZN24ShapeTest_is_vector_Test8TestBodyEv in gtest_tlib_shape.o
__ZN24ShapeTest_is_matrix_Test8TestBodyEv in gtest_tlib_shape.o
__ZN24ShapeTest_is_matrix_Test8TestBodyEv in gtest_tlib_shape.o
__ZZN36ShapeTest_generate_output_shape_Test8TestBodyEvENKUlRKT_RKT0_jE_clISt6vectorIS8_IjSaIjEESaISA_EESC_EEDaS2_S5_j.constprop.0 in gtest_tlib_shape.o
__ZZN36ShapeTest_generate_output_shape_Test8TestBodyEvENKUlRKT_RKT0_jE_clISt6vectorIS8_IjSaIjEESaISA_EESC_EEDaS2_S5_j.constprop.0 in gtest_tlib_shape.o
__ZZN28StridesTest_TensorShape_Test8TestBodyEvENKUlmRKT_RKT0_RKT1_RKT2_E_clISt6vectorImSaImEESG_SG_SG_EEDamS2_S5_S8_SB_.constprop.0 in gtest_tlib_strides.o
__ZZN28StridesTest_TensorShape_Test8TestBodyEvENKUlmRKT_RKT0_RKT1_RKT2_E_clISt6vectorImSaImEESG_SG_SG_EEDamS2_S5_S8_SB_.constprop.0 in gtest_tlib_strides.o
__ZZN28StridesTest_TensorShape_Test8TestBodyEvENKUlmRKT_RKT0_RKT1_RKT2_E_clISt6vectorImSaImEESG_SG_SG_EEDamS2_S5_S8_SB_.constprop.0 in gtest_tlib_strides.o
__ZN28StridesTest_ScalarShape_Test8TestBodyEv in gtest_tlib_strides.o
__ZN28StridesTest_VectorShape_Test8TestBodyEv in gtest_tlib_strides.o
__ZN28StridesTest_VectorShape_Test8TestBodyEv in gtest_tlib_strides.o
__ZN28StridesTest_VectorShape_Test8TestBodyEv in gtest_tlib_strides.o
__ZN28StridesTest_MatrixShape_Test8TestBodyEv in gtest_tlib_strides.o
__ZN28StridesTest_MatrixShape_Test8TestBodyEv in gtest_tlib_strides.o
__ZN28StridesTest_MatrixShape_Test8TestBodyEv in gtest_tlib_strides.o
__ZN28StridesTest_MatrixShape_Test8TestBodyEv in gtest_tlib_strides.o
"__ZN7testing8internal20StringStreamToStringEPNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEE", referenced from:
__ZN7testing8internal24CmpHelperFloatingPointEQIfEENS_15AssertionResultEPKcS4_T_S5_ in gtest_tlib_ttv.o
__ZN7testing8internal24CmpHelperFloatingPointEQIfEENS_15AssertionResultEPKcS4_T_S5_ in gtest_tlib_ttv.o
"__ZN7testing8internal9EqFailureEPKcS2_RKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESA_b", referenced from:
__ZN7testing8internal18CmpHelperEQFailureIdmEENS_15AssertionResultEPKcS4_RKT_RKT0_ in gtest_tlib_mtv.o
__ZN7testing8internal18CmpHelperEQFailureIfmEENS_15AssertionResultEPKcS4_RKT_RKT0_ in gtest_tlib_mtv.o
__ZN7testing8internal11CmpHelperEQIjmEENS_15AssertionResultEPKcS4_RKT_RKT0_.constprop.0 in gtest_tlib_strides.o
__ZN7testing8internal18CmpHelperEQFailureImmEENS_15AssertionResultEPKcS4_RKT_RKT0_ in gtest_tlib_strides.o
__ZN7testing8internal18CmpHelperEQFailureImjEENS_15AssertionResultEPKcS4_RKT_RKT0_ in gtest_tlib_strides.o
__ZN7testing8internal24CmpHelperFloatingPointEQIfEENS_15AssertionResultEPKcS4_T_S5_ in gtest_tlib_ttv.o
__ZN7testing8internal18CmpHelperEQFailureIjjEENS_15AssertionResultEPKcS4_RKT_RKT0_ in gtest_tlib_workload.o
ld: symbol(s) not found
collect2: error: ld returned 1 exit status
make: *** [bin/main] Error 1
What do I miss? gtest
and OpenBLAS
are installed and work fine otherwise.
[==========] 31 tests from 5 test suites ran. (95552 ms total)
[ PASSED ] 28 tests.
[ FAILED ] 3 tests, listed below:
[ FAILED ] MatrixTimesVector.Gemv
[ FAILED ] MatrixTimesVector.GemvParallel
[ FAILED ] MatrixTimesVector.GemvBLAS
3 FAILED TESTS
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.