[Apache TVM Discuss] [Questions] How to view Host code generated for opencl target in TVM

2020-09-30 Thread Akhil via Apache TVM Discuss
I was trying to to compile a tensor expression code for an opencl target, and while inspecting the kernel generate by using the imported_modules attribute of the build variable there seemed to be a lot of arguments called stride1, stride2 and so on being passed to the kernel. Is there a way to

[Apache TVM Discuss] [Questions] Topi.sqrt and other functions throwing an error in opencl target

2020-09-30 Thread Akhil via Apache TVM Discuss
Hey I was trying to execute the functions given in topi (https://tvm.apache.org/docs/api/python/topi.html) using opencl target but only the ceil and floor operations seem to work the rest throws an error in tvm. Here is my code. > import tvm > > from tvm import te, topi > > import numpy as n

[Apache TVM Discuss] [Questions] TVM opencl local_work_size

2020-09-29 Thread Akhil via Apache TVM Discuss
Hey when generating code for an opencl target is there any way to set the local_work_size argument (which is set in the clEnqueueNDRangeKernel function) from the tvm expressions ?. --- [Visit Topic](https://discuss.tvm.apache.org/t/tvm-opencl-local-work-size/8031/1) to respond. You are

[Apache TVM Discuss] [Questions] AutoTVM how is the search space being generated

2020-09-29 Thread Akhil via Apache TVM Discuss
Hey @jcf94 and @comaniac thanks for the response , I was just trying to learn the compiler flow of tvm and how if needed new rules could be added which are hardware specific, As of now there is no immediate need, but thanks nevertheless. --- [Visit Topic](https://discuss.tvm.apache.org/

[Apache TVM Discuss] [Questions] AutoTVM how is the search space being generated

2020-09-27 Thread Akhil via Apache TVM Discuss
Thanks a lot @comaniac . Where could one get started when trying to add their own rules to generate sketches for new hardware ?. as mentioned in the paper (section 4.1) > On the other hand, the > derivation-based sketch generation in Ansor is flexible enough > to generate the required structur

[Apache TVM Discuss] [Questions] AutoTVM how is the search space being generated

2020-09-26 Thread Akhil via Apache TVM Discuss
Hey @comaniac thanks for the reference it as very helpful in understanding what the auto scheduler does. I had a few doubts 1) Is this auto scheduler already implemented in TVM or is it ongoing, as we were going through some of the files in the auto scheduler folder ([https://github.com/apache

[Apache TVM Discuss] [Questions] AutoTVM how is the search space being generated

2020-09-24 Thread Akhil via Apache TVM Discuss
Hey @comaniac Thanks. Are the hardware parameters like (num of threads, cache size) taken into consideration when auto scheduling is used. Also how does auto scheduling generate schedules from scratch. Does it look at every loop and try to figure out the best transformation based on execution

[Apache TVM Discuss] [Questions] AutoTVM how is the search space being generated

2020-09-24 Thread Akhil via Apache TVM Discuss
After looking at the tutorial for auto tuning in auto tvm, there seems to two methods to create a search space, one where the user gives an array if possible values to search and the other where tvm generates this space. In the latter case how does tvm model the search space equation, or is ju

[Apache TVM Discuss] [Questions] TVM opencl context how to choose device type as accelerator

2020-09-15 Thread Akhil via Apache TVM Discuss
Hey @FrozenGene Could you point me to some documentation on AOCL is intoduces as a device type. Also in the aocl folder inside src/runtime/opencl/aocl/aocl_device_api.cc , how exactly is aocl choosing a device as it is not looking through all the platforms as opencl is ? --- [Visit Topi

[Apache TVM Discuss] [Questions] TVM opencl context how to choose device type as accelerator

2020-09-09 Thread Akhil via Apache TVM Discuss
Hey @aurel333 Thanks a ton for that fix. The update you have given will try choose the first platform even if couldn't find an accelerator device. Would it be better to continue and check the next platform instead of trying to change the device_type and look for devices ? --- [Visit Topi

[Apache TVM Discuss] [Questions] TVM opencl context how to choose device type as accelerator

2020-09-06 Thread Akhil via Apache TVM Discuss
So I am using device accelerator which uses opencl (pocl). Here when I try to run opencl code using tvm on this device I have to fetch the context here as tvm.cl() but it does not use the device type as accelerator unless I set the dtype = CL_DEVICE_TYPE_ACCELERATOR, in the tvm/src/runtime/o

[Apache TVM Discuss] [Questions] Error when executing code targeted to opencl

2020-09-06 Thread Akhil via Apache TVM Discuss
Hey @aurel333 thanks , Like you said the llvm which I used to build tvm was the wrong one. --- [Visit Topic](https://discuss.tvm.apache.org/t/error-when-executing-code-targeted-to-opencl/7781/3) to respond. You are receiving this because you enabled mailing list mode. To unsubscribe fro

[Apache TVM Discuss] [Questions] How does TVM choose the platform and device

2020-09-04 Thread Akhil via Apache TVM Discuss
Hey @jcf94, I was looking into the opencl_device_type.cc file and noticed that depending on which context was used in the python code like (tvm.cpu, tvm.gpu, tvm.opencl) it chooses a device type and sets the dtype accordingly. When exactly is the dtype set to the CL_DEVICE_TYPE_ACCELERATOR,