差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン最新のリビジョン両方とも次のリビジョン | ||
hardware:raspberry_pi:dietpi:opencl_on_videocore_iv_gpu [2024/04/24 15:47] – [VC4CL のビルド & インストール] ともやん | hardware:raspberry_pi:dietpi:opencl_on_videocore_iv_gpu [2024/04/26 00:55] – [ベンチマーク] ともやん | ||
---|---|---|---|
行 1: | 行 1: | ||
- | ====== VideoCore IV GPU で OpenCL ====== | + | ====== |
本家: [[git> | 本家: [[git> | ||
行 1254: | 行 1254: | ||
</ | </ | ||
</ | </ | ||
+ | |||
+ | 参考: [[git> | ||
==== VC4CL のビルド & インストール ==== | ==== VC4CL のビルド & インストール ==== | ||
行 1306: | 行 1308: | ||
</ | </ | ||
<WRAP color_result_hlong>< | <WRAP color_result_hlong>< | ||
+ | [ 0%] Built target GetGitCommit | ||
+ | [ 2%] <font color="# | ||
+ | [ 2%] Built target generate_icd | ||
+ | [ 5%] <font color="# | ||
+ | [ 8%] <font color="# | ||
+ | [ 11%] <font color="# | ||
+ | [ 14%] <font color="# | ||
+ | [ 17%] <font color="# | ||
+ | [ 20%] <font color="# | ||
+ | [ 22%] <font color="# | ||
+ | [ 25%] <font color="# | ||
+ | [ 28%] <font color="# | ||
+ | [ 31%] <font color="# | ||
+ | [ 34%] <font color="# | ||
+ | [ 37%] <font color="# | ||
+ | [ 40%] <font color="# | ||
+ | [ 42%] <font color="# | ||
+ | [ 45%] <font color="# | ||
+ | [ 48%] <font color="# | ||
+ | [ 51%] <font color="# | ||
+ | < | ||
+ | < | ||
+ | 69 | | ||
+ | | < | ||
+ | In file included from < | ||
+ | from < | ||
+ | from < | ||
+ | from < | ||
+ | from < | ||
+ | from < | ||
+ | from < | ||
+ | from < | ||
+ | from < | ||
+ | from < | ||
+ | from < | ||
+ | from < | ||
+ | from < | ||
+ | < | ||
+ | 958 | extern size_t <font color="# | ||
+ | | < | ||
+ | < | ||
+ | 69 | | ||
+ | | < | ||
+ | < | ||
+ | 958 | extern size_t <font color="# | ||
+ | | < | ||
+ | [ 54%] <font color="# | ||
+ | [ 57%] <font color="# | ||
+ | [ 60%] <font color="# | ||
+ | [ 62%] <font color="# | ||
+ | [ 65%] <font color="# | ||
+ | [ 68%] <font color="# | ||
+ | [ 71%] <font color="# | ||
+ | [ 74%] <font color="# | ||
+ | [ 77%] <font color="# | ||
+ | [ 80%] <font color="# | ||
+ | [ 82%] <font color="# | ||
+ | [ 82%] Built target VC4CL | ||
+ | [ 85%] <font color="# | ||
+ | [ 88%] <font color="# | ||
+ | [ 88%] Built target v3d_info | ||
+ | [ 91%] <font color="# | ||
+ | < | ||
+ | < | ||
+ | 239 | | ||
+ | | < | ||
+ | [ 94%] <font color="# | ||
+ | [ 94%] Built target v3d_profile | ||
+ | [ 97%] <font color="# | ||
+ | [100%] <font color="# | ||
+ | [100%] Built target vc4cl_dump_analyzer | ||
+ | </ | ||
+ | <WRAP color_command>< | ||
+ | <font color="# | ||
+ | </ | ||
+ | <WRAP color_result_hlong>< | ||
+ | [ 0%] Built target GetGitCommit | ||
+ | [ 2%] Built target generate_icd | ||
+ | [ 5%] <font color="# | ||
+ | [ 8%] <font color="# | ||
+ | [ 82%] Built target VC4CL | ||
+ | [ 85%] <font color="# | ||
+ | [ 88%] Built target v3d_info | ||
+ | [ 91%] <font color="# | ||
+ | [ 94%] Built target v3d_profile | ||
+ | [ 97%] <font color="# | ||
+ | [100%] Built target vc4cl_dump_analyzer | ||
+ | <font color="# | ||
+ | -- Install configuration: | ||
+ | -- Installing: / | ||
+ | -- Installing: / | ||
+ | -- Installing: / | ||
+ | -- Set runtime path of & | ||
+ | -- Installing: / | ||
+ | -- Installing: / | ||
+ | -- Installing: / | ||
+ | -- Installing: / | ||
+ | -- Set runtime path of & | ||
+ | -- Installing: / | ||
+ | -- Set runtime path of & | ||
+ | -- Installing: / | ||
+ | -- Set runtime path of & | ||
</ | </ | ||
</ | </ | ||
+ | ==== clinfo で動作確認😍 ==== | ||
+ | <WRAP color_term> | ||
+ | <WRAP color_command>< | ||
+ | <font color="# | ||
+ | </ | ||
+ | <WRAP color_result_long>< | ||
+ | Number of platforms | ||
+ | Platform Name | ||
+ | Platform Vendor | ||
+ | Platform Version | ||
+ | Platform Profile | ||
+ | Platform Extensions | ||
+ | Platform Extensions function suffix | ||
+ | |||
+ | Platform Name | ||
+ | Number of devices | ||
+ | Device Name | ||
+ | Device Vendor | ||
+ | Device Vendor ID 0x14e4 | ||
+ | Device Version | ||
+ | Device Numeric Version | ||
+ | Driver Version | ||
+ | Device OpenCL C Version | ||
+ | Device OpenCL C Numeric Version | ||
+ | Device Type GPU | ||
+ | Device Profile | ||
+ | Device Available | ||
+ | Compiler Available | ||
+ | Linker Available | ||
+ | Max compute units 1 | ||
+ | Available core IDs (ARM) 0 | ||
+ | Max clock frequency | ||
+ | Core Temperature (Altera) | ||
+ | Device Partition | ||
+ | Max number of sub-devices | ||
+ | Supported partition types None | ||
+ | Supported affinity domains | ||
+ | Max work item dimensions | ||
+ | Max work item sizes | ||
+ | Max work group size 12 | ||
+ | Preferred work group size multiple (kernel) | ||
+ | Preferred / native vector sizes | ||
+ | char 16 / 16 | ||
+ | short 16 / 16 | ||
+ | int 16 / 16 | ||
+ | long 0 / 0 | ||
+ | half 0 / 0 (n/a) | ||
+ | float 16 / 16 | ||
+ | double | ||
+ | Half-precision Floating-point support | ||
+ | Single-precision Floating-point support | ||
+ | Denormals | ||
+ | Infinity and NANs No | ||
+ | Round to nearest | ||
+ | Round to zero Yes | ||
+ | Round to infinity | ||
+ | IEEE754-2008 fused multiply-add | ||
+ | Support is emulated in software | ||
+ | Correctly-rounded divide and sqrt operations | ||
+ | Double-precision Floating-point support | ||
+ | Address bits 32, Little-Endian | ||
+ | Global memory size 67108864 (64MiB) | ||
+ | Error Correction support | ||
+ | Max memory allocation | ||
+ | Unified memory for Host and Device | ||
+ | Minimum alignment for any data type 64 bytes | ||
+ | Alignment of base address | ||
+ | Global Memory cache type Read/Write | ||
+ | Global Memory cache size 32768 (32KiB) | ||
+ | Global Memory cache line size 64 bytes | ||
+ | Image support | ||
+ | Local memory type | ||
+ | Local memory size | ||
+ | Max number of constant args 32 | ||
+ | Max constant buffer size 67108864 (64MiB) | ||
+ | Max size of kernel argument | ||
+ | Queue properties | ||
+ | Out-of-order execution | ||
+ | Profiling | ||
+ | Prefer user sync for interop | ||
+ | Profiling timer resolution | ||
+ | Execution capabilities | ||
+ | Run OpenCL kernels | ||
+ | Run native kernels | ||
+ | IL version | ||
+ | ILs with version | ||
+ | SPIR-V | ||
+ | SPIR versions | ||
+ | printf() buffer size 0 | ||
+ | Built-in kernels | ||
+ | Built-in kernels with version | ||
+ | Device Extensions | ||
+ | Device Extensions with Version | ||
+ | cl_khr_global_int32_extended_atomics | ||
+ | cl_khr_local_int32_base_atomics | ||
+ | cl_khr_local_int32_extended_atomics | ||
+ | cl_khr_byte_addressable_store | ||
+ | cl_nv_pragma_unroll | ||
+ | cl_arm_core_id | ||
+ | cl_ext_atomic_counters_32 | ||
+ | cl_khr_initialize_memory | ||
+ | cl_arm_integer_dot_product_int8 | ||
+ | cl_arm_integer_dot_product_accumulate_int8 | ||
+ | cl_arm_integer_dot_product_accumulate_int16 | ||
+ | cl_arm_integer_dot_product_accumulate_saturate_int8 | ||
+ | cl_khr_expect_assume | ||
+ | cl_khr_il_program | ||
+ | cl_khr_spir | ||
+ | cl_khr_create_command_queue | ||
+ | cl_altera_device_temperature | ||
+ | cl_altera_live_object_tracking | ||
+ | cl_khr_icd | ||
+ | cl_khr_extended_versioning | ||
+ | cl_khr_spirv_no_integer_wrap_decoration | ||
+ | cl_khr_suggested_local_work_size | ||
+ | cl_vc4cl_performance_counters | ||
+ | |||
+ | NULL platform behavior | ||
+ | clGetPlatformInfo(NULL, | ||
+ | clGetDeviceIDs(NULL, | ||
+ | clCreateContext(NULL, | ||
+ | clCreateContextFromType(NULL, | ||
+ | Platform Name | ||
+ | Device Name | ||
+ | clCreateContextFromType(NULL, | ||
+ | clCreateContextFromType(NULL, | ||
+ | Platform Name | ||
+ | Device Name | ||
+ | clCreateContextFromType(NULL, | ||
+ | clCreateContextFromType(NULL, | ||
+ | clCreateContextFromType(NULL, | ||
+ | Platform Name | ||
+ | Device Name | ||
+ | |||
+ | ICD loader properties | ||
+ | ICD loader Name | ||
+ | ICD loader Vendor | ||
+ | ICD loader Version | ||
+ | ICD loader Profile | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | ===== ベンチマーク ===== | ||
+ | つづく...🤪\\ | ||
+ | <WRAP color_term> | ||
+ | <WRAP color_command>< | ||
+ | <font color="# | ||
+ | <font color="# | ||
+ | <font color="# | ||
+ | </ | ||
+ | </ | ||
===== 参考文献 ===== | ===== 参考文献 ===== | ||
[[https:// | [[https:// | ||
[[https:// | [[https:// | ||