Liangxijun-1001 commented on PR #16190:
URL: https://github.com/apache/tvm/pull/16190#issuecomment-1838011461

   > Thakns @Liangxijun-1001 . I think in this case, maybe we should ignore the 
fwd_algo in entry(decided in compile time) and then use the algorithm returned 
by the miopenFindConvolutionForwardAlgorithm
   
   Currently, I am following the official invocation steps! In the inference 
stage, it is necessary to call the 'find' function when executing each 
convolution operation. This 'find' function will invoke the Find-DB operation 
to search the database. The following is the log after I have enabled the 
relevant macro switches.
   export MIOPEN_ENABLE_LOGGING=0
   export MIOPEN_LOG_LEVEL=7
   releated log:
   
   input_shape: (1, 3, 224, 224)
   precessing image: ../../dataset/images/test/kitten.jpg
   origina image shape: (720, 720, 3)
   resize image shape: (1, 3, 224, 224)
   MIOpen(HIP): Info [get_device_name] Raw device name: gfx1102
   MIOpen(HIP): Info [Handle] stream: 0, device_id: 0
   MIOpen(HIP): Info [get_device_name] Raw device name: gfx1102
   MIOpen(HIP): Info [SetStream] stream: 0, device_id: 0
   MIOpen(HIP): Info [GetFindModeValueImpl] MIOPEN_FIND_MODE = DYNAMIC_HYBRID(5)
   MIOpen(HIP): Info [AmdRocmMetadataVersionDetect] ROCm MD version 
AMDHSA_COv3, HIP version 5.7.23365, MIOpen version 2.20.0.f185a6464-dirty
   MIOpen(HIP): Info2 [GetWorkSpaceSize]
   MIOpen(HIP): Info [GetSolutions]
   MIOpen(HIP): Info [IsNetworkedFilesystem] Filesystem type at 
'/home/liangnus/.config/miopen/' is: 0xef53 'EXT2/3/4_SUPER_MAGIC'
   MIOpen(HIP): Info2 [GetLibPath] Lib Path: 
/opt/rocm-5.7.1/lib/libMIOpen.so.1.0.50701
   MIOpen(HIP): Info2 [GetInstalledPathFile] inexact find database search
   MIOpen(HIP): Info2 [GetInstalledPathFile] Iterating over find db directory 
/opt/rocm-5.7.1/share/miopen/db/
   MIOpen(HIP): Info [GetInstalledPathFile] Checking find db file: 
gfx900_64.HIP.fdb
   MIOpen(HIP): Info [GetInstalledPathFile] Checking find db file: 
gfx803_36.OpenCL.fdb
   MIOpen(HIP): Info [GetInstalledPathFile] Checking find db file: 
gfx90a68.HIP.fdb
   MIOpen(HIP): Info [GetInstalledPathFile] Checking find db file: 
gfx90a6e.HIP.fdb
   MIOpen(HIP): Info [GetInstalledPathFile] Checking find db file: 
gfx803_36.HIP.fdb
   MIOpen(HIP): Info [GetInstalledPathFile] Checking find db file: 
gfx906_64.OpenCL.fdb
   MIOpen(HIP): Info [GetInstalledPathFile] Checking find db file: 
gfx906_60.OpenCL.fdb
   MIOpen(HIP): Info [GetInstalledPathFile] Checking find db file: 
gfx906_60.HIP.fdb
   MIOpen(HIP): Info [GetInstalledPathFile] Checking find db file: 
gfx803_64.HIP.fdb
   MIOpen(HIP): Info [GetInstalledPathFile] Checking find db file: 
gfx1030_36.HIP.fdb
   MIOpen(HIP): Info [GetInstalledPathFile] Checking find db file: 
gfx900_64.OpenCL.fdb
   MIOpen(HIP): Info [GetInstalledPathFile] Checking find db file: 
gfx900_56.HIP.fdb
   MIOpen(HIP): Info [GetInstalledPathFile] Checking find db file: 
gfx906_64.HIP.fdb
   MIOpen(HIP): Info [GetInstalledPathFile] Checking find db file: 
gfx90878.HIP.fdb
   MIOpen(HIP): Info [GetInstalledPathFile] Checking find db file: 
gfx900_56.OpenCL.fdb
   MIOpen(HIP): Info [GetInstalledPathFile] Checking find db file: 
gfx803_64.OpenCL.fdb
   MIOpen(HIP): Info [GetInstalledPathFile] Checking find db file: 
gfx90878.OpenCL.fdb
   MIOpen(HIP): Info [Measure] ReadonlyRamDb::Prefetch time: 5e-05 ms
   MIOpen(HIP): Info [Measure] RamDb::Prefetch time: 0.206036 ms
   MIOpen(HIP): Info2 [ValidateUnsafe] DB file is newer than cache: 
3876535210630, 3116245083235
   MIOpen(HIP): Info2 [FindRecord] RamDb file is newer than cache, prefetching
   MIOpen(HIP): Info [Measure] RamDb::Prefetch time: 0.211256 ms
   MIOpen(HIP): Info2 [FindRecordUnsafe] Looking for key 
3-224-224-7x7-64-112-112-1-3x3-2x2-1x1-0-NCHW-FP32-F in cache for file 
/home/liangnus/.config/miopen//gfx1102_16.HIP.2_20_0_f185a6464-dirty.ufdb.txt
   MIOpen(HIP): Info2 [Measure] Db::FindRecord time: 0.286266 ms
   MIOpen(HIP): Info [GetWorkSpaceSize] 7375872
   MIOpen(HIP): Command [LogCmdFindConvolution] ./bin/MIOpenDriver conv -n 1 -c 
3 -H 224 -W 224 -k 64 -y 7 -x 7 -p 3 -q 3 -u 2 -v 2 -l 1 -j 1 -m conv -g 1 -F 1 
-t 1
   MIOpen(HIP): Info [FindConvFwdAlgorithm] requestAlgoCount = 1, workspace = 
7375872
   MIOpen(HIP): Info [GetSolutions]
   MIOpen(HIP): Info2 [ValidateUnsafe] DB file is newer than cache: 
3876535210630, 3116245344375
   MIOpen(HIP): Info2 [FindRecord] RamDb file is newer than cache, prefetching
   MIOpen(HIP): Info [Measure] RamDb::Prefetch time: 0.214552 ms
   MIOpen(HIP): Info2 [FindRecordUnsafe] Looking for key 
3-224-224-7x7-64-112-112-1-3x3-2x2-1x1-0-NCHW-FP32-F in cache for file 
/home/liangnus/.config/miopen//gfx1102_16.HIP.2_20_0_f185a6464-dirty.ufdb.txt
   MIOpen(HIP): Info2 [Measure] Db::FindRecord time: 0.262162 ms


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to