
CUDA Math API API Reference Manual v11.4 | September 2021 Table of Contents Chapter 1. Modules.............................................................................................................. 1 1.1. Half Precision Intrinsics........................................................................................................... 2 Half Arithmetic Functions............................................................................................................2 Half2 Arithmetic Functions..........................................................................................................2 Half Comparison Functions......................................................................................................... 2 Half2 Comparison Functions....................................................................................................... 2 Half Precision Conversion and Data Movement.........................................................................2 Half Math Functions.....................................................................................................................2 Half2 Math Functions...................................................................................................................2 1.1.1. Half Arithmetic Functions..................................................................................................2 __habs........................................................................................................................................2 __hadd....................................................................................................................................... 3 __hadd_sat................................................................................................................................ 3 __hdiv.........................................................................................................................................3 __hfma....................................................................................................................................... 4 __hfma_relu.............................................................................................................................. 4 __hfma_sat................................................................................................................................ 4 __hmul....................................................................................................................................... 5 __hmul_sat................................................................................................................................5 __hneg....................................................................................................................................... 6 __hsub........................................................................................................................................6 __hsub_sat................................................................................................................................ 6 1.1.2. Half2 Arithmetic Functions................................................................................................6 __h2div....................................................................................................................................... 7 __habs2......................................................................................................................................7 __hadd2......................................................................................................................................7 __hadd2_sat.............................................................................................................................. 7 __hcmadd.................................................................................................................................. 8 __hfma2..................................................................................................................................... 9 __hfma2_relu............................................................................................................................ 9 __hfma2_sat............................................................................................................................ 10 __hmul2................................................................................................................................... 10 __hmul2_sat............................................................................................................................ 11 __hneg2....................................................................................................................................11 __hsub2....................................................................................................................................11 __hsub2_sat.............................................................................................................................12 CUDA Math API vRelease Version | ii 1.1.3. Half Comparison Functions............................................................................................. 12 __heq........................................................................................................................................12 __hequ..................................................................................................................................... 13 __hge........................................................................................................................................13 __hgeu..................................................................................................................................... 14 __hgt........................................................................................................................................ 14 __hgtu...................................................................................................................................... 15 __hisinf.....................................................................................................................................15 __hisnan...................................................................................................................................16 __hle.........................................................................................................................................16 __hleu...................................................................................................................................... 16 __hlt......................................................................................................................................... 17 __hltu....................................................................................................................................... 17 __hmax.....................................................................................................................................18 __hmax_nan............................................................................................................................ 18 __hmin..................................................................................................................................... 18 __hmin_nan............................................................................................................................. 19 __hne....................................................................................................................................... 19 __hneu..................................................................................................................................... 19 1.1.4. Half2 Comparison Functions........................................................................................... 20 __hbeq2....................................................................................................................................20 __hbequ2................................................................................................................................. 21 __hbge2....................................................................................................................................21 __hbgeu2................................................................................................................................. 22 __hbgt2.................................................................................................................................... 22 __hbgtu2.................................................................................................................................. 23 __hble2.....................................................................................................................................24 __hbleu2.................................................................................................................................. 24 __hblt2..................................................................................................................................... 25 __hbltu2................................................................................................................................... 25 __hbne2....................................................................................................................................26 __hbneu2................................................................................................................................
Details
-
File Typepdf
-
Upload Time-
-
Content LanguagesEnglish
-
Upload UserAnonymous/Not logged-in
-
File Pages391 Page
-
File Size-