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 Василий Можаев SPbU #24

Closed
wants to merge 1 commit into from

Conversation

mozhaa
Copy link

@mozhaa mozhaa commented Sep 20, 2024

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

$ ./enumDevices
Number of OpenCL platforms: 2
Platform #1/2
    Platform name: Intel(R) CPU Runtime for OpenCL(TM) Applications
    Platform vendor: Intel(R) Corporation
        Device name: Intel(R) Core(TM) i7-8565U CPU @ 1.80GHz
        Device type: CPU
        Device mem size: 33536.4 MB
        Device profile: FULL_PROFILE
        Device profile: 18.1.0.0920
Platform #2/2
    Platform name: NVIDIA CUDA
    Platform vendor: NVIDIA Corporation
        Device name: NVIDIA GeForce MX130
        Device type: GPU
        Device mem size: 2092.89 MB
        Device profile: FULL_PROFILE
        Device profile: 550.107.02

Вывод Github CI

Number of OpenCL platforms: 1
Platform #1/1
    Platform name: Intel(R) CPU Runtime for OpenCL(TM) Applications
    Platform vendor: Intel(R) Corporation
        Device name: AMD EPYC 7763 64-Core Processor                
        Device type: CPU
        Device mem size: 16768.3 MB
        Device profile: FULL_PROFILE
        Driver version: 18.1.0.0920

@mozhaa
Copy link
Author

mozhaa commented Sep 20, 2024

добавил вывод github CI

// - Размер памяти устройства в мегабайтах
cl_ulong deviceMemSizeBytes;
OCL_SAFE_CALL(clGetDeviceInfo(device, CL_DEVICE_GLOBAL_MEM_SIZE, sizeof(cl_ulong), &deviceMemSizeBytes, nullptr));
std::cout << " Device mem size: " << deviceMemSizeBytes / 1000000.f << " MB" << std::endl;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Для консистентности с дальнейшими замерами в курсе лучше использовать двоичный мегабайт = 2^20 байт

@simiyutin
Copy link
Collaborator

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

@simiyutin simiyutin closed this Sep 20, 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