Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
tilelang
Commits
4c8b9ada
Unverified
Commit
4c8b9ada
authored
Nov 19, 2025
by
Lei Wang
Committed by
GitHub
Nov 19, 2025
Browse files
[Bugfix] Supply missing `T.print` for bool type (#1279)
* fix for bool dtype * lint fix * fix * ci fix
parent
74da3696
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
1 deletion
+17
-1
3rdparty/tvm
3rdparty/tvm
+1
-1
src/tl_templates/cuda/debug.h
src/tl_templates/cuda/debug.h
+16
-0
No files found.
tvm
@
f4affc7f
Compare
f4105f89
...
f4affc7f
Subproject commit f4
105f89a646622acc9818584d1d91e2ca3f533d
Subproject commit f4
affc7f31e36e7f88c0fe1c715b03215c6a0c62
src/tl_templates/cuda/debug.h
View file @
4c8b9ada
...
@@ -29,6 +29,14 @@ __device__ void debug_print_var<signed char>(const char *msg, signed char var) {
...
@@ -29,6 +29,14 @@ __device__ void debug_print_var<signed char>(const char *msg, signed char var) {
threadIdx
.
z
,
var
);
threadIdx
.
z
,
var
);
}
}
// Specialization for plain char type
template
<
>
__device__
void
debug_print_var
<
char
>
(
const
char
*
msg
,
char
var
)
{
printf
(
"msg='%s' BlockIdx=(%d, %d, %d), ThreadIdx=(%d, %d, %d): dtype=char "
"value=%d
\n
"
,
msg
,
blockIdx
.
x
,
blockIdx
.
y
,
blockIdx
.
z
,
threadIdx
.
x
,
threadIdx
.
y
,
threadIdx
.
z
,
(
int
)
var
);
}
// Specialization for unsigned char type
// Specialization for unsigned char type
template
<
>
template
<
>
__device__
void
debug_print_var
<
unsigned
char
>
(
const
char
*
msg
,
__device__
void
debug_print_var
<
unsigned
char
>
(
const
char
*
msg
,
...
@@ -58,6 +66,14 @@ __device__ void debug_print_var<unsigned int>(const char *msg,
...
@@ -58,6 +66,14 @@ __device__ void debug_print_var<unsigned int>(const char *msg,
threadIdx
.
z
,
var
);
threadIdx
.
z
,
var
);
}
}
// Specialization for bool type
template
<
>
__device__
void
debug_print_var
<
bool
>
(
const
char
*
msg
,
bool
var
)
{
printf
(
"msg='%s' BlockIdx=(%d, %d, %d), ThreadIdx=(%d, %d, %d): dtype=bool "
"value=%s
\n
"
,
msg
,
blockIdx
.
x
,
blockIdx
.
y
,
blockIdx
.
z
,
threadIdx
.
x
,
threadIdx
.
y
,
threadIdx
.
z
,
var
?
"true"
:
"false"
);
}
// Specialization for float type
// Specialization for float type
template
<
>
__device__
void
debug_print_var
<
float
>
(
const
char
*
msg
,
float
var
)
{
template
<
>
__device__
void
debug_print_var
<
float
>
(
const
char
*
msg
,
float
var
)
{
printf
(
"msg='%s' BlockIdx=(%d, %d, %d), ThreadIdx=(%d, %d, %d): dtype=float "
printf
(
"msg='%s' BlockIdx=(%d, %d, %d), ThreadIdx=(%d, %d, %d): dtype=float "
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment