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
fengzch-das
nunchaku
Commits
618f3078
Commit
618f3078
authored
Mar 29, 2025
by
Hyunsung Lee
Committed by
Zhekai Zhang
Apr 01, 2025
Browse files
Remove casting warning
parent
aece8f87
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
nunchaku/csrc/gemm.h
nunchaku/csrc/gemm.h
+2
-2
No files found.
nunchaku/csrc/gemm.h
View file @
618f3078
...
@@ -67,7 +67,7 @@ public:
...
@@ -67,7 +67,7 @@ public:
const
int
offset
=
((
bm
*
(
K
/
WARP_K
)
+
bn
)
*
NUM_WARPS
+
warpId
)
*
WARP_M_TILES
*
WARP_SIZE
*
4
;
const
int
offset
=
((
bm
*
(
K
/
WARP_K
)
+
bn
)
*
NUM_WARPS
+
warpId
)
*
WARP_M_TILES
*
WARP_SIZE
*
4
;
for
(
int
i
=
0
;
i
<
16
;
i
++
)
{
for
(
int
i
=
0
;
i
<
16
;
i
++
)
{
assert
(
offset
+
i
<
x
.
numel
()
/
4
);
assert
(
static_cast
<
size_t
>
(
offset
+
i
)
<
x
.
numel
()
/
4
);
uint32_t
val
=
x
.
data_ptr
<
uint32_t
>
()[
offset
+
i
];
uint32_t
val
=
x
.
data_ptr
<
uint32_t
>
()[
offset
+
i
];
ss
<<
"{"
;
ss
<<
"{"
;
for
(
int
j
=
0
;
j
<
8
;
j
++
)
{
for
(
int
j
=
0
;
j
<
8
;
j
++
)
{
...
@@ -110,4 +110,4 @@ public:
...
@@ -110,4 +110,4 @@ public:
spdlog
::
debug
(
"ascales = {}"
,
dumpTensorBF16
(
ascales
));
spdlog
::
debug
(
"ascales = {}"
,
dumpTensorBF16
(
ascales
));
}
}
};
};
\ No newline at end of file
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