Skip to content

Commit ea934f7

Browse files
authored
Remove inappropriate warnings from triton compile_module_from_src (#3089)
Signed-off-by: Anatoly Myachev <[email protected]>
1 parent 4e46df3 commit ea934f7

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

python/triton/runtime/build.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def _build(name, src, srcdir, library_dirs, include_dirs, libraries, extra_compi
103103
if os.getenv("VERBOSE"):
104104
print(" ".join(cc_cmd))
105105

106-
ret = subprocess.check_call(cc_cmd)
106+
ret = subprocess.check_call(cc_cmd, stdout=subprocess.DEVNULL)
107107
if ret == 0:
108108
return so
109109
# extra arguments

third_party/intel/backend/arch_parser.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
//
77
//===----------------------------------------------------------------------===//
88

9+
#include <iostream>
10+
911
#include <sycl/sycl.hpp>
1012

1113
#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
@@ -31,7 +33,7 @@ static PyObject *parseDeviceArch(PyObject *self, PyObject *args) {
3133
arch = "lnl";
3234
break;
3335
default:
34-
printf("sycl_arch = %d", sycl_arch);
36+
std::cerr << "sycl_arch not recognized: " << (int)sycl_arch << std::endl;
3537
}
3638

3739
return Py_BuildValue("s", arch.c_str());

0 commit comments

Comments
 (0)