You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by GitBox <gi...@apache.org> on 2019/11/08 22:28:54 UTC

[GitHub] [incubator-tvm] yzhliu commented on a change in pull request #4268: [Codegen][cuda-fp16] fallback to fp32 simulation when cuda arch < sm53

yzhliu commented on a change in pull request #4268: [Codegen][cuda-fp16] fallback to fp32 simulation when cuda arch < sm53
URL: https://github.com/apache/incubator-tvm/pull/4268#discussion_r344391770
 
 

 ##########
 File path: src/codegen/codegen_cuda.cc
 ##########
 @@ -50,6 +50,9 @@ void CodeGenCUDA::AddFunction(LoweredFunc f) {
 
 std::string CodeGenCUDA::Finish() {
   if (enable_fp16_) {
+    static constexpr const char* _cuda_half_t_def =
+    #include "literal/cuda_half_t.txt"
 
 Review comment:
   @tqchen addressed.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services