Skip to content

Instantly share code, notes, and snippets.

@navyxliu
Created October 18, 2014 07:33
Show Gist options
  • Save navyxliu/f71b2b4bae90cb025ddb to your computer and use it in GitHub Desktop.
Save navyxliu/f71b2b4bae90cb025ddb to your computer and use it in GitHub Desktop.
bug010
#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;
}
@navyxliu
Copy link
Author

/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

@navyxliu
Copy link
Author

/tmp/cco.SFwbKH: In function Equal(float, float)': bug010/test.cpp:(.text+0x74): undefined reference toConcurrency::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 toConcurrency::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 toConcurrency::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 toConcurrency::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 toConcurrency::Test::amptest_math::fabs(float)'
/tmp/cco.SFwbKH:bug010/test.cpp:(.text+0x149): more undefined references to `Concurrency::Test::amptest_math::fabs(float)' follow

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment