Skip to content

Commit cebe7da

Browse files
authored
[SYCL][HIP] Display the backend name in intel-ext-device.cpp (#9688)
1 parent 54fcf80 commit cebe7da

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sycl/test-e2e/Basic/intel-ext-device.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ int main(int argc, char **argv) {
5353
std::cout << "OpenCL" << std::endl;
5454
} else if (plt.get_backend() == backend::ext_oneapi_cuda) {
5555
std::cout << "CUDA" << std::endl;
56+
} else if (plt.get_backend() == backend::ext_oneapi_hip) {
57+
std::cout << "HIP" << std::endl;
5658
} else {
5759
std::cout << "Unknown" << std::endl;
5860
}

0 commit comments

Comments
 (0)