Other Parts Discussed in Thread: AM5728
Hi all,
I have sucessfully ran some example TIDL code on the AM572x EVM board. Mainly Cifar classifier and jDetNet SSD with the python api.
Everything works fine when using EVE+DSP for jdetnet, but our actual target hardware (AM5728) only has one DSP.
I tried various CMEM sizes (up to 512mb) and verified with the opencl platforms example.
But: The memory allocation for the single DSP case still fails. Doesnt increasing CMEM size adress this issue? If I am mistaken, please provide an explanation - I would like to learn.
Here is some code excerpt:
config = tidl.Configuration()
config.read_from_file(configFile)
# prints: "Network needs 64.0 + 9.0 mb heap"
print("Network needs",config.network_heap_size/1024**2,"+",config.param_heap_size/1024**2,"mb heap")
# set all layers to group 1
config.layer_index_to_layer_group_id = {i:1 for i in range(43)}
# fails with: "TidlError: TIDL Error: [src/execution_object.cpp, Wait, 617]: Memory allocation failed on device"
dsp = tidl.Executor(tidl.DeviceType.DSP, set([tidl.DeviceId.ID0]),config,1)