Git Product home page Git Product logo

Comments (3)

pfultz2 avatar pfultz2 commented on July 30, 2024

This is happening in the hipModuleLoad in MIOpen, not when allocating the device buffers for the network. It looks like HIP reports hipErrorOutOfMemory when hsa_memory_allocate fails, here, which could fail for other reasons than out of memory. Try running with ltrace -e 'hsa_*' ./alexnet to get the error status for hsa functions.

from miopen.

masahi avatar masahi commented on July 30, 2024

Thanks, here is relevant portion of the output.
hsa_memory_allocate(0x29fc8d0, 0, 0x7ffebf1623f8, 0xfffffffffffab834) is returning 4097 (= 0x1001, HSA_STATUS_ERROR_INVALID_ARGUMENT).

Here, the size argument to hsa_memory_allocate is 0. This happens because the input hsaco file is empty, which seems definitely wrong.

Do you have any idea why this is happening?

[INFO] Conv(11x11,pad=2,s=4) (128,3,224,224)->(128,64,55,55): 7.885 ms
runcl -DMLO_NRN_GROUP_SZ0=256 -DMLO_NRN_GROUP_SZ1=1 -DMLO_NRN_OP_ID=3 -DMLO_N_PIXS_OFF=0 -DMLO_MAP_SZ=24780800 -DMLO_MAP_SZ_ALIGNED=6195200 -DMLO_READ_UNIT=4 src/Kernels/MIOpenNeuron.cl -k MIOpenNeuronFwd -dumpilisa -r 10 if#0: if#0: if#0: iv#0 6195200,1,1/256,1,1
key: miopenActivationForward,64x55x55x3x3x64x55x55x128xNCHWxFP32x1
Kernel filename: MIOpenNeuron.cl
libhip_hcc.so->hsa_agent_iterate_regions(0x28aa0b0, 0x7f68c5a3d160, 0x7ffebf162418, 0 <unfinished ...>
libhip_hcc.so->hsa_region_get_info(0x28aa4c0, 0, 0x7ffebf1623a4, 1) = 0
libhip_hcc.so->hsa_region_get_info(0x28aa4c0, 1, 0x7ffebf1623a0, 0xfffffffffffab814) = 0
libhip_hcc.so->hsa_region_get_info(0x28aa520, 0, 0x7ffebf1623a4, 0xfffffffffffab834) = 0
libhip_hcc.so->hsa_region_get_info(0x29fc8d0, 0, 0x7ffebf1623a4, 0xfffffffffffab814) = 0
libhip_hcc.so->hsa_region_get_info(0x29fc8d0, 1, 0x7ffebf1623a0, 0xfffffffffffab814) = 0
libhip_hcc.so->hsa_region_get_info(0x29fc950, 0, 0x7ffebf1623a4, 0xfffffffffffab834) = 0
libhip_hcc.so->hsa_region_get_info(0x29fc950, 1, 0x7ffebf1623a0, 0xfffffffffffab814) = 0
<... hsa_agent_iterate_regions resumed> ) = 0
libhip_hcc.so->hsa_memory_allocate(0x29fc8d0, 0, 0x7ffebf1623f8, 0xfffffffffffab834) = 4097
libhip_hcc.so->hsa_executable_destroy(0, 0, 0x29205e8, 0) = 4113
libhip_hcc.so->hsa_code_object_destroy(0, 0, 4113, 0) = 4112
libhip_hcc.so->hsa_memory_free(0, 0, 4112, 0) = 0
MIOpen Error: /home/masa/MIOpen/src/hipoc/hipoc_program.cpp:96: Failed creating module hipErrorOutOfMemory
error: 'StatusUnknownError '(7) at ./layers.hpp:277

from miopen.

masahi avatar masahi commented on July 30, 2024

Ah, after I deleted kernel caches in .cache/miopen, it worked.
I can even run vgg 19 and resnet 101 benchmark. This is great.

Just saying, raising hipErrorOutOfMemory error when hsa_memory_allocate can fail for other reasons is confusing...

Thanks!

from miopen.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.