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

Closed
wants to merge 2 commits into from

Conversation

kondaevnil
Copy link

@kondaevnil kondaevnil commented Sep 17, 2024

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

$ ./enumDevices
Number of OpenCL platforms: 2
Platform #1/2
    Platform name: NVIDIA CUDA
    Vendor: NVIDIA Corporation
    Number of devices: 1
    Device #1/1
    Device name: NVIDIA GeForce GTX 1650
    Device type: 4
    Device memory size: 4294508544
    Extensions: cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl
_khr_local_int32_extended_atomics cl_khr_fp64 cl_khr_3d_image_writes cl_khr_byte_addressable_store cl_khr_icd cl_khr_gl_
sharing cl_nv_compiler_options cl_nv_device_attribute_query cl_nv_pragma_unroll cl_nv_d3d10_sharing cl_khr_d3d10_sharing
 cl_nv_d3d11_sharing cl_nv_copy_opts cl_nv_create_buffer cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_
device_uuid cl_khr_pci_bus_info cl_khr_external_semaphore cl_khr_external_memory cl_khr_external_semaphore_win32 cl_khr_
external_memory_win32
Platform #2/2
    Platform name: Intel(R) CPU Runtime for OpenCL(TM) Applications
    Vendor: Intel(R) Corporation
    Number of devices: 1
    Device #1/1
    Device name: AMD Ryzen 3 3200G with Radeon Vega Graphics
    Device type: 2
    Device memory size: 17107472384
    Extensions: cl_khr_icd cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base
_atomics cl_khr_local_int32_extended_atomics cl_khr_byte_addressable_store cl_khr_depth_images cl_khr_3d_image_writes cl
_intel_exec_by_local_thread cl_khr_spir cl_khr_dx9_media_sharing cl_intel_dx9_media_sharing cl_khr_d3d11_sharing cl_khr_
gl_sharing cl_khr_fp64 cl_khr_image2d_from_buffer cl_intel_vec_len_hint

Вывод 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
    Device name: AMD EPYC 7763 64-Core Processor                
    Device type: 2
    Device memory size: 16768331776
    Extensions: cl_khr_icd cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_byte_addressable_store cl_khr_depth_images cl_khr_3d_image_writes cl_intel_exec_by_local_thread cl_khr_spir cl_khr_fp64 cl_khr_image2d_from_buffer cl_intel_vec_len_hint

@@ -53,8 +53,7 @@ int main() {
// Не забывайте проверять коды ошибок с помощью макроса OCL_SAFE_CALL
size_t platformNameSize = 0;
OCL_SAFE_CALL(clGetPlatformInfo(platform, CL_PLATFORM_NAME, 0, nullptr, &platformNameSize));
// TODO 1.1
// Попробуйте вместо CL_PLATFORM_NAME передать какое-нибудь случайное число - например 239
// Попробуйте вместо CL_PLATFORM_NAME передать какое-нибудь случайное число - например 30
Copy link
Collaborator

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