tkonolige commented on code in PR #11906:
URL: https://github.com/apache/tvm/pull/11906#discussion_r907550365


##########
src/target/codegen.cc:
##########
@@ -54,6 +55,13 @@ runtime::Module Build(IRModule mod, Target target) {
 
   // the build function.
   std::string build_f_name = "target.build." + target->kind->name;
+  if (target->kind->name == "llvm" && !(_mm_getcsr() & 0x8040)) {
+    LOG(WARNING) << "Set FLUSH_TO_ZERO ON by default in Build on LLVM."<< 
std::endl;
+    //DAZ
+    _mm_setcsr( _mm_getcsr() | 0x0040 );
+    //FTZ
+    _mm_setcsr( _mm_getcsr() | 0x8000 );
+  }

Review Comment:
   Seems like this should be in the runtime not the build. What happens if 
someone builds remotely and then uploads the compiled artifact? Seems like 
flush to zero would not be changed.



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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to