You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I also encountered the error CL_OUT_OF_RESOURCES.
In order to use opencl, you must split a dimension of an array and bind the results to threadIdx and blockIdx.
I guess this error occurs because three reasons:
You split a inner dimension instead of an outer dimension.
You split a dimension whose length is short.
Maybe the split factor is too big.
I suggest:
Split the out dimension first
Split dimension with big length (you can reorder the array if needet)
Activity
[-][Tutorial] Tutorial on using OpenCL on ARM Board[/-][+][Tutorial] Use OpenCL on ARM Board[/+]ma-xiaodong commentedon Oct 26, 2017
Here is an example of using OpenCL on ARM Board.
https://github.com/ma-xiaodong/tvm_tuning/blob/master/02_conv_order.py
which corresponding the program
http://docs.tvmlang.org/tutorials/optimize/opt_conv_cuda.html#sphx-glr-tutorials-optimize-opt-conv-cuda-py
of optimizing conv on cuda.
kaishijeng commentedon Oct 27, 2017
ma-xiaodong:
Are you to tune Mali-T860 opencl to pass test_topi_conv2d_nchw.py unittest in topi/tests/python directory?
I always encounter an error because of insufficient resources on a firefly3399 platform running Ubuntu 16.04
#530
Thanks,
ma-xiaodong commentedon Oct 28, 2017
I also encountered the error CL_OUT_OF_RESOURCES.
In order to use opencl, you must split a dimension of an array and bind the results to threadIdx and blockIdx.
I guess this error occurs because three reasons:
I suggest:
ma-xiaodong commentedon Oct 28, 2017
#530
kaishijeng commentedon Oct 28, 2017
Which file do I need to change threadidx and blockidx? Is there a program which can tune to get optimal values of threadidx and blockidx?
ma-xiaodong commentedon Oct 28, 2017
Here is an example of using OpenCL on ARM Board.
https://github.com/ma-xiaodong/tvm_tuning/blob/master/02_conv_order.py
kaishijeng commentedon Nov 3, 2017
@ma-xiaodong
Why are you not using the following conv2d modules
https://github.com/dmlc/tvm/blob/master/topi/python/topi/cuda/conv2d_nchw.py
https://github.com/dmlc/tvm/blob/master/topi/python/topi/cuda/conv2d_hwcn.py
conv2d_nchw.py looks more complex than your 02_conv_order.py.
My firefly 3399 has a problem to pass conv2d_nchw.py due to insufficient resources.
Thanks,
ndcuong91 commentedon Jul 4, 2018
@ma-xiaodong i couldn't access to your file: https://github.com/ma-xiaodong/tvm_tuning/blob/master/02_conv_order.py, can you update the link?
ma-xiaodong commentedon Jul 5, 2018
@titikid My example is too old, so I remove it. TVM already has good example.
https://github.com/dmlc/tvm/blob/master/topi/python/topi/cuda/conv2d_hwcn.py
ndcuong91 commentedon Jul 5, 2018
@ma-xiaodong i see. Anyway, after use smaller split factor in conv2d_nchw.py as your hint i could solve my issue related to openCL. Thank you
Squashed commit
Squashed commit
User-Interface: Tune-TIR (apache#525)
Squashed commit
Squashed commit
Squashed commit
Squashed commit
Squashed commit
Squashed commit
Squashed commit
Squashed commit
Squashed commit
Squashed commit
Squashed commit
Squashed commit
Squashed commit
Squashed commit