Skip to content

Commit cfb40d7

Browse files
committed
Fixed a bug in the test program.
Signed-off-by: Gail Lyons <[email protected]>
1 parent 267ad4f commit cfb40d7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

sycl/test/config/select_device.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,10 @@ static std::vector<DevDescT> getAllowListDesc(std::string allowList) {
179179

180180
int main() {
181181
bool passed = false;
182-
std::string sycl_be = getenv("SYCL_BE");
182+
std::string sycl_be("PI_OPENCL");
183+
if (getenv("SYCL_BE")) {
184+
sycl_be = getenv("SYCL_BE");
185+
}
183186

184187
// Test the GPU devices name and version number.
185188
if (getenv("WRITE_DEVICE_INFO")) {

0 commit comments

Comments
 (0)