You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

topk.cpp 524 B

12345678910111213141516171819202122
  1. #include "hcc_detail/hcc_defs_prologue.h"
  2. #include "test/common/topk.h"
  3. #include "test/rocm/fixture.h"
  4. using namespace megdnn;
  5. using namespace test;
  6. /*
  7. * !!!!!!!!!!!!!!!! IMPORTANT NOTE !!!!!!!!!!!!!!!!
  8. * The kernels are indepedently developed and tested in the
  9. * MegDNN/expr/cuda_topk directory. Here we only check some common cases.
  10. */
  11. TEST_F(ROCM, TOP_K) {
  12. run_topk_test<dtype::Float32>(handle_rocm());
  13. }
  14. TEST_F(ROCM, TOP_K_I32) {
  15. run_topk_test<dtype::Int32>(handle_rocm());
  16. }
  17. // vim: syntax=cpp.doxygen