Skip to content

Commit 4e70d66

Browse files
committed
Fix wrong return type in set_bit in cuda kernel.
PR: USTC-KnowledgeComputingLab/qmb#37 Signed-off-by: Hao Zhang <[email protected]>
2 parents f2b7d00 + ed57e8b commit 4e70d66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

qmb/_hamiltonian_cuda.cu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ __device__ bool get_bit(std::uint8_t* data, std::uint8_t index) {
4242
return ((*data) >> index) & 1;
4343
}
4444

45-
__device__ bool set_bit(std::uint8_t* data, std::uint8_t index, bool value) {
45+
__device__ void set_bit(std::uint8_t* data, std::uint8_t index, bool value) {
4646
if (value) {
4747
*data |= (1 << index);
4848
} else {

0 commit comments

Comments
 (0)