Skip to content
This repository was archived by the owner on Nov 17, 2023. It is now read-only.
This repository was archived by the owner on Nov 17, 2023. It is now read-only.

mxnet::cpp::NDArray::WaitAll() take about 160ms on gtx1080ti #13245

Description

@bigtiger90

here are codes:
tValRestart;
net271_executor->Forward(false);
std::cout << "Forward use " << tValDuration << " ms" << std::endl;
tValRestart;
auto targetx = net271_executor->outputs[0].Copy(global_cpu_ctx);
auto targety = net271_executor->outputs[1].Copy(global_cpu_ctx);
auto targetw = net271_executor->outputs[2].Copy(global_cpu_ctx);
auto targeth = net271_executor->outputs[3].Copy(global_cpu_ctx);
auto softmax_score = net271_executor->outputs[4].Copy(global_cpu_ctx);
auto penalty_t = net271_executor->outputs[5].Copy(global_cpu_ctx);
std::cout << "copy cpu use " << tValDuration << " ms" << std::endl;
tValRestart;
mxnet::cpp::NDArray::WaitAll();
std::cout << "waitall use " << tValDuration << " ms" << std::endl;

Is that normal? 6 outputs are float-type data

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions