Skip to content

[SYCL][HIP][AMD] Vendor ID for HIP AMD is not correct #6123

Closed
@densamoilov

Description

@densamoilov

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghipIssues related to execution on HIP backend.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions