Hi @tqchen and @zxybach,

cc : @mbaret

What is a Composite Target ?

TVM being a multi-target compiler, it would be a bit confusing to use a Array 
of Targets as another Composite Target -- I think its the terminology what is 
confusing here.

A composite target sounds like a target that codegen intimately in a single 
codegen path for different devices rather than a structure that is used by TVM 
to trigger different codegen flows. I think we all agree we need a way to 
communicate this Options/Flags through out the lowering but I personally would 
not be in favor of attaching this to a (Composite) target -- that result in 
overloading the term "Target".

[quote="tqchen, post:5, topic:11372"]
We get the benefit of being able to tag, and record target
[/quote]

I believe we can still do it as the target is part of the CompilationConfig

[quote="tqchen, post:5, topic:11372"]
CompilationOption can appear as a field of sub-target of something else. 
Imagine that we need to offload a subgraph to another customized compilation, 
which may needs its own specification of the heterogenous “targets”.
[/quote]

CompilationConfig is supposed to contain attributes that are not specific to a 
target. Thus, they would be still accesible in the IRModule. Wont they ?

[quote="tqchen, post:5, topic:11372"]
Same API argument(Target) for both graph level compilation and operator level 
compilation.
[/quote]

This could also be said with respect to CompilationConfig being available for 
both graph level compilation and operator level compilation -- just that 
"targets" are part of CompilationConfig.

In a summary what we need to discuss is : 

* What is the best term to use to structure that holds information/flags that 
are target independent and hold the set of targets in the same time? 
* Moreover, it would be great to reserve the term "Composite" target to a 
target that intimately codegen to multiple devices without divergence in the 
compilation pathway.





---
[Visit 
Topic](https://discuss.tvm.apache.org/t/pre-rfc-compilation-configuration-representation/11372/6)
 to respond.

You are receiving this because you enabled mailing list mode.

To unsubscribe from these emails, [click 
here](https://discuss.tvm.apache.org/email/unsubscribe/38724dac9969b14422fddc5d4ef71ce2cae13feb51e53a7f59aea4cb48ebbc65).

Reply via email to