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 04:31:14 UTC

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

tqchen 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_r343985590
 
 

 ##########
 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:
   consider still keep it as a header file so we can apply the license header, define a global constant

----------------------------------------------------------------
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