Mxnet Source Read 2

Source: Internet
Author: User
Tags mxnet

Mxnet/src/storage/gpu_device_storage.h

Similar to cpu_device_storage.h is defined by class Gpudevicestorage with level two namespaces mxnet and storage, with two static member functions inside

Alloc and free implementations are implemented by invoking the Cuda API Cudamalloc and Cudafree, while the CPU portion is not logged when the memory request and the release error are written with log information.

Personal feelings include the header file is a bit large, can be more detailed only include logging.h only.

At the same time for CUDA return error detection more than a cudaerrorcudartunloading not accepted, the official document gives two value for! Cudasuccess should be treated as errors, and there might be some logic in the side.

Even a hardware-driven error should be wrong, but there is no error in dealing with it.

Mxnet Source Read 2

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.