Closed
Description
SYCL API returns a vendor ID for HIP AMD that is equal to vendor ID for NVIDIA - 4318 (10DE).
Reproducer:
#include <CL/sycl.hpp>
#include <iostream>
int main() {
auto dev = sycl::device(sycl::gpu_selector{});
auto vid = dev.template get_info<sycl::info::device::vendor_id>();
std::cout << vid << std::endl;
auto name = dev.template get_info<sycl::info::device::name>();
std::cout << name << std::endl;
auto vendor = dev.template get_info<sycl::info::device::vendor>();
std::cout << vendor << std::endl;
return 0;
}
Compile command:
clang++ -fsycl ./1.cpp
Run command:
./a.out
Output:
4098
gfx908:sramecc+:xnack-
Advanced Micro Devices, Inc.
Run command:
SYCL_DEVICE_FILTER=hip ./a.out
Output:
4318
gfx908:sramecc+:xnack-
AMD Corporation
Compiler commit: 92cfd53