nnstreamer / nntrainer

NNtrainer is Software Framework for Training Neural Network Models on Devices.
Apache License 2.0
134 stars 71 forks source link

[GPU/OpenCL] Check fp16(half) support #2608

Closed s-debadri closed 1 month ago

s-debadri commented 1 month ago

Added check for OpenCL fp16 half support on device. Will show proper message if not found.

To use fp16 enable cl_khr_fp16 as following with the kernels.

#pragma OPENCL EXTENSION cl_khr_fp16 : enable

 __kernel void kernel_name(...) { } 

Signed-off-by: Debadri Samaddar s.debadri@samsung.com

taos-ci commented 1 month ago

:memo: TAOS-CI Version: 1.5.20200925. Thank you for submitting PR #2608. Please a submit 1commit/1PR (one commit per one PR) policy to get comments quickly from reviewers. Your PR must pass all verificiation processes of cibot before starting a review process from reviewers. If you are new member to join this project, please read manuals in documentation folder and wiki page. In order to monitor a progress status of your PR in more detail, visit http://ci.nnstreamer.ai/.

taos-ci commented 1 month ago

:octocat: cibot: @s-debadri, nntrainer/opencl/opencl_context_manager.cpp includes bug(s). Please fix incorrect coding constructs in your commit before entering a review process.