Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

Commit 0eae0ff

Browse files
authored
[BFloat16] Fix verify_logic test (#911)
1 parent 44ef815 commit 0eae0ff

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

SYCL/BFloat16/bfloat16_type.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ void verify_logic(queue &q, buffer<float, 1> &a, buffer<float, 1> &b,
159159
CVal /= 2.0;
160160
} else
161161
CVal += BVal;
162+
C[index] = CVal;
162163
}
163164
}
164165
});
@@ -172,7 +173,7 @@ int main() {
172173

173174
// TODO: replace is_gpu check with extension check when the appropriate part
174175
// of implementation ready (aspect)
175-
if (!dev.is_gpu()) {
176+
if (!dev.is_gpu() && !dev.is_cpu()) {
176177
std::cout << "This device doesn't support bfloat16 conversion feature"
177178
<< std::endl;
178179
return 0;

0 commit comments

Comments
 (0)