Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Task00 Дмитрий Артюхов HSE #52

Closed
wants to merge 3 commits into from

Conversation

dmitrii-artuhov
Copy link

@dmitrii-artuhov dmitrii-artuhov commented Sep 22, 2024

Локальный вывод

$ ./enumDevices
Number of OpenCL platforms: 3
Platform #1/3
    Platform name: NVIDIA CUDA
    Vendor: NVIDIA Corporation
    Number of devices: 1
    Device #1/1
        Name: NVIDIA GeForce MX150
        Type: GPU
        Global Memory: 2047 MB
        Compute Units: 3
        Work-group Size: 1024
Platform #2/3
    Platform name: Intel(R) OpenCL
    Vendor: Intel(R) Corporation
    Number of devices: 2
    Device #1/2
        Name: Intel(R) UHD Graphics 620
        Type: GPU
        Global Memory: 6507 MB
        Compute Units: 24
        Work-group Size: 256
    Device #2/2
        Name: Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz
        Type: CPU
        Global Memory: 16268 MB
        Compute Units: 8
        Work-group Size: 8192
Platform #3/3
    Platform name: Intel(R) OpenCL
    Vendor: Intel(R) Corporation
    Number of devices: 1
    Device #1/1
        Name: Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz
        Type: CPU
        Global Memory: 16268 MB
        Compute Units: 8
        Work-group Size: 8192

Вывод Github CI

$ ./enumDevices
Number of OpenCL platforms: 1
Platform #1/1
    Platform name: Intel(R) CPU Runtime for OpenCL(TM) Applications
    Vendor: Intel(R) Corporation
    Number of devices: 1
    Device #1/1
        Name: AMD EPYC 7763 64-Core Processor                
        Type: CPU
        Global Memory: 15991 MB
        Compute Units: 4
        Work-group Size: 8192


printDeviceInfo<char[]>(device, CL_DEVICE_NAME, " Name: ");
printDeviceInfo<cl_device_type>(device, CL_DEVICE_TYPE, " Type: ");
printDeviceInfo<cl_ulong>(device, CL_DEVICE_GLOBAL_MEM_SIZE, " Global Memory: ");
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Память лучше выводить хотя бы в мегабайтах, а то тяжело воспринимать

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Поправил

@simiyutin
Copy link
Collaborator

Все хорошо, задача зачтена, 5/5 баллов 👍

@simiyutin simiyutin closed this Sep 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants