-
-
Save navyxliu/f71b2b4bae90cb025ddb to your computer and use it in GitHub Desktop.
#include <amptest.h> | |
#include <amptest_main.h> | |
using std::vector; | |
using namespace Concurrency; | |
using namespace Concurrency::Test; | |
bool Equal(float in1, float in2) __GPU | |
{ | |
return amptest_math::are_almost_equal(in1, in2); | |
} | |
runall_result test_main() | |
{ | |
return 1; | |
} |
/tmp/cco.SFwbKH: In function Equal(float, float)': bug010/test.cpp:(.text+0x74): undefined reference to
Concurrency::Test::amptest_math::isnan(float)'
bug010/test.cpp:(.text+0x80): undefined reference to Concurrency::Test::amptest_math::isnan(float)' bug010/test.cpp:(.text+0xb4): undefined reference to
Concurrency::Test::amptest_math::isnan(float)'
bug010/test.cpp:(.text+0xc2): undefined reference to Concurrency::Test::amptest_math::isnan(float)' bug010/test.cpp:(.text+0xe3): undefined reference to
Concurrency::Test::amptest_math::fabs(float)'
bug010/test.cpp:(.text+0xfc): undefined reference to Concurrency::Test::amptest_math::fabs(float)' bug010/test.cpp:(.text+0x10b): undefined reference to
Concurrency::Test::amptest_math::fabs(float)'
bug010/test.cpp:(.text+0x11f): undefined reference to Concurrency::Test::amptest_math::fabs(float)' bug010/test.cpp:(.text+0x13a): undefined reference to
Concurrency::Test::amptest_math::fabs(float)'
/tmp/cco.SFwbKH:bug010/test.cpp:(.text+0x149): more undefined references to `Concurrency::Test::amptest_math::fabs(float)' follow
/opt/enzo-debug/bin/pathamp -I/home/xliu/Development/pathscale/enzo-suite/amp-testsuite/trac/../amp_test_lib/inc/ -I/home/xliu/Development/pathscale/enzo-suite/amp-testsuite/trac/.. -L/home/xliu/Development/pathscale/enzo-suite/amp-testsuite/trac/../amp_test_lib/ -lamptest bug010/test.cpp