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 #17

Closed
wants to merge 1 commit into from

Conversation

Almos11
Copy link

@Almos11 Almos11 commented Sep 18, 2024

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

Number of OpenCL platforms: 1
Platform #1/1
Platform name: Intel(R) CPU Runtime for OpenCL(TM) Applications
Platform vendor: Intel(R) Corporation
Number of devices: 1
Name: AMD Ryzen 7 5800H with Radeon Graphics
Type: CPU
Global Memory Size: 13821 MB
Local Memory Size: 32768 bytes
Max Work Group Size: 8192

OCL_SAFE_CALL(clGetDeviceIDs(platform, CL_DEVICE_TYPE_ALL, 0, nullptr, &devicesCount));
std::cout << " Number of devices: " << devicesCount << std::endl;

cl_device_id *devices = new cl_device_id[devicesCount];
Copy link
Collaborator

Choose a reason for hiding this comment

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

Лучше в плюсовом коде по возможности не пользоваться new из-за возможных утечек памяти, в частности здесь бы подошел std::vector

@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