Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- data/miniconda3/pkgs/cuda-crt-dev_linux-64-12.8.93-h06a4308_3/info/about.json +165 -0
- data/miniconda3/pkgs/cuda-crt-dev_linux-64-12.8.93-h06a4308_3/info/files +25 -0
- data/miniconda3/pkgs/cuda-crt-dev_linux-64-12.8.93-h06a4308_3/info/git +0 -0
- data/miniconda3/pkgs/cuda-crt-dev_linux-64-12.8.93-h06a4308_3/info/hash_input.json +4 -0
- data/miniconda3/pkgs/cuda-crt-dev_linux-64-12.8.93-h06a4308_3/info/index.json +15 -0
- data/miniconda3/pkgs/cuda-crt-dev_linux-64-12.8.93-h06a4308_3/info/licenses/LICENSE +1632 -0
- data/miniconda3/pkgs/cuda-crt-dev_linux-64-12.8.93-h06a4308_3/info/link.json +6 -0
- data/miniconda3/pkgs/cuda-crt-dev_linux-64-12.8.93-h06a4308_3/info/paths.json +155 -0
- data/miniconda3/pkgs/cuda-crt-dev_linux-64-12.8.93-h06a4308_3/info/recipe/conda_build_config.yaml +33 -0
- data/miniconda3/pkgs/cuda-crt-dev_linux-64-12.8.93-h06a4308_3/info/recipe/meta.yaml +39 -0
- data/miniconda3/pkgs/cuda-crt-dev_linux-64-12.8.93-h06a4308_3/info/recipe/parent/CMakeLists.txt +37 -0
- data/miniconda3/pkgs/cuda-crt-dev_linux-64-12.8.93-h06a4308_3/info/recipe/parent/bld.bat +8 -0
- data/miniconda3/pkgs/cuda-crt-dev_linux-64-12.8.93-h06a4308_3/info/recipe/parent/build.sh +82 -0
- data/miniconda3/pkgs/cuda-crt-dev_linux-64-12.8.93-h06a4308_3/info/recipe/parent/conda_build_config.yaml +13 -0
- data/miniconda3/pkgs/cuda-crt-dev_linux-64-12.8.93-h06a4308_3/info/recipe/parent/meta.yaml +386 -0
- data/miniconda3/pkgs/cuda-crt-dev_linux-64-12.8.93-h06a4308_3/info/recipe/parent/nvcc.profile.patch +23 -0
- data/miniconda3/pkgs/cuda-crt-dev_linux-64-12.8.93-h06a4308_3/info/recipe/parent/nvcc.profile.patch.win +14 -0
- data/miniconda3/pkgs/cuda-crt-dev_linux-64-12.8.93-h06a4308_3/info/recipe/parent/patchelf_exclude.txt +4 -0
- data/miniconda3/pkgs/cuda-crt-dev_linux-64-12.8.93-h06a4308_3/info/recipe/parent/run_nvcc_tests.bat +45 -0
- data/miniconda3/pkgs/cuda-crt-dev_linux-64-12.8.93-h06a4308_3/info/recipe/parent/run_nvcc_tests.sh +67 -0
- data/miniconda3/pkgs/cuda-crt-dev_linux-64-12.8.93-h06a4308_3/info/recipe/parent/test-rpath-nvcc.sh +50 -0
- data/miniconda3/pkgs/cuda-crt-dev_linux-64-12.8.93-h06a4308_3/info/recipe/parent/test-rpath-nvvm.sh +58 -0
- data/miniconda3/pkgs/cuda-crt-dev_linux-64-12.8.93-h06a4308_3/info/recipe/parent/test.cu +3 -0
- data/miniconda3/pkgs/cuda-crt-dev_linux-64-12.8.93-h06a4308_3/info/repodata_record.json +21 -0
- data/miniconda3/pkgs/cuda-crt-dev_linux-64-12.8.93-h06a4308_3/info/test/run_test.bat +7 -0
- data/miniconda3/pkgs/cuda-crt-dev_linux-64-12.8.93-h06a4308_3/info/test/run_test.sh +8 -0
- data/miniconda3/pkgs/cuda-crt-dev_linux-64-12.8.93-h06a4308_3/targets/x86_64-linux/include/crt/common_functions.h +310 -0
- data/miniconda3/pkgs/cuda-crt-dev_linux-64-12.8.93-h06a4308_3/targets/x86_64-linux/include/crt/cudacc_ext.h +64 -0
- data/miniconda3/pkgs/cuda-crt-dev_linux-64-12.8.93-h06a4308_3/targets/x86_64-linux/include/crt/device_double_functions.h +1192 -0
- data/miniconda3/pkgs/cuda-crt-dev_linux-64-12.8.93-h06a4308_3/targets/x86_64-linux/include/crt/device_double_functions.hpp +197 -0
- data/miniconda3/pkgs/cuda-crt-dev_linux-64-12.8.93-h06a4308_3/targets/x86_64-linux/include/crt/device_fp128_functions.h +1217 -0
- data/miniconda3/pkgs/cuda-crt-dev_linux-64-12.8.93-h06a4308_3/targets/x86_64-linux/include/crt/device_functions.h +0 -0
- data/miniconda3/pkgs/cuda-crt-dev_linux-64-12.8.93-h06a4308_3/targets/x86_64-linux/include/crt/device_functions.hpp +1163 -0
- data/miniconda3/pkgs/cuda-crt-dev_linux-64-12.8.93-h06a4308_3/targets/x86_64-linux/include/crt/func_macro.h +57 -0
- data/miniconda3/pkgs/cuda-crt-dev_linux-64-12.8.93-h06a4308_3/targets/x86_64-linux/include/crt/host_config.h +310 -0
- data/miniconda3/pkgs/cuda-crt-dev_linux-64-12.8.93-h06a4308_3/targets/x86_64-linux/include/crt/host_defines.h +283 -0
- data/miniconda3/pkgs/cuda-crt-dev_linux-64-12.8.93-h06a4308_3/targets/x86_64-linux/include/crt/host_runtime.h +306 -0
- data/miniconda3/pkgs/cuda-crt-dev_linux-64-12.8.93-h06a4308_3/targets/x86_64-linux/include/crt/math_functions.h +0 -0
- data/miniconda3/pkgs/cuda-crt-dev_linux-64-12.8.93-h06a4308_3/targets/x86_64-linux/include/crt/math_functions.hpp +0 -0
- data/miniconda3/pkgs/cuda-crt-dev_linux-64-12.8.93-h06a4308_3/targets/x86_64-linux/include/crt/mma.h +761 -0
- data/miniconda3/pkgs/cuda-crt-dev_linux-64-12.8.93-h06a4308_3/targets/x86_64-linux/include/crt/mma.hpp +1128 -0
- data/miniconda3/pkgs/cuda-crt-dev_linux-64-12.8.93-h06a4308_3/targets/x86_64-linux/include/crt/nvfunctional +621 -0
- data/miniconda3/pkgs/cuda-crt-dev_linux-64-12.8.93-h06a4308_3/targets/x86_64-linux/include/crt/sm_100_rt.h +252 -0
- data/miniconda3/pkgs/cuda-crt-dev_linux-64-12.8.93-h06a4308_3/targets/x86_64-linux/include/crt/sm_100_rt.hpp +157 -0
- data/miniconda3/pkgs/cuda-crt-dev_linux-64-12.8.93-h06a4308_3/targets/x86_64-linux/include/crt/sm_70_rt.h +139 -0
- data/miniconda3/pkgs/cuda-crt-dev_linux-64-12.8.93-h06a4308_3/targets/x86_64-linux/include/crt/sm_70_rt.hpp +192 -0
- data/miniconda3/pkgs/cuda-crt-dev_linux-64-12.8.93-h06a4308_3/targets/x86_64-linux/include/crt/sm_80_rt.h +164 -0
- data/miniconda3/pkgs/cuda-crt-dev_linux-64-12.8.93-h06a4308_3/targets/x86_64-linux/include/crt/sm_80_rt.hpp +148 -0
- data/miniconda3/pkgs/cuda-crt-dev_linux-64-12.8.93-h06a4308_3/targets/x86_64-linux/include/crt/sm_90_rt.h +282 -0
- data/miniconda3/pkgs/cuda-crt-dev_linux-64-12.8.93-h06a4308_3/targets/x86_64-linux/include/crt/sm_90_rt.hpp +248 -0
data/miniconda3/pkgs/cuda-crt-dev_linux-64-12.8.93-h06a4308_3/info/about.json
ADDED
|
@@ -0,0 +1,165 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"channels": [
|
| 3 |
+
"https://repo.anaconda.com/pkgs/main",
|
| 4 |
+
"https://repo.anaconda.com/pkgs/r",
|
| 5 |
+
"https://repo.anaconda.com/pkgs/main"
|
| 6 |
+
],
|
| 7 |
+
"conda_build_version": "25.1.2",
|
| 8 |
+
"conda_version": "25.1.1",
|
| 9 |
+
"description": "CUDA internal headers.\n",
|
| 10 |
+
"doc_url": "https://docs.nvidia.com/cuda/index.html",
|
| 11 |
+
"env_vars": {
|
| 12 |
+
"CIO_TEST": "<not set>"
|
| 13 |
+
},
|
| 14 |
+
"extra": {
|
| 15 |
+
"copy_test_source_files": true,
|
| 16 |
+
"feedstock-name": "cuda-nvcc-impl",
|
| 17 |
+
"final": true,
|
| 18 |
+
"parent_recipe": {
|
| 19 |
+
"name": "cuda-nvcc-impl-split",
|
| 20 |
+
"path": "/home/task_175891970154079/cuda-nvcc-impl-feedstock/recipe",
|
| 21 |
+
"version": "12.8.93"
|
| 22 |
+
},
|
| 23 |
+
"recipe-maintainers": [
|
| 24 |
+
"conda-forge/cuda"
|
| 25 |
+
]
|
| 26 |
+
},
|
| 27 |
+
"home": "https://developer.nvidia.com/cuda-toolkit",
|
| 28 |
+
"identifiers": [],
|
| 29 |
+
"keywords": [],
|
| 30 |
+
"license": "LicenseRef-NVIDIA-End-User-License-Agreement",
|
| 31 |
+
"license_file": "LICENSE",
|
| 32 |
+
"license_url": "https://docs.nvidia.com/cuda/eula/index.html",
|
| 33 |
+
"root_pkgs": [
|
| 34 |
+
"_libgcc_mutex 0.1 main",
|
| 35 |
+
"ca-certificates 2025.9.9 h06a4308_0",
|
| 36 |
+
"ld_impl_linux-64 2.40 h12ee557_0",
|
| 37 |
+
"libstdcxx-ng 11.2.0 h1234567_1",
|
| 38 |
+
"nlohmann_json 3.11.2 h6a678d5_0",
|
| 39 |
+
"pybind11-abi 5 hd3eb1b0_0",
|
| 40 |
+
"tzdata 2025a h04d1e81_0",
|
| 41 |
+
"libgomp 11.2.0 h1234567_1",
|
| 42 |
+
"_openmp_mutex 5.1 1_gnu",
|
| 43 |
+
"libgcc-ng 11.2.0 h1234567_1",
|
| 44 |
+
"bzip2 1.0.8 h5eee18b_6",
|
| 45 |
+
"c-ares 1.19.1 h5eee18b_0",
|
| 46 |
+
"cpp-expected 1.1.0 hdb19cb5_0",
|
| 47 |
+
"expat 2.6.4 h6a678d5_0",
|
| 48 |
+
"fmt 9.1.0 hdb19cb5_1",
|
| 49 |
+
"icu 73.1 h6a678d5_0",
|
| 50 |
+
"libev 4.33 h7f8727e_1",
|
| 51 |
+
"libffi 3.4.4 h6a678d5_1",
|
| 52 |
+
"libuuid 1.41.5 h5eee18b_0",
|
| 53 |
+
"lz4-c 1.9.4 h6a678d5_1",
|
| 54 |
+
"ncurses 6.4 h6a678d5_0",
|
| 55 |
+
"liblief 0.12.3 h6a678d5_0",
|
| 56 |
+
"reproc 14.2.4 h6a678d5_2",
|
| 57 |
+
"simdjson 3.10.1 hdb19cb5_0",
|
| 58 |
+
"xz 5.4.6 h5eee18b_1",
|
| 59 |
+
"yaml-cpp 0.8.0 h6a678d5_1",
|
| 60 |
+
"zlib 1.2.13 h5eee18b_1",
|
| 61 |
+
"libedit 3.1.20230828 h5eee18b_0",
|
| 62 |
+
"libnghttp2 1.57.0 h2d74bed_0",
|
| 63 |
+
"libssh2 1.11.1 h251f7ec_0",
|
| 64 |
+
"libxml2 2.13.5 hfdd30dd_0",
|
| 65 |
+
"pcre2 10.42 hebb0a14_1",
|
| 66 |
+
"readline 8.2 h5eee18b_0",
|
| 67 |
+
"reproc-cpp 14.2.4 h6a678d5_2",
|
| 68 |
+
"spdlog 1.11.0 hdb19cb5_0",
|
| 69 |
+
"tk 8.6.14 h39e8969_0",
|
| 70 |
+
"zstd 1.5.6 hc292b87_0",
|
| 71 |
+
"krb5 1.20.1 h143b758_1",
|
| 72 |
+
"libarchive 3.7.7 hfab0078_0",
|
| 73 |
+
"libsolv 0.7.30 he621ea3_1",
|
| 74 |
+
"sqlite 3.45.3 h5eee18b_0",
|
| 75 |
+
"libcurl 8.11.1 hc9e6f67_0",
|
| 76 |
+
"python 3.12.9 h5148396_0",
|
| 77 |
+
"libmamba 2.0.5 haf1ee3a_1",
|
| 78 |
+
"menuinst 2.2.0 py312h06a4308_1",
|
| 79 |
+
"anaconda-anon-usage 0.5.0 py312hfc0e8ea_100",
|
| 80 |
+
"annotated-types 0.6.0 py312h06a4308_0",
|
| 81 |
+
"archspec 0.2.3 pyhd3eb1b0_0",
|
| 82 |
+
"boltons 24.1.0 py312h06a4308_0",
|
| 83 |
+
"brotli-python 1.0.9 py312h6a678d5_9",
|
| 84 |
+
"charset-normalizer 3.3.2 pyhd3eb1b0_0",
|
| 85 |
+
"distro 1.9.0 py312h06a4308_0",
|
| 86 |
+
"frozendict 2.4.2 py312h06a4308_0",
|
| 87 |
+
"idna 3.7 py312h06a4308_0",
|
| 88 |
+
"jsonpointer 2.1 pyhd3eb1b0_0",
|
| 89 |
+
"libmambapy 2.0.5 py312hdb19cb5_1",
|
| 90 |
+
"mdurl 0.1.0 py312h06a4308_0",
|
| 91 |
+
"packaging 24.2 py312h06a4308_0",
|
| 92 |
+
"platformdirs 3.10.0 py312h06a4308_0",
|
| 93 |
+
"pluggy 1.5.0 py312h06a4308_0",
|
| 94 |
+
"pycosat 0.6.6 py312h5eee18b_2",
|
| 95 |
+
"pycparser 2.21 pyhd3eb1b0_0",
|
| 96 |
+
"pygments 2.15.1 py312h06a4308_1",
|
| 97 |
+
"pysocks 1.7.1 py312h06a4308_0",
|
| 98 |
+
"ruamel.yaml.clib 0.2.8 py312h5eee18b_0",
|
| 99 |
+
"setuptools 75.8.0 py312h06a4308_0",
|
| 100 |
+
"tqdm 4.67.1 py312he106c6f_0",
|
| 101 |
+
"truststore 0.10.0 py312h06a4308_0",
|
| 102 |
+
"typing_extensions 4.12.2 py312h06a4308_0",
|
| 103 |
+
"wheel 0.45.1 py312h06a4308_0",
|
| 104 |
+
"cffi 1.17.1 py312h1fdaa30_1",
|
| 105 |
+
"jsonpatch 1.33 py312h06a4308_1",
|
| 106 |
+
"markdown-it-py 2.2.0 py312h06a4308_1",
|
| 107 |
+
"pip 25.0 py312h06a4308_0",
|
| 108 |
+
"ruamel.yaml 0.18.6 py312h5eee18b_0",
|
| 109 |
+
"typing-extensions 4.12.2 py312h06a4308_0",
|
| 110 |
+
"urllib3 2.3.0 py312h06a4308_0",
|
| 111 |
+
"cryptography 43.0.3 py312h7825ff9_1",
|
| 112 |
+
"pydantic-core 2.27.1 py312h4aa5aa6_0",
|
| 113 |
+
"requests 2.32.3 py312h06a4308_1",
|
| 114 |
+
"rich 13.9.4 py312h06a4308_0",
|
| 115 |
+
"zstandard 0.23.0 py312h2c38b39_1",
|
| 116 |
+
"conda-content-trust 0.2.0 py312h06a4308_1",
|
| 117 |
+
"conda-package-streaming 0.11.0 py312h06a4308_0",
|
| 118 |
+
"pydantic 2.10.3 py312h06a4308_0",
|
| 119 |
+
"conda-package-handling 2.4.0 py312h06a4308_0",
|
| 120 |
+
"conda 25.1.1 py312h06a4308_0",
|
| 121 |
+
"conda-anaconda-tos 0.1.2 py312h06a4308_0",
|
| 122 |
+
"conda-libmamba-solver 25.1.1 pyhd3eb1b0_0",
|
| 123 |
+
"libsodium 1.0.18 h7b6447c_0",
|
| 124 |
+
"openssl 3.0.17 h5eee18b_0",
|
| 125 |
+
"patch 2.8 hb25bd0a_0",
|
| 126 |
+
"patchelf 0.17.2 h6a678d5_0",
|
| 127 |
+
"yaml 0.2.5 h7b6447c_0",
|
| 128 |
+
"argcomplete 3.6.2 py312h06a4308_0",
|
| 129 |
+
"attrs 24.3.0 py312h06a4308_0",
|
| 130 |
+
"certifi 2025.8.3 py312h06a4308_0",
|
| 131 |
+
"chardet 5.2.0 py312h06a4308_0",
|
| 132 |
+
"click 8.2.1 py312h06a4308_0",
|
| 133 |
+
"filelock 3.17.0 py312h06a4308_0",
|
| 134 |
+
"jmespath 1.0.1 py312h06a4308_0",
|
| 135 |
+
"markupsafe 3.0.2 py312h5eee18b_0",
|
| 136 |
+
"more-itertools 10.3.0 py312h06a4308_0",
|
| 137 |
+
"pkginfo 1.12.0 py312h06a4308_0",
|
| 138 |
+
"psutil 7.0.0 py312hee96239_0",
|
| 139 |
+
"py-lief 0.12.3 py312h6a678d5_0",
|
| 140 |
+
"python-libarchive-c 5.1 pyhd3eb1b0_0",
|
| 141 |
+
"pytz 2025.2 py312h06a4308_0",
|
| 142 |
+
"pyyaml 6.0.2 py312h5eee18b_0",
|
| 143 |
+
"rpds-py 0.22.3 py312h4aa5aa6_0",
|
| 144 |
+
"six 1.17.0 py312h06a4308_0",
|
| 145 |
+
"soupsieve 2.5 py312h06a4308_0",
|
| 146 |
+
"tomlkit 0.13.2 py312h06a4308_0",
|
| 147 |
+
"xmltodict 0.14.2 py312h06a4308_0",
|
| 148 |
+
"jinja2 3.1.6 py312h06a4308_0",
|
| 149 |
+
"python-dateutil 2.9.0post0 py312h06a4308_2",
|
| 150 |
+
"referencing 0.30.2 py312h06a4308_0",
|
| 151 |
+
"yq 3.4.3 py312h06a4308_0",
|
| 152 |
+
"beautifulsoup4 4.13.5 py312h06a4308_0",
|
| 153 |
+
"botocore 1.37.10 py312h06a4308_0",
|
| 154 |
+
"jsonschema-specifications 2023.7.1 py312h06a4308_0",
|
| 155 |
+
"pynacl 1.5.0 py312h5eee18b_1",
|
| 156 |
+
"jsonschema 4.25.0 py312h06a4308_0",
|
| 157 |
+
"s3transfer 0.11.2 py312h06a4308_0",
|
| 158 |
+
"boto3 1.37.10 py312h06a4308_0",
|
| 159 |
+
"conda-anaconda-telemetry 0.3.0 pyhd3eb1b0_1",
|
| 160 |
+
"conda-index 0.5.0 py312h06a4308_0",
|
| 161 |
+
"conda-build 25.1.2 py312h06a4308_0"
|
| 162 |
+
],
|
| 163 |
+
"summary": "CUDA internal headers.",
|
| 164 |
+
"tags": []
|
| 165 |
+
}
|
data/miniconda3/pkgs/cuda-crt-dev_linux-64-12.8.93-h06a4308_3/info/files
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
targets/x86_64-linux/include/crt/common_functions.h
|
| 2 |
+
targets/x86_64-linux/include/crt/cudacc_ext.h
|
| 3 |
+
targets/x86_64-linux/include/crt/device_double_functions.h
|
| 4 |
+
targets/x86_64-linux/include/crt/device_double_functions.hpp
|
| 5 |
+
targets/x86_64-linux/include/crt/device_fp128_functions.h
|
| 6 |
+
targets/x86_64-linux/include/crt/device_functions.h
|
| 7 |
+
targets/x86_64-linux/include/crt/device_functions.hpp
|
| 8 |
+
targets/x86_64-linux/include/crt/func_macro.h
|
| 9 |
+
targets/x86_64-linux/include/crt/host_config.h
|
| 10 |
+
targets/x86_64-linux/include/crt/host_defines.h
|
| 11 |
+
targets/x86_64-linux/include/crt/host_runtime.h
|
| 12 |
+
targets/x86_64-linux/include/crt/math_functions.h
|
| 13 |
+
targets/x86_64-linux/include/crt/math_functions.hpp
|
| 14 |
+
targets/x86_64-linux/include/crt/mma.h
|
| 15 |
+
targets/x86_64-linux/include/crt/mma.hpp
|
| 16 |
+
targets/x86_64-linux/include/crt/nvfunctional
|
| 17 |
+
targets/x86_64-linux/include/crt/sm_100_rt.h
|
| 18 |
+
targets/x86_64-linux/include/crt/sm_100_rt.hpp
|
| 19 |
+
targets/x86_64-linux/include/crt/sm_70_rt.h
|
| 20 |
+
targets/x86_64-linux/include/crt/sm_70_rt.hpp
|
| 21 |
+
targets/x86_64-linux/include/crt/sm_80_rt.h
|
| 22 |
+
targets/x86_64-linux/include/crt/sm_80_rt.hpp
|
| 23 |
+
targets/x86_64-linux/include/crt/sm_90_rt.h
|
| 24 |
+
targets/x86_64-linux/include/crt/sm_90_rt.hpp
|
| 25 |
+
targets/x86_64-linux/include/crt/storage_class.h
|
data/miniconda3/pkgs/cuda-crt-dev_linux-64-12.8.93-h06a4308_3/info/git
ADDED
|
File without changes
|
data/miniconda3/pkgs/cuda-crt-dev_linux-64-12.8.93-h06a4308_3/info/hash_input.json
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"channel_targets": "defaults",
|
| 3 |
+
"target_platform": "linux-64"
|
| 4 |
+
}
|
data/miniconda3/pkgs/cuda-crt-dev_linux-64-12.8.93-h06a4308_3/info/index.json
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"arch": null,
|
| 3 |
+
"build": "h06a4308_3",
|
| 4 |
+
"build_number": 3,
|
| 5 |
+
"depends": [
|
| 6 |
+
"cuda-version >=12.8,<12.9.0a0"
|
| 7 |
+
],
|
| 8 |
+
"license": "LicenseRef-NVIDIA-End-User-License-Agreement",
|
| 9 |
+
"name": "cuda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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
End User License Agreement
|
| 2 |
+
--------------------------
|
| 3 |
+
|
| 4 |
+
NVIDIA Software License Agreement and CUDA Supplement to
|
| 5 |
+
Software License Agreement.
|
| 6 |
+
|
| 7 |
+
The CUDA Toolkit End User License Agreement applies to the
|
| 8 |
+
NVIDIA CUDA Toolkit, the NVIDIA CUDA Samples, the NVIDIA
|
| 9 |
+
Display Driver, NVIDIA Nsight tools (Visual Studio Edition),
|
| 10 |
+
and the associated documentation on CUDA APIs, programming
|
| 11 |
+
model and development tools. If you do not agree with the
|
| 12 |
+
terms and conditions of the license agreement, then do not
|
| 13 |
+
download or use the software.
|
| 14 |
+
|
| 15 |
+
Last updated: January 12, 2024.
|
| 16 |
+
|
| 17 |
+
|
| 18 |
+
Preface
|
| 19 |
+
-------
|
| 20 |
+
|
| 21 |
+
The Software License Agreement in Chapter 1 and the Supplement
|
| 22 |
+
in Chapter 2 contain license terms and conditions that govern
|
| 23 |
+
the use of NVIDIA toolkit. By accepting this agreement, you
|
| 24 |
+
agree to comply with all the terms and conditions applicable
|
| 25 |
+
to the product(s) included herein.
|
| 26 |
+
|
| 27 |
+
|
| 28 |
+
NVIDIA Driver
|
| 29 |
+
|
| 30 |
+
|
| 31 |
+
Description
|
| 32 |
+
|
| 33 |
+
This package contains the operating system driver and
|
| 34 |
+
fundamental system software components for NVIDIA GPUs.
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
NVIDIA CUDA Toolkit
|
| 38 |
+
|
| 39 |
+
|
| 40 |
+
Description
|
| 41 |
+
|
| 42 |
+
The NVIDIA CUDA Toolkit provides command-line and graphical
|
| 43 |
+
tools for building, debugging and optimizing the performance
|
| 44 |
+
of applications accelerated by NVIDIA GPUs, runtime and math
|
| 45 |
+
libraries, and documentation including programming guides,
|
| 46 |
+
user manuals, and API references.
|
| 47 |
+
|
| 48 |
+
|
| 49 |
+
Default Install Location of CUDA Toolkit
|
| 50 |
+
|
| 51 |
+
Windows platform:
|
| 52 |
+
|
| 53 |
+
%ProgramFiles%\NVIDIA GPU Computing Toolkit\CUDA\v#.#
|
| 54 |
+
|
| 55 |
+
Linux platform:
|
| 56 |
+
|
| 57 |
+
/usr/local/cuda-#.#
|
| 58 |
+
|
| 59 |
+
Mac platform:
|
| 60 |
+
|
| 61 |
+
/Developer/NVIDIA/CUDA-#.#
|
| 62 |
+
|
| 63 |
+
|
| 64 |
+
NVIDIA CUDA Samples
|
| 65 |
+
|
| 66 |
+
|
| 67 |
+
Description
|
| 68 |
+
|
| 69 |
+
CUDA Samples are now located in
|
| 70 |
+
https://github.com/nvidia/cuda-samples, which includes
|
| 71 |
+
instructions for obtaining, building, and running the samples.
|
| 72 |
+
They are no longer included in the CUDA toolkit.
|
| 73 |
+
|
| 74 |
+
|
| 75 |
+
NVIDIA Nsight Visual Studio Edition (Windows only)
|
| 76 |
+
|
| 77 |
+
|
| 78 |
+
Description
|
| 79 |
+
|
| 80 |
+
NVIDIA Nsight Development Platform, Visual Studio Edition is a
|
| 81 |
+
development environment integrated into Microsoft Visual
|
| 82 |
+
Studio that provides tools for debugging, profiling, analyzing
|
| 83 |
+
and optimizing your GPU computing and graphics applications.
|
| 84 |
+
|
| 85 |
+
|
| 86 |
+
Default Install Location of Nsight Visual Studio Edition
|
| 87 |
+
|
| 88 |
+
Windows platform:
|
| 89 |
+
|
| 90 |
+
%ProgramFiles(x86)%\NVIDIA Corporation\Nsight Visual Studio Edition #.#
|
| 91 |
+
|
| 92 |
+
|
| 93 |
+
1. License Agreement for NVIDIA Software Development Kits
|
| 94 |
+
---------------------------------------------------------
|
| 95 |
+
|
| 96 |
+
|
| 97 |
+
Important Notice—Read before downloading, installing,
|
| 98 |
+
copying or using the licensed software:
|
| 99 |
+
-------------------------------------------------------
|
| 100 |
+
|
| 101 |
+
This license agreement, including exhibits attached
|
| 102 |
+
("Agreement”) is a legal agreement between you and NVIDIA
|
| 103 |
+
Corporation ("NVIDIA") and governs your use of a NVIDIA
|
| 104 |
+
software development kit (“SDK”).
|
| 105 |
+
|
| 106 |
+
Each SDK has its own set of software and materials, but here
|
| 107 |
+
is a description of the types of items that may be included in
|
| 108 |
+
a SDK: source code, header files, APIs, data sets and assets
|
| 109 |
+
(examples include images, textures, models, scenes, videos,
|
| 110 |
+
native API input/output files), binary software, sample code,
|
| 111 |
+
libraries, utility programs, programming code and
|
| 112 |
+
documentation.
|
| 113 |
+
|
| 114 |
+
This Agreement can be accepted only by an adult of legal age
|
| 115 |
+
of majority in the country in which the SDK is used.
|
| 116 |
+
|
| 117 |
+
If you are entering into this Agreement on behalf of a company
|
| 118 |
+
or other legal entity, you represent that you have the legal
|
| 119 |
+
authority to bind the entity to this Agreement, in which case
|
| 120 |
+
“you” will mean the entity you represent.
|
| 121 |
+
|
| 122 |
+
If you don’t have the required age or authority to accept
|
| 123 |
+
this Agreement, or if you don’t accept all the terms and
|
| 124 |
+
conditions of this Agreement, do not download, install or use
|
| 125 |
+
the SDK.
|
| 126 |
+
|
| 127 |
+
You agree to use the SDK only for purposes that are permitted
|
| 128 |
+
by (a) this Agreement, and (b) any applicable law, regulation
|
| 129 |
+
or generally accepted practices or guidelines in the relevant
|
| 130 |
+
jurisdictions.
|
| 131 |
+
|
| 132 |
+
|
| 133 |
+
1.1. License
|
| 134 |
+
|
| 135 |
+
|
| 136 |
+
1.1.1. License Grant
|
| 137 |
+
|
| 138 |
+
Subject to the terms of this Agreement, NVIDIA hereby grants
|
| 139 |
+
you a non-exclusive, non-transferable license, without the
|
| 140 |
+
right to sublicense (except as expressly provided in this
|
| 141 |
+
Agreement) to:
|
| 142 |
+
|
| 143 |
+
1. Install and use the SDK,
|
| 144 |
+
|
| 145 |
+
2. Modify and create derivative works of sample source code
|
| 146 |
+
delivered in the SDK, and
|
| 147 |
+
|
| 148 |
+
3. Distribute those portions of the SDK that are identified
|
| 149 |
+
in this Agreement as distributable, as incorporated in
|
| 150 |
+
object code format into a software application that meets
|
| 151 |
+
the distribution requirements indicated in this Agreement.
|
| 152 |
+
|
| 153 |
+
|
| 154 |
+
1.1.2. Distribution Requirements
|
| 155 |
+
|
| 156 |
+
These are the distribution requirements for you to exercise
|
| 157 |
+
the distribution grant:
|
| 158 |
+
|
| 159 |
+
1. Your application must have material additional
|
| 160 |
+
functionality, beyond the included portions of the SDK.
|
| 161 |
+
|
| 162 |
+
2. The distributable portions of the SDK shall only be
|
| 163 |
+
accessed by your application.
|
| 164 |
+
|
| 165 |
+
3. The following notice shall be included in modifications
|
| 166 |
+
and derivative works of sample source code distributed:
|
| 167 |
+
“This software contains source code provided by NVIDIA
|
| 168 |
+
Corporation.”
|
| 169 |
+
|
| 170 |
+
4. Unless a developer tool is identified in this Agreement
|
| 171 |
+
as distributable, it is delivered for your internal use
|
| 172 |
+
only.
|
| 173 |
+
|
| 174 |
+
5. The terms under which you distribute your application
|
| 175 |
+
must be consistent with the terms of this Agreement,
|
| 176 |
+
including (without limitation) terms relating to the
|
| 177 |
+
license grant and license restrictions and protection of
|
| 178 |
+
NVIDIA’s intellectual property rights. Additionally, you
|
| 179 |
+
agree that you will protect the privacy, security and
|
| 180 |
+
legal rights of your application users.
|
| 181 |
+
|
| 182 |
+
6. You agree to notify NVIDIA in writing of any known or
|
| 183 |
+
suspected distribution or use of the SDK not in compliance
|
| 184 |
+
with the requirements of this Agreement, and to enforce
|
| 185 |
+
the terms of your agreements with respect to distributed
|
| 186 |
+
SDK.
|
| 187 |
+
|
| 188 |
+
|
| 189 |
+
1.1.3. Authorized Users
|
| 190 |
+
|
| 191 |
+
You may allow employees and contractors of your entity or of
|
| 192 |
+
your subsidiary(ies) to access and use the SDK from your
|
| 193 |
+
secure network to perform work on your behalf.
|
| 194 |
+
|
| 195 |
+
If you are an academic institution you may allow users
|
| 196 |
+
enrolled or employed by the academic institution to access and
|
| 197 |
+
use the SDK from your secure network.
|
| 198 |
+
|
| 199 |
+
You are responsible for the compliance with the terms of this
|
| 200 |
+
Agreement by your authorized users. If you become aware that
|
| 201 |
+
your authorized users didn’t follow the terms of this
|
| 202 |
+
Agreement, you agree to take reasonable steps to resolve the
|
| 203 |
+
non-compliance and prevent new occurrences.
|
| 204 |
+
|
| 205 |
+
|
| 206 |
+
1.1.4. Pre-Release SDK
|
| 207 |
+
|
| 208 |
+
The SDK versions identified as alpha, beta, preview or
|
| 209 |
+
otherwise as pre-release, may not be fully functional, may
|
| 210 |
+
contain errors or design flaws, and may have reduced or
|
| 211 |
+
different security, privacy, accessibility, availability, and
|
| 212 |
+
reliability standards relative to commercial versions of
|
| 213 |
+
NVIDIA software and materials. Use of a pre-release SDK may
|
| 214 |
+
result in unexpected results, loss of data, project delays or
|
| 215 |
+
other unpredictable damage or loss.
|
| 216 |
+
|
| 217 |
+
You may use a pre-release SDK at your own risk, understanding
|
| 218 |
+
that pre-release SDKs are not intended for use in production
|
| 219 |
+
or business-critical systems.
|
| 220 |
+
|
| 221 |
+
NVIDIA may choose not to make available a commercial version
|
| 222 |
+
of any pre-release SDK. NVIDIA may also choose to abandon
|
| 223 |
+
development and terminate the availability of a pre-release
|
| 224 |
+
SDK at any time without liability.
|
| 225 |
+
|
| 226 |
+
|
| 227 |
+
1.1.5. Updates
|
| 228 |
+
|
| 229 |
+
NVIDIA may, at its option, make available patches, workarounds
|
| 230 |
+
or other updates to this SDK. Unless the updates are provided
|
| 231 |
+
with their separate governing terms, they are deemed part of
|
| 232 |
+
the SDK licensed to you as provided in this Agreement. You
|
| 233 |
+
agree that the form and content of the SDK that NVIDIA
|
| 234 |
+
provides may change without prior notice to you. While NVIDIA
|
| 235 |
+
generally maintains compatibility between versions, NVIDIA may
|
| 236 |
+
in some cases make changes that introduce incompatibilities in
|
| 237 |
+
future versions of the SDK.
|
| 238 |
+
|
| 239 |
+
|
| 240 |
+
1.1.6. Components Under Other Licenses
|
| 241 |
+
|
| 242 |
+
The SDK may come bundled with, or otherwise include or be
|
| 243 |
+
distributed with, NVIDIA or third-party components with
|
| 244 |
+
separate legal notices or terms as may be described in
|
| 245 |
+
proprietary notices accompanying the SDK. If and to the extent
|
| 246 |
+
there is a conflict between the terms in this Agreement and
|
| 247 |
+
the license terms associated with the component, the license
|
| 248 |
+
terms associated with the components control only to the
|
| 249 |
+
extent necessary to resolve the conflict.
|
| 250 |
+
|
| 251 |
+
Subject to the other terms of this Agreement, you may use the
|
| 252 |
+
SDK to develop and test applications released under Open
|
| 253 |
+
Source Initiative (OSI) approved open source software
|
| 254 |
+
licenses.
|
| 255 |
+
|
| 256 |
+
|
| 257 |
+
1.1.7. Reservation of Rights
|
| 258 |
+
|
| 259 |
+
NVIDIA reserves all rights, title, and interest in and to the
|
| 260 |
+
SDK, not expressly granted to you under this Agreement.
|
| 261 |
+
|
| 262 |
+
|
| 263 |
+
1.2. Limitations
|
| 264 |
+
|
| 265 |
+
The following license limitations apply to your use of the
|
| 266 |
+
SDK:
|
| 267 |
+
|
| 268 |
+
1. You may not reverse engineer, decompile or disassemble,
|
| 269 |
+
or remove copyright or other proprietary notices from any
|
| 270 |
+
portion of the SDK or copies of the SDK.
|
| 271 |
+
|
| 272 |
+
2. Except as expressly provided in this Agreement, you may
|
| 273 |
+
not copy, sell, rent, sublicense, transfer, distribute,
|
| 274 |
+
modify, or create derivative works of any portion of the
|
| 275 |
+
SDK. For clarity, you may not distribute or sublicense the
|
| 276 |
+
SDK as a stand-alone product.
|
| 277 |
+
|
| 278 |
+
3. Unless you have an agreement with NVIDIA for this
|
| 279 |
+
purpose, you may not indicate that an application created
|
| 280 |
+
with the SDK is sponsored or endorsed by NVIDIA.
|
| 281 |
+
|
| 282 |
+
4. You may not bypass, disable, or circumvent any
|
| 283 |
+
encryption, security, digital rights management or
|
| 284 |
+
authentication mechanism in the SDK.
|
| 285 |
+
|
| 286 |
+
5. You may not use the SDK in any manner that would cause it
|
| 287 |
+
to become subject to an open source software license. As
|
| 288 |
+
examples, licenses that require as a condition of use,
|
| 289 |
+
modification, and/or distribution that the SDK be:
|
| 290 |
+
|
| 291 |
+
a. Disclosed or distributed in source code form;
|
| 292 |
+
|
| 293 |
+
b. Licensed for the purpose of making derivative works;
|
| 294 |
+
or
|
| 295 |
+
|
| 296 |
+
c. Redistributable at no charge.
|
| 297 |
+
|
| 298 |
+
6. You acknowledge that the SDK as delivered is not tested
|
| 299 |
+
or certified by NVIDIA for use in connection with the
|
| 300 |
+
design, construction, maintenance, and/or operation of any
|
| 301 |
+
system where the use or failure of such system could
|
| 302 |
+
result in a situation that threatens the safety of human
|
| 303 |
+
life or results in catastrophic damages (each, a "Critical
|
| 304 |
+
Application"). Examples of Critical Applications include
|
| 305 |
+
use in avionics, navigation, autonomous vehicle
|
| 306 |
+
applications, ai solutions for automotive products,
|
| 307 |
+
military, medical, life support or other life critical
|
| 308 |
+
applications. NVIDIA shall not be liable to you or any
|
| 309 |
+
third party, in whole or in part, for any claims or
|
| 310 |
+
damages arising from such uses. You are solely responsible
|
| 311 |
+
for ensuring that any product or service developed with
|
| 312 |
+
the SDK as a whole includes sufficient features to comply
|
| 313 |
+
with all applicable legal and regulatory standards and
|
| 314 |
+
requirements.
|
| 315 |
+
|
| 316 |
+
7. You agree to defend, indemnify and hold harmless NVIDIA
|
| 317 |
+
and its affiliates, and their respective employees,
|
| 318 |
+
contractors, agents, officers and directors, from and
|
| 319 |
+
against any and all claims, damages, obligations, losses,
|
| 320 |
+
liabilities, costs or debt, fines, restitutions and
|
| 321 |
+
expenses (including but not limited to attorney’s fees
|
| 322 |
+
and costs incident to establishing the right of
|
| 323 |
+
indemnification) arising out of or related to products or
|
| 324 |
+
services that use the SDK in or for Critical Applications,
|
| 325 |
+
and for use of the SDK outside of the scope of this
|
| 326 |
+
Agreement or not in compliance with its terms.
|
| 327 |
+
|
| 328 |
+
8. You may not reverse engineer, decompile or disassemble
|
| 329 |
+
any portion of the output generated using SDK elements for
|
| 330 |
+
the purpose of translating such output artifacts to target
|
| 331 |
+
a non-NVIDIA platform.
|
| 332 |
+
|
| 333 |
+
|
| 334 |
+
1.3. Ownership
|
| 335 |
+
|
| 336 |
+
1. NVIDIA or its licensors hold all rights, title and
|
| 337 |
+
interest in and to the SDK and its modifications and
|
| 338 |
+
derivative works, including their respective intellectual
|
| 339 |
+
property rights, subject to your rights under Section
|
| 340 |
+
1.3.2. This SDK may include software and materials from
|
| 341 |
+
NVIDIA’s licensors, and these licensors are intended
|
| 342 |
+
third party beneficiaries that may enforce this Agreement
|
| 343 |
+
with respect to their intellectual property rights.
|
| 344 |
+
|
| 345 |
+
2. You hold all rights, title and interest in and to your
|
| 346 |
+
applications and your derivative works of the sample
|
| 347 |
+
source code delivered in the SDK, including their
|
| 348 |
+
respective intellectual property rights, subject to
|
| 349 |
+
NVIDIA’s rights under Section 1.3.1.
|
| 350 |
+
|
| 351 |
+
3. You may, but don’t have to, provide to NVIDIA
|
| 352 |
+
suggestions, feature requests or other feedback regarding
|
| 353 |
+
the SDK, including possible enhancements or modifications
|
| 354 |
+
to the SDK. For any feedback that you voluntarily provide,
|
| 355 |
+
you hereby grant NVIDIA and its affiliates a perpetual,
|
| 356 |
+
non-exclusive, worldwide, irrevocable license to use,
|
| 357 |
+
reproduce, modify, license, sublicense (through multiple
|
| 358 |
+
tiers of sublicensees), and distribute (through multiple
|
| 359 |
+
tiers of distributors) it without the payment of any
|
| 360 |
+
royalties or fees to you. NVIDIA will use feedback at its
|
| 361 |
+
choice. NVIDIA is constantly looking for ways to improve
|
| 362 |
+
its products, so you may send feedback to NVIDIA through
|
| 363 |
+
the developer portal at https://developer.nvidia.com.
|
| 364 |
+
|
| 365 |
+
|
| 366 |
+
1.4. No Warranties
|
| 367 |
+
|
| 368 |
+
THE SDK IS PROVIDED BY NVIDIA “AS IS” AND “WITH ALL
|
| 369 |
+
FAULTS.” TO THE MAXIMUM EXTENT PERMITTED BY LAW, NVIDIA AND
|
| 370 |
+
ITS AFFILIATES EXPRESSLY DISCLAIM ALL WARRANTIES OF ANY KIND
|
| 371 |
+
OR NATURE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING,
|
| 372 |
+
BUT NOT LIMITED TO, ANY WARRANTIES OF MERCHANTABILITY, FITNESS
|
| 373 |
+
FOR A PARTICULAR PURPOSE, TITLE, NON-INFRINGEMENT, OR THE
|
| 374 |
+
ABSENCE OF ANY DEFECTS THEREIN, WHETHER LATENT OR PATENT. NO
|
| 375 |
+
WARRANTY IS MADE ON THE BASIS OF TRADE USAGE, COURSE OF
|
| 376 |
+
DEALING OR COURSE OF TRADE.
|
| 377 |
+
|
| 378 |
+
|
| 379 |
+
1.5. Limitation of Liability
|
| 380 |
+
|
| 381 |
+
TO THE MAXIMUM EXTENT PERMITTED BY LAW, NVIDIA AND ITS
|
| 382 |
+
AFFILIATES SHALL NOT BE LIABLE FOR ANY (I) SPECIAL, INCIDENTAL,
|
| 383 |
+
PUNITIVE OR CONSEQUENTIAL DAMAGES, OR (II) DAMAGES FOR (A) ANY
|
| 384 |
+
LOST PROFITS, LOSS OF USE, LOSS OF DATA OR LOSS OF GOODWILL,
|
| 385 |
+
OR THE COSTS OF PROCURING SUBSTITUTE PRODUCTS, ARISING OUT OF
|
| 386 |
+
OR IN CONNECTION WITH THIS AGREEMENT OR THE USE OR PERFORMANCE
|
| 387 |
+
OF THE SDK, WHETHER SUCH LIABILITY ARISES FROM ANY CLAIM BASED
|
| 388 |
+
UPON BREACH OF CONTRACT, BREACH OF WARRANTY, TORT (INCLUDING
|
| 389 |
+
NEGLIGENCE), PRODUCT LIABILITY OR ANY OTHER CAUSE OF ACTION OR
|
| 390 |
+
THEORY OF LIABILITY. IN NO EVENT WILL NVIDIA’S AND ITS AFFILIATES
|
| 391 |
+
TOTAL CUMULATIVE LIABILITY UNDER OR ARISING OUT OF THIS
|
| 392 |
+
AGREEMENT EXCEED US$10.00. THE NATURE OF THE LIABILITY OR THE
|
| 393 |
+
NUMBER OF CLAIMS OR SUITS SHALL NOT ENLARGE OR EXTEND THIS
|
| 394 |
+
LIMIT.
|
| 395 |
+
|
| 396 |
+
These exclusions and limitations of liability shall apply
|
| 397 |
+
regardless if NVIDIA or its affiliates have been advised of
|
| 398 |
+
the possibility of such damages, and regardless of whether a
|
| 399 |
+
remedy fails its essential purpose. These exclusions and
|
| 400 |
+
limitations of liability form an essential basis of the
|
| 401 |
+
bargain between the parties, and, absent any of these
|
| 402 |
+
exclusions or limitations of liability, the provisions of this
|
| 403 |
+
Agreement, including, without limitation, the economic terms,
|
| 404 |
+
would be substantially different.
|
| 405 |
+
|
| 406 |
+
|
| 407 |
+
1.6. Termination
|
| 408 |
+
|
| 409 |
+
1. This Agreement will continue to apply until terminated by
|
| 410 |
+
either you or NVIDIA as described below.
|
| 411 |
+
|
| 412 |
+
2. If you want to terminate this Agreement, you may do so by
|
| 413 |
+
stopping to use the SDK.
|
| 414 |
+
|
| 415 |
+
3. NVIDIA may, at any time, terminate this Agreement if:
|
| 416 |
+
|
| 417 |
+
a. (i) you fail to comply with any term of this
|
| 418 |
+
Agreement and the non-compliance is not fixed within
|
| 419 |
+
thirty (30) days following notice from NVIDIA (or
|
| 420 |
+
immediately if you violate NVIDIA’s intellectual
|
| 421 |
+
property rights);
|
| 422 |
+
|
| 423 |
+
b. (ii) you commence or participate in any legal
|
| 424 |
+
proceeding against NVIDIA with respect to the SDK; or
|
| 425 |
+
|
| 426 |
+
c. (iii) NVIDIA decides to no longer provide the SDK in
|
| 427 |
+
a country or, in NVIDIA’s sole discretion, the
|
| 428 |
+
continued use of it is no longer commercially viable.
|
| 429 |
+
|
| 430 |
+
4. Upon any termination of this Agreement, you agree to
|
| 431 |
+
promptly discontinue use of the SDK and destroy all copies
|
| 432 |
+
in your possession or control. Your prior distributions in
|
| 433 |
+
accordance with this Agreement are not affected by the
|
| 434 |
+
termination of this Agreement. Upon written request, you
|
| 435 |
+
will certify in writing that you have complied with your
|
| 436 |
+
commitments under this section. Upon any termination of
|
| 437 |
+
this Agreement all provisions survive except for the
|
| 438 |
+
license grant provisions.
|
| 439 |
+
|
| 440 |
+
|
| 441 |
+
1.7. General
|
| 442 |
+
|
| 443 |
+
If you wish to assign this Agreement or your rights and
|
| 444 |
+
obligations, including by merger, consolidation, dissolution
|
| 445 |
+
or operation of law, contact NVIDIA to ask for permission. Any
|
| 446 |
+
attempted assignment not approved by NVIDIA in writing shall
|
| 447 |
+
be void and of no effect. NVIDIA may assign, delegate or
|
| 448 |
+
transfer this Agreement and its rights and obligations, and if
|
| 449 |
+
to a non-affiliate you will be notified.
|
| 450 |
+
|
| 451 |
+
You agree to cooperate with NVIDIA and provide reasonably
|
| 452 |
+
requested information to verify your compliance with this
|
| 453 |
+
Agreement.
|
| 454 |
+
|
| 455 |
+
This Agreement will be governed in all respects by the laws of
|
| 456 |
+
the United States and of the State of Delaware, without regard to the
|
| 457 |
+
conflicts of laws principles. The United Nations Convention on
|
| 458 |
+
Contracts for the International Sale of Goods is specifically
|
| 459 |
+
disclaimed. You agree to all terms of this Agreement in the
|
| 460 |
+
English language.
|
| 461 |
+
|
| 462 |
+
The state or federal courts residing in Santa Clara County,
|
| 463 |
+
California shall have exclusive jurisdiction over any dispute
|
| 464 |
+
or claim arising out of this Agreement. Notwithstanding this,
|
| 465 |
+
you agree that NVIDIA shall still be allowed to apply for
|
| 466 |
+
injunctive remedies or an equivalent type of urgent legal
|
| 467 |
+
relief in any jurisdiction.
|
| 468 |
+
|
| 469 |
+
If any court of competent jurisdiction determines that any
|
| 470 |
+
provision of this Agreement is illegal, invalid or
|
| 471 |
+
unenforceable, such provision will be construed as limited to
|
| 472 |
+
the extent necessary to be consistent with and fully
|
| 473 |
+
enforceable under the law and the remaining provisions will
|
| 474 |
+
remain in full force and effect. Unless otherwise specified,
|
| 475 |
+
remedies are cumulative.
|
| 476 |
+
|
| 477 |
+
Each party acknowledges and agrees that the other is an
|
| 478 |
+
independent contractor in the performance of this Agreement.
|
| 479 |
+
|
| 480 |
+
The SDK has been developed entirely at private expense and is
|
| 481 |
+
“commercial items” consisting of “commercial computer
|
| 482 |
+
software” and “commercial computer software
|
| 483 |
+
documentation” provided with RESTRICTED RIGHTS. Use,
|
| 484 |
+
duplication or disclosure by the U.S. Government or a U.S.
|
| 485 |
+
Government subcontractor is subject to the restrictions in
|
| 486 |
+
this Agreement pursuant to DFARS 227.7202-3(a) or as set forth
|
| 487 |
+
in subparagraphs (c)(1) and (2) of the Commercial Computer
|
| 488 |
+
Software - Restricted Rights clause at FAR 52.227-19, as
|
| 489 |
+
applicable. Contractor/manufacturer is NVIDIA, 2788 San Tomas
|
| 490 |
+
Expressway, Santa Clara, CA 95051.
|
| 491 |
+
|
| 492 |
+
The SDK is subject to United States export laws and
|
| 493 |
+
regulations. You agree that you will not ship, transfer or
|
| 494 |
+
export the SDK into any country, or use the SDK in any manner,
|
| 495 |
+
prohibited by the United States Bureau of Industry and
|
| 496 |
+
Security or economic sanctions regulations administered by the
|
| 497 |
+
U.S. Department of Treasury’s Office of Foreign Assets
|
| 498 |
+
Control (OFAC), or any applicable export laws, restrictions or
|
| 499 |
+
regulations. These laws include restrictions on destinations,
|
| 500 |
+
end users and end use. By accepting this Agreement, you
|
| 501 |
+
confirm that you are not located in a country currently
|
| 502 |
+
embargoed by the U.S. or otherwise prohibited from receiving
|
| 503 |
+
the SDK under U.S. law.
|
| 504 |
+
|
| 505 |
+
Any notice delivered by NVIDIA to you under this Agreement
|
| 506 |
+
will be delivered via mail, email or fax. You agree that any
|
| 507 |
+
notices that NVIDIA sends you electronically will satisfy any
|
| 508 |
+
legal communication requirements. Please direct your legal
|
| 509 |
+
notices or other correspondence to NVIDIA Corporation, 2788
|
| 510 |
+
San Tomas Expressway, Santa Clara, California 95051, United
|
| 511 |
+
States of America, Attention: Legal Department.
|
| 512 |
+
|
| 513 |
+
This Agreement and any exhibits incorporated into this
|
| 514 |
+
Agreement constitute the entire agreement of the parties with
|
| 515 |
+
respect to the subject matter of this Agreement and supersede
|
| 516 |
+
all prior negotiations or documentation exchanged between the
|
| 517 |
+
parties relating to this SDK license. Any additional and/or
|
| 518 |
+
conflicting terms on documents issued by you are null, void,
|
| 519 |
+
and invalid. Any amendment or waiver under this Agreement
|
| 520 |
+
shall be in writing and signed by representatives of both
|
| 521 |
+
parties.
|
| 522 |
+
|
| 523 |
+
|
| 524 |
+
2. CUDA Toolkit Supplement to Software License Agreement for
|
| 525 |
+
NVIDIA Software Development Kits
|
| 526 |
+
------------------------------------------------------------
|
| 527 |
+
|
| 528 |
+
The terms in this supplement govern your use of the NVIDIA
|
| 529 |
+
CUDA Toolkit SDK under the terms of your license agreement
|
| 530 |
+
(“Agreement”) as modified by this supplement. Capitalized
|
| 531 |
+
terms used but not defined below have the meaning assigned to
|
| 532 |
+
them in the Agreement.
|
| 533 |
+
|
| 534 |
+
This supplement is an exhibit to the Agreement and is
|
| 535 |
+
incorporated as an integral part of the Agreement. In the
|
| 536 |
+
event of conflict between the terms in this supplement and the
|
| 537 |
+
terms in the Agreement, the terms in this supplement govern.
|
| 538 |
+
|
| 539 |
+
|
| 540 |
+
2.1. License Scope
|
| 541 |
+
|
| 542 |
+
The SDK is licensed for you to develop applications only for
|
| 543 |
+
use in systems with NVIDIA GPUs.
|
| 544 |
+
|
| 545 |
+
|
| 546 |
+
2.2. Distribution
|
| 547 |
+
|
| 548 |
+
The portions of the SDK that are distributable under the
|
| 549 |
+
Agreement are listed in Attachment A.
|
| 550 |
+
|
| 551 |
+
|
| 552 |
+
2.3. Operating Systems
|
| 553 |
+
|
| 554 |
+
Those portions of the SDK designed exclusively for use on the
|
| 555 |
+
Linux or FreeBSD operating systems, or other operating systems
|
| 556 |
+
derived from the source code to these operating systems, may
|
| 557 |
+
be copied and redistributed for use in accordance with this
|
| 558 |
+
Agreement, provided that the object code files are not
|
| 559 |
+
modified in any way (except for unzipping of compressed
|
| 560 |
+
files).
|
| 561 |
+
|
| 562 |
+
|
| 563 |
+
2.4. Audio and Video Encoders and Decoders
|
| 564 |
+
|
| 565 |
+
You acknowledge and agree that it is your sole responsibility
|
| 566 |
+
to obtain any additional third-party licenses required to
|
| 567 |
+
make, have made, use, have used, sell, import, and offer for
|
| 568 |
+
sale your products or services that include or incorporate any
|
| 569 |
+
third-party software and content relating to audio and/or
|
| 570 |
+
video encoders and decoders from, including but not limited
|
| 571 |
+
to, Microsoft, Thomson, Fraunhofer IIS, Sisvel S.p.A.,
|
| 572 |
+
MPEG-LA, and Coding Technologies. NVIDIA does not grant to you
|
| 573 |
+
under this Agreement any necessary patent or other rights with
|
| 574 |
+
respect to any audio and/or video encoders and decoders.
|
| 575 |
+
|
| 576 |
+
|
| 577 |
+
2.5. Licensing
|
| 578 |
+
|
| 579 |
+
If the distribution terms in this Agreement are not suitable
|
| 580 |
+
for your organization, or for any questions regarding this
|
| 581 |
+
Agreement, please contact NVIDIA at
|
| 582 |
+
nvidia-compute-license-questions@nvidia.com.
|
| 583 |
+
|
| 584 |
+
|
| 585 |
+
2.6. Attachment A
|
| 586 |
+
|
| 587 |
+
The following CUDA Toolkit files may be distributed with
|
| 588 |
+
applications developed by you, including certain
|
| 589 |
+
variations of these files that have version number or
|
| 590 |
+
architecture specific information embedded in the file name -
|
| 591 |
+
as an example only, for release version 9.0 of the 64-bit
|
| 592 |
+
Windows software, the file cudart64_90.dll is redistributable.
|
| 593 |
+
|
| 594 |
+
Component
|
| 595 |
+
|
| 596 |
+
CUDA Runtime
|
| 597 |
+
|
| 598 |
+
Windows
|
| 599 |
+
|
| 600 |
+
cudart.dll, cudart_static.lib, cudadevrt.lib
|
| 601 |
+
|
| 602 |
+
Mac OSX
|
| 603 |
+
|
| 604 |
+
libcudart.dylib, libcudart_static.a, libcudadevrt.a
|
| 605 |
+
|
| 606 |
+
Linux
|
| 607 |
+
|
| 608 |
+
libcudart.so, libcudart_static.a, libcudadevrt.a
|
| 609 |
+
|
| 610 |
+
Android
|
| 611 |
+
|
| 612 |
+
libcudart.so, libcudart_static.a, libcudadevrt.a
|
| 613 |
+
|
| 614 |
+
Component
|
| 615 |
+
|
| 616 |
+
CUDA FFT Library
|
| 617 |
+
|
| 618 |
+
Windows
|
| 619 |
+
|
| 620 |
+
cufft.dll, cufftw.dll, cufft.lib, cufftw.lib
|
| 621 |
+
|
| 622 |
+
Mac OSX
|
| 623 |
+
|
| 624 |
+
libcufft.dylib, libcufft_static.a, libcufftw.dylib,
|
| 625 |
+
libcufftw_static.a
|
| 626 |
+
|
| 627 |
+
Linux
|
| 628 |
+
|
| 629 |
+
libcufft.so, libcufft_static.a, libcufftw.so,
|
| 630 |
+
libcufftw_static.a
|
| 631 |
+
|
| 632 |
+
Android
|
| 633 |
+
|
| 634 |
+
libcufft.so, libcufft_static.a, libcufftw.so,
|
| 635 |
+
libcufftw_static.a
|
| 636 |
+
|
| 637 |
+
Component
|
| 638 |
+
|
| 639 |
+
CUDA BLAS Library
|
| 640 |
+
|
| 641 |
+
Windows
|
| 642 |
+
|
| 643 |
+
cublas.dll, cublasLt.dll
|
| 644 |
+
|
| 645 |
+
Mac OSX
|
| 646 |
+
|
| 647 |
+
libcublas.dylib, libcublasLt.dylib, libcublas_static.a,
|
| 648 |
+
libcublasLt_static.a
|
| 649 |
+
|
| 650 |
+
Linux
|
| 651 |
+
|
| 652 |
+
libcublas.so, libcublasLt.so, libcublas_static.a,
|
| 653 |
+
libcublasLt_static.a
|
| 654 |
+
|
| 655 |
+
Android
|
| 656 |
+
|
| 657 |
+
libcublas.so, libcublasLt.so, libcublas_static.a,
|
| 658 |
+
libcublasLt_static.a
|
| 659 |
+
|
| 660 |
+
Component
|
| 661 |
+
|
| 662 |
+
NVIDIA "Drop-in" BLAS Library
|
| 663 |
+
|
| 664 |
+
Windows
|
| 665 |
+
|
| 666 |
+
nvblas.dll
|
| 667 |
+
|
| 668 |
+
Mac OSX
|
| 669 |
+
|
| 670 |
+
libnvblas.dylib
|
| 671 |
+
|
| 672 |
+
Linux
|
| 673 |
+
|
| 674 |
+
libnvblas.so
|
| 675 |
+
|
| 676 |
+
Component
|
| 677 |
+
|
| 678 |
+
CUDA Sparse Matrix Library
|
| 679 |
+
|
| 680 |
+
Windows
|
| 681 |
+
|
| 682 |
+
cusparse.dll, cusparse.lib
|
| 683 |
+
|
| 684 |
+
Mac OSX
|
| 685 |
+
|
| 686 |
+
libcusparse.dylib, libcusparse_static.a
|
| 687 |
+
|
| 688 |
+
Linux
|
| 689 |
+
|
| 690 |
+
libcusparse.so, libcusparse_static.a
|
| 691 |
+
|
| 692 |
+
Android
|
| 693 |
+
|
| 694 |
+
libcusparse.so, libcusparse_static.a
|
| 695 |
+
|
| 696 |
+
Component
|
| 697 |
+
|
| 698 |
+
CUDA Linear Solver Library
|
| 699 |
+
|
| 700 |
+
Windows
|
| 701 |
+
|
| 702 |
+
cusolver.dll, cusolver.lib
|
| 703 |
+
|
| 704 |
+
Mac OSX
|
| 705 |
+
|
| 706 |
+
libcusolver.dylib, libcusolver_static.a
|
| 707 |
+
|
| 708 |
+
Linux
|
| 709 |
+
|
| 710 |
+
libcusolver.so, libcusolver_static.a
|
| 711 |
+
|
| 712 |
+
Android
|
| 713 |
+
|
| 714 |
+
libcusolver.so, libcusolver_static.a
|
| 715 |
+
|
| 716 |
+
Component
|
| 717 |
+
|
| 718 |
+
CUDA Random Number Generation Library
|
| 719 |
+
|
| 720 |
+
Windows
|
| 721 |
+
|
| 722 |
+
curand.dll, curand.lib
|
| 723 |
+
|
| 724 |
+
Mac OSX
|
| 725 |
+
|
| 726 |
+
libcurand.dylib, libcurand_static.a
|
| 727 |
+
|
| 728 |
+
Linux
|
| 729 |
+
|
| 730 |
+
libcurand.so, libcurand_static.a
|
| 731 |
+
|
| 732 |
+
Android
|
| 733 |
+
|
| 734 |
+
libcurand.so, libcurand_static.a
|
| 735 |
+
|
| 736 |
+
Component
|
| 737 |
+
|
| 738 |
+
NVIDIA Performance Primitives Library
|
| 739 |
+
|
| 740 |
+
Windows
|
| 741 |
+
|
| 742 |
+
nppc.dll, nppc.lib, nppial.dll, nppial.lib, nppicc.dll,
|
| 743 |
+
nppicc.lib, nppicom.dll, nppicom.lib, nppidei.dll,
|
| 744 |
+
nppidei.lib, nppif.dll, nppif.lib, nppig.dll, nppig.lib,
|
| 745 |
+
nppim.dll, nppim.lib, nppist.dll, nppist.lib, nppisu.dll,
|
| 746 |
+
nppisu.lib, nppitc.dll, nppitc.lib, npps.dll, npps.lib
|
| 747 |
+
|
| 748 |
+
Mac OSX
|
| 749 |
+
|
| 750 |
+
libnppc.dylib, libnppc_static.a, libnppial.dylib,
|
| 751 |
+
libnppial_static.a, libnppicc.dylib, libnppicc_static.a,
|
| 752 |
+
libnppicom.dylib, libnppicom_static.a, libnppidei.dylib,
|
| 753 |
+
libnppidei_static.a, libnppif.dylib, libnppif_static.a,
|
| 754 |
+
libnppig.dylib, libnppig_static.a, libnppim.dylib,
|
| 755 |
+
libnppisu_static.a, libnppitc.dylib, libnppitc_static.a,
|
| 756 |
+
libnpps.dylib, libnpps_static.a
|
| 757 |
+
|
| 758 |
+
Linux
|
| 759 |
+
|
| 760 |
+
libnppc.so, libnppc_static.a, libnppial.so,
|
| 761 |
+
libnppial_static.a, libnppicc.so, libnppicc_static.a,
|
| 762 |
+
libnppicom.so, libnppicom_static.a, libnppidei.so,
|
| 763 |
+
libnppidei_static.a, libnppif.so, libnppif_static.a
|
| 764 |
+
libnppig.so, libnppig_static.a, libnppim.so,
|
| 765 |
+
libnppim_static.a, libnppist.so, libnppist_static.a,
|
| 766 |
+
libnppisu.so, libnppisu_static.a, libnppitc.so
|
| 767 |
+
libnppitc_static.a, libnpps.so, libnpps_static.a
|
| 768 |
+
|
| 769 |
+
Android
|
| 770 |
+
|
| 771 |
+
libnppc.so, libnppc_static.a, libnppial.so,
|
| 772 |
+
libnppial_static.a, libnppicc.so, libnppicc_static.a,
|
| 773 |
+
libnppicom.so, libnppicom_static.a, libnppidei.so,
|
| 774 |
+
libnppidei_static.a, libnppif.so, libnppif_static.a
|
| 775 |
+
libnppig.so, libnppig_static.a, libnppim.so,
|
| 776 |
+
libnppim_static.a, libnppist.so, libnppist_static.a,
|
| 777 |
+
libnppisu.so, libnppisu_static.a, libnppitc.so
|
| 778 |
+
libnppitc_static.a, libnpps.so, libnpps_static.a
|
| 779 |
+
|
| 780 |
+
Component
|
| 781 |
+
|
| 782 |
+
NVIDIA JPEG Library
|
| 783 |
+
|
| 784 |
+
Windows
|
| 785 |
+
|
| 786 |
+
nvjpeg.lib, nvjpeg.dll
|
| 787 |
+
|
| 788 |
+
Linux
|
| 789 |
+
|
| 790 |
+
libnvjpeg.so, libnvjpeg_static.a
|
| 791 |
+
|
| 792 |
+
Component
|
| 793 |
+
|
| 794 |
+
Internal common library required for statically linking to
|
| 795 |
+
cuBLAS, cuSPARSE, cuFFT, cuRAND, nvJPEG and NPP
|
| 796 |
+
|
| 797 |
+
Mac OSX
|
| 798 |
+
|
| 799 |
+
libculibos.a
|
| 800 |
+
|
| 801 |
+
Linux
|
| 802 |
+
|
| 803 |
+
libculibos.a
|
| 804 |
+
|
| 805 |
+
Component
|
| 806 |
+
|
| 807 |
+
NVIDIA Runtime Compilation Library and Header
|
| 808 |
+
|
| 809 |
+
All
|
| 810 |
+
|
| 811 |
+
nvrtc.h
|
| 812 |
+
|
| 813 |
+
Windows
|
| 814 |
+
|
| 815 |
+
nvrtc.dll, nvrtc-builtins.dll
|
| 816 |
+
|
| 817 |
+
Mac OSX
|
| 818 |
+
|
| 819 |
+
libnvrtc.dylib, libnvrtc-builtins.dylib
|
| 820 |
+
|
| 821 |
+
Linux
|
| 822 |
+
|
| 823 |
+
libnvrtc.so, libnvrtc-builtins.so, libnvrtc_static.a, libnvrtx-builtins_static.a
|
| 824 |
+
|
| 825 |
+
Component
|
| 826 |
+
|
| 827 |
+
NVIDIA Optimizing Compiler Library
|
| 828 |
+
|
| 829 |
+
Windows
|
| 830 |
+
|
| 831 |
+
nvvm.dll
|
| 832 |
+
|
| 833 |
+
Mac OSX
|
| 834 |
+
|
| 835 |
+
libnvvm.dylib
|
| 836 |
+
|
| 837 |
+
Linux
|
| 838 |
+
|
| 839 |
+
libnvvm.so
|
| 840 |
+
|
| 841 |
+
Component
|
| 842 |
+
|
| 843 |
+
NVIDIA JIT Linking Library
|
| 844 |
+
|
| 845 |
+
Windows
|
| 846 |
+
|
| 847 |
+
libnvJitLink.dll, libnvJitLink.lib
|
| 848 |
+
|
| 849 |
+
Linux
|
| 850 |
+
|
| 851 |
+
libnvJitLink.so, libnvJitLink_static.a
|
| 852 |
+
|
| 853 |
+
Component
|
| 854 |
+
|
| 855 |
+
NVIDIA Common Device Math Functions Library
|
| 856 |
+
|
| 857 |
+
Windows
|
| 858 |
+
|
| 859 |
+
libdevice.10.bc
|
| 860 |
+
|
| 861 |
+
Mac OSX
|
| 862 |
+
|
| 863 |
+
libdevice.10.bc
|
| 864 |
+
|
| 865 |
+
Linux
|
| 866 |
+
|
| 867 |
+
libdevice.10.bc
|
| 868 |
+
|
| 869 |
+
Component
|
| 870 |
+
|
| 871 |
+
CUDA Occupancy Calculation Header Library
|
| 872 |
+
|
| 873 |
+
All
|
| 874 |
+
|
| 875 |
+
cuda_occupancy.h
|
| 876 |
+
|
| 877 |
+
Component
|
| 878 |
+
|
| 879 |
+
CUDA Half Precision Headers
|
| 880 |
+
|
| 881 |
+
All
|
| 882 |
+
|
| 883 |
+
cuda_fp16.h, cuda_fp16.hpp
|
| 884 |
+
|
| 885 |
+
Component
|
| 886 |
+
|
| 887 |
+
CUDA Profiling Tools Interface (CUPTI) Library
|
| 888 |
+
|
| 889 |
+
Windows
|
| 890 |
+
|
| 891 |
+
cupti.dll
|
| 892 |
+
|
| 893 |
+
Mac OSX
|
| 894 |
+
|
| 895 |
+
libcupti.dylib
|
| 896 |
+
|
| 897 |
+
Linux
|
| 898 |
+
|
| 899 |
+
libcupti.so
|
| 900 |
+
|
| 901 |
+
Component
|
| 902 |
+
|
| 903 |
+
NVIDIA Tools Extension Library
|
| 904 |
+
|
| 905 |
+
Windows
|
| 906 |
+
|
| 907 |
+
nvToolsExt.dll, nvToolsExt.lib
|
| 908 |
+
|
| 909 |
+
Mac OSX
|
| 910 |
+
|
| 911 |
+
libnvToolsExt.dylib
|
| 912 |
+
|
| 913 |
+
Linux
|
| 914 |
+
|
| 915 |
+
libnvToolsExt.so
|
| 916 |
+
|
| 917 |
+
Component
|
| 918 |
+
|
| 919 |
+
NVIDIA CUDA Driver Libraries
|
| 920 |
+
|
| 921 |
+
Linux
|
| 922 |
+
|
| 923 |
+
libcuda.so, libnvidia-ptxjitcompiler.so, libnvptxcompiler_static.a
|
| 924 |
+
|
| 925 |
+
Component
|
| 926 |
+
|
| 927 |
+
NVIDIA CUDA File IO Libraries and Header
|
| 928 |
+
|
| 929 |
+
All
|
| 930 |
+
|
| 931 |
+
cufile.h
|
| 932 |
+
|
| 933 |
+
Linux
|
| 934 |
+
|
| 935 |
+
libcufile.so, libcufile_rdma.so, libcufile_static.a,
|
| 936 |
+
libcufile_rdma_static.a
|
| 937 |
+
|
| 938 |
+
In addition to the rights above, for parties that are
|
| 939 |
+
developing software intended solely for use on Jetson
|
| 940 |
+
development kits or Jetson modules, and running Linux for
|
| 941 |
+
Tegra software, the following shall apply:
|
| 942 |
+
|
| 943 |
+
* The SDK may be distributed in its entirety, as provided by
|
| 944 |
+
NVIDIA, and without separation of its components, for you
|
| 945 |
+
and/or your licensees to create software development kits
|
| 946 |
+
for use only on the Jetson platform and running Linux for
|
| 947 |
+
Tegra software.
|
| 948 |
+
|
| 949 |
+
|
| 950 |
+
2.7. Attachment B
|
| 951 |
+
|
| 952 |
+
|
| 953 |
+
Additional Licensing Obligations
|
| 954 |
+
|
| 955 |
+
The following third party components included in the SOFTWARE
|
| 956 |
+
are licensed to Licensee pursuant to the following terms and
|
| 957 |
+
conditions:
|
| 958 |
+
|
| 959 |
+
1. Licensee's use of the GDB third party component is
|
| 960 |
+
subject to the terms and conditions of GNU GPL v3:
|
| 961 |
+
|
| 962 |
+
This product includes copyrighted third-party software licensed
|
| 963 |
+
under the terms of the GNU General Public License v3 ("GPL v3").
|
| 964 |
+
All third-party software packages are copyright by their respective
|
| 965 |
+
authors. GPL v3 terms and conditions are hereby incorporated into
|
| 966 |
+
the Agreement by this reference: http://www.gnu.org/licenses/gpl.txt
|
| 967 |
+
|
| 968 |
+
Consistent with these licensing requirements, the software
|
| 969 |
+
listed below is provided under the terms of the specified
|
| 970 |
+
open source software licenses. To obtain source code for
|
| 971 |
+
software provided under licenses that require
|
| 972 |
+
redistribution of source code, including the GNU General
|
| 973 |
+
Public License (GPL) and GNU Lesser General Public License
|
| 974 |
+
(LGPL), contact oss-requests@nvidia.com. This offer is
|
| 975 |
+
valid for a period of three (3) years from the date of the
|
| 976 |
+
distribution of this product by NVIDIA CORPORATION.
|
| 977 |
+
|
| 978 |
+
Component License
|
| 979 |
+
CUDA-GDB GPL v3
|
| 980 |
+
|
| 981 |
+
2. Licensee represents and warrants that any and all third
|
| 982 |
+
party licensing and/or royalty payment obligations in
|
| 983 |
+
connection with Licensee's use of the H.264 video codecs
|
| 984 |
+
are solely the responsibility of Licensee.
|
| 985 |
+
|
| 986 |
+
3. Licensee's use of the Thrust library is subject to the
|
| 987 |
+
terms and conditions of the Apache License Version 2.0.
|
| 988 |
+
All third-party software packages are copyright by their
|
| 989 |
+
respective authors. Apache License Version 2.0 terms and
|
| 990 |
+
conditions are hereby incorporated into the Agreement by
|
| 991 |
+
this reference.
|
| 992 |
+
http://www.apache.org/licenses/LICENSE-2.0.html
|
| 993 |
+
|
| 994 |
+
In addition, Licensee acknowledges the following notice:
|
| 995 |
+
Thrust includes source code from the Boost Iterator,
|
| 996 |
+
Tuple, System, and Random Number libraries.
|
| 997 |
+
|
| 998 |
+
Boost Software License - Version 1.0 - August 17th, 2003
|
| 999 |
+
. . . .
|
| 1000 |
+
|
| 1001 |
+
Permission is hereby granted, free of charge, to any person or
|
| 1002 |
+
organization obtaining a copy of the software and accompanying
|
| 1003 |
+
documentation covered by this license (the "Software") to use,
|
| 1004 |
+
reproduce, display, distribute, execute, and transmit the Software,
|
| 1005 |
+
and to prepare derivative works of the Software, and to permit
|
| 1006 |
+
third-parties to whom the Software is furnished to do so, all
|
| 1007 |
+
subject to the following:
|
| 1008 |
+
|
| 1009 |
+
The copyright notices in the Software and this entire statement,
|
| 1010 |
+
including the above license grant, this restriction and the following
|
| 1011 |
+
disclaimer, must be included in all copies of the Software, in whole
|
| 1012 |
+
or in part, and all derivative works of the Software, unless such
|
| 1013 |
+
copies or derivative works are solely in the form of machine-executable
|
| 1014 |
+
object code generated by a source language processor.
|
| 1015 |
+
|
| 1016 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
| 1017 |
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
| 1018 |
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND
|
| 1019 |
+
NON-INFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR
|
| 1020 |
+
ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE FOR ANY DAMAGES OR
|
| 1021 |
+
OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, ARISING
|
| 1022 |
+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
| 1023 |
+
OTHER DEALINGS IN THE SOFTWARE.
|
| 1024 |
+
|
| 1025 |
+
4. Licensee's use of the LLVM third party component is
|
| 1026 |
+
subject to the following terms and conditions:
|
| 1027 |
+
|
| 1028 |
+
======================================================
|
| 1029 |
+
LLVM Release License
|
| 1030 |
+
======================================================
|
| 1031 |
+
University of Illinois/NCSA
|
| 1032 |
+
Open Source License
|
| 1033 |
+
|
| 1034 |
+
Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign.
|
| 1035 |
+
All rights reserved.
|
| 1036 |
+
|
| 1037 |
+
Developed by:
|
| 1038 |
+
|
| 1039 |
+
LLVM Team
|
| 1040 |
+
|
| 1041 |
+
University of Illinois at Urbana-Champaign
|
| 1042 |
+
|
| 1043 |
+
http://llvm.org
|
| 1044 |
+
|
| 1045 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 1046 |
+
of this software and associated documentation files (the "Software"), to
|
| 1047 |
+
deal with the Software without restriction, including without limitation the
|
| 1048 |
+
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
| 1049 |
+
sell copies of the Software, and to permit persons to whom the Software is
|
| 1050 |
+
furnished to do so, subject to the following conditions:
|
| 1051 |
+
|
| 1052 |
+
* Redistributions of source code must retain the above copyright notice,
|
| 1053 |
+
this list of conditions and the following disclaimers.
|
| 1054 |
+
|
| 1055 |
+
* Redistributions in binary form must reproduce the above copyright
|
| 1056 |
+
notice, this list of conditions and the following disclaimers in the
|
| 1057 |
+
documentation and/or other materials provided with the distribution.
|
| 1058 |
+
|
| 1059 |
+
* Neither the names of the LLVM Team, University of Illinois at Urbana-
|
| 1060 |
+
Champaign, nor the names of its contributors may be used to endorse or
|
| 1061 |
+
promote products derived from this Software without specific prior
|
| 1062 |
+
written permission.
|
| 1063 |
+
|
| 1064 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 1065 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 1066 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
| 1067 |
+
THE CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
| 1068 |
+
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
| 1069 |
+
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
| 1070 |
+
DEALINGS WITH THE SOFTWARE.
|
| 1071 |
+
|
| 1072 |
+
5. Licensee's use of the PCRE third party component is
|
| 1073 |
+
subject to the following terms and conditions:
|
| 1074 |
+
|
| 1075 |
+
------------
|
| 1076 |
+
PCRE LICENCE
|
| 1077 |
+
------------
|
| 1078 |
+
PCRE is a library of functions to support regular expressions whose syntax
|
| 1079 |
+
and semantics are as close as possible to those of the Perl 5 language.
|
| 1080 |
+
Release 8 of PCRE is distributed under the terms of the "BSD" licence, as
|
| 1081 |
+
specified below. The documentation for PCRE, supplied in the "doc"
|
| 1082 |
+
directory, is distributed under the same terms as the software itself. The
|
| 1083 |
+
basic library functions are written in C and are freestanding. Also
|
| 1084 |
+
included in the distribution is a set of C++ wrapper functions, and a just-
|
| 1085 |
+
in-time compiler that can be used to optimize pattern matching. These are
|
| 1086 |
+
both optional features that can be omitted when the library is built.
|
| 1087 |
+
|
| 1088 |
+
THE BASIC LIBRARY FUNCTIONS
|
| 1089 |
+
---------------------------
|
| 1090 |
+
Written by: Philip Hazel
|
| 1091 |
+
Email local part: ph10
|
| 1092 |
+
Email domain: cam.ac.uk
|
| 1093 |
+
University of Cambridge Computing Service,
|
| 1094 |
+
Cambridge, England.
|
| 1095 |
+
Copyright (c) 1997-2012 University of Cambridge
|
| 1096 |
+
All rights reserved.
|
| 1097 |
+
|
| 1098 |
+
PCRE JUST-IN-TIME COMPILATION SUPPORT
|
| 1099 |
+
-------------------------------------
|
| 1100 |
+
Written by: Zoltan Herczeg
|
| 1101 |
+
Email local part: hzmester
|
| 1102 |
+
Emain domain: freemail.hu
|
| 1103 |
+
Copyright(c) 2010-2012 Zoltan Herczeg
|
| 1104 |
+
All rights reserved.
|
| 1105 |
+
|
| 1106 |
+
STACK-LESS JUST-IN-TIME COMPILER
|
| 1107 |
+
--------------------------------
|
| 1108 |
+
Written by: Zoltan Herczeg
|
| 1109 |
+
Email local part: hzmester
|
| 1110 |
+
Emain domain: freemail.hu
|
| 1111 |
+
Copyright(c) 2009-2012 Zoltan Herczeg
|
| 1112 |
+
All rights reserved.
|
| 1113 |
+
|
| 1114 |
+
THE C++ WRAPPER FUNCTIONS
|
| 1115 |
+
-------------------------
|
| 1116 |
+
Contributed by: Google Inc.
|
| 1117 |
+
Copyright (c) 2007-2012, Google Inc.
|
| 1118 |
+
All rights reserved.
|
| 1119 |
+
|
| 1120 |
+
THE "BSD" LICENCE
|
| 1121 |
+
-----------------
|
| 1122 |
+
Redistribution and use in source and binary forms, with or without
|
| 1123 |
+
modification, are permitted provided that the following conditions are met:
|
| 1124 |
+
|
| 1125 |
+
* Redistributions of source code must retain the above copyright notice,
|
| 1126 |
+
this list of conditions and the following disclaimer.
|
| 1127 |
+
|
| 1128 |
+
* Redistributions in binary form must reproduce the above copyright
|
| 1129 |
+
notice, this list of conditions and the following disclaimer in the
|
| 1130 |
+
documentation and/or other materials provided with the distribution.
|
| 1131 |
+
|
| 1132 |
+
* Neither the name of the University of Cambridge nor the name of Google
|
| 1133 |
+
Inc. nor the names of their contributors may be used to endorse or
|
| 1134 |
+
promote products derived from this software without specific prior
|
| 1135 |
+
written permission.
|
| 1136 |
+
|
| 1137 |
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
| 1138 |
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
| 1139 |
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
| 1140 |
+
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
|
| 1141 |
+
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
| 1142 |
+
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
| 1143 |
+
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
| 1144 |
+
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
| 1145 |
+
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
| 1146 |
+
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
| 1147 |
+
POSSIBILITY OF SUCH DAMAGE.
|
| 1148 |
+
|
| 1149 |
+
6. Some of the cuBLAS library routines were written by or
|
| 1150 |
+
derived from code written by Vasily Volkov and are subject
|
| 1151 |
+
to the Modified Berkeley Software Distribution License as
|
| 1152 |
+
follows:
|
| 1153 |
+
|
| 1154 |
+
Copyright (c) 2007-2009, Regents of the University of California
|
| 1155 |
+
|
| 1156 |
+
All rights reserved.
|
| 1157 |
+
|
| 1158 |
+
Redistribution and use in source and binary forms, with or without
|
| 1159 |
+
modification, are permitted provided that the following conditions are
|
| 1160 |
+
met:
|
| 1161 |
+
* Redistributions of source code must retain the above copyright
|
| 1162 |
+
notice, this list of conditions and the following disclaimer.
|
| 1163 |
+
* Redistributions in binary form must reproduce the above
|
| 1164 |
+
copyright notice, this list of conditions and the following
|
| 1165 |
+
disclaimer in the documentation and/or other materials provided
|
| 1166 |
+
with the distribution.
|
| 1167 |
+
* Neither the name of the University of California, Berkeley nor
|
| 1168 |
+
the names of its contributors may be used to endorse or promote
|
| 1169 |
+
products derived from this software without specific prior
|
| 1170 |
+
written permission.
|
| 1171 |
+
|
| 1172 |
+
THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR
|
| 1173 |
+
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
| 1174 |
+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
| 1175 |
+
DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
|
| 1176 |
+
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
| 1177 |
+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
| 1178 |
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
| 1179 |
+
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
|
| 1180 |
+
STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
|
| 1181 |
+
IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
| 1182 |
+
POSSIBILITY OF SUCH DAMAGE.
|
| 1183 |
+
|
| 1184 |
+
7. Some of the cuBLAS library routines were written by or
|
| 1185 |
+
derived from code written by Davide Barbieri and are
|
| 1186 |
+
subject to the Modified Berkeley Software Distribution
|
| 1187 |
+
License as follows:
|
| 1188 |
+
|
| 1189 |
+
Copyright (c) 2008-2009 Davide Barbieri @ University of Rome Tor Vergata.
|
| 1190 |
+
|
| 1191 |
+
All rights reserved.
|
| 1192 |
+
|
| 1193 |
+
Redistribution and use in source and binary forms, with or without
|
| 1194 |
+
modification, are permitted provided that the following conditions are
|
| 1195 |
+
met:
|
| 1196 |
+
* Redistributions of source code must retain the above copyright
|
| 1197 |
+
notice, this list of conditions and the following disclaimer.
|
| 1198 |
+
* Redistributions in binary form must reproduce the above
|
| 1199 |
+
copyright notice, this list of conditions and the following
|
| 1200 |
+
disclaimer in the documentation and/or other materials provided
|
| 1201 |
+
with the distribution.
|
| 1202 |
+
* The name of the author may not be used to endorse or promote
|
| 1203 |
+
products derived from this software without specific prior
|
| 1204 |
+
written permission.
|
| 1205 |
+
|
| 1206 |
+
THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR
|
| 1207 |
+
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
| 1208 |
+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
| 1209 |
+
DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
|
| 1210 |
+
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
| 1211 |
+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
| 1212 |
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
| 1213 |
+
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
|
| 1214 |
+
STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
|
| 1215 |
+
IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
| 1216 |
+
POSSIBILITY OF SUCH DAMAGE.
|
| 1217 |
+
|
| 1218 |
+
8. Some of the cuBLAS library routines were derived from
|
| 1219 |
+
code developed by the University of Tennessee and are
|
| 1220 |
+
subject to the Modified Berkeley Software Distribution
|
| 1221 |
+
License as follows:
|
| 1222 |
+
|
| 1223 |
+
Copyright (c) 2010 The University of Tennessee.
|
| 1224 |
+
|
| 1225 |
+
All rights reserved.
|
| 1226 |
+
|
| 1227 |
+
Redistribution and use in source and binary forms, with or without
|
| 1228 |
+
modification, are permitted provided that the following conditions are
|
| 1229 |
+
met:
|
| 1230 |
+
* Redistributions of source code must retain the above copyright
|
| 1231 |
+
notice, this list of conditions and the following disclaimer.
|
| 1232 |
+
* Redistributions in binary form must reproduce the above
|
| 1233 |
+
copyright notice, this list of conditions and the following
|
| 1234 |
+
disclaimer listed in this license in the documentation and/or
|
| 1235 |
+
other materials provided with the distribution.
|
| 1236 |
+
* Neither the name of the copyright holders nor the names of its
|
| 1237 |
+
contributors may be used to endorse or promote products derived
|
| 1238 |
+
from this software without specific prior written permission.
|
| 1239 |
+
|
| 1240 |
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
| 1241 |
+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
| 1242 |
+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
| 1243 |
+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
| 1244 |
+
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
| 1245 |
+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
| 1246 |
+
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
| 1247 |
+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
| 1248 |
+
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
| 1249 |
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
| 1250 |
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| 1251 |
+
|
| 1252 |
+
9. Some of the cuBLAS library routines were written by or
|
| 1253 |
+
derived from code written by Jonathan Hogg and are subject
|
| 1254 |
+
to the Modified Berkeley Software Distribution License as
|
| 1255 |
+
follows:
|
| 1256 |
+
|
| 1257 |
+
Copyright (c) 2012, The Science and Technology Facilities Council (STFC).
|
| 1258 |
+
|
| 1259 |
+
All rights reserved.
|
| 1260 |
+
|
| 1261 |
+
Redistribution and use in source and binary forms, with or without
|
| 1262 |
+
modification, are permitted provided that the following conditions are
|
| 1263 |
+
met:
|
| 1264 |
+
* Redistributions of source code must retain the above copyright
|
| 1265 |
+
notice, this list of conditions and the following disclaimer.
|
| 1266 |
+
* Redistributions in binary form must reproduce the above
|
| 1267 |
+
copyright notice, this list of conditions and the following
|
| 1268 |
+
disclaimer in the documentation and/or other materials provided
|
| 1269 |
+
with the distribution.
|
| 1270 |
+
* Neither the name of the STFC nor the names of its contributors
|
| 1271 |
+
may be used to endorse or promote products derived from this
|
| 1272 |
+
software without specific prior written permission.
|
| 1273 |
+
|
| 1274 |
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
| 1275 |
+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
| 1276 |
+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
| 1277 |
+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE STFC BE
|
| 1278 |
+
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
| 1279 |
+
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
| 1280 |
+
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
|
| 1281 |
+
BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
| 1282 |
+
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
|
| 1283 |
+
OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
|
| 1284 |
+
IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| 1285 |
+
|
| 1286 |
+
10. Some of the cuBLAS library routines were written by or
|
| 1287 |
+
derived from code written by Ahmad M. Abdelfattah, David
|
| 1288 |
+
Keyes, and Hatem Ltaief, and are subject to the Apache
|
| 1289 |
+
License, Version 2.0, as follows:
|
| 1290 |
+
|
| 1291 |
+
-- (C) Copyright 2013 King Abdullah University of Science and Technology
|
| 1292 |
+
Authors:
|
| 1293 |
+
Ahmad Abdelfattah (ahmad.ahmad@kaust.edu.sa)
|
| 1294 |
+
David Keyes (david.keyes@kaust.edu.sa)
|
| 1295 |
+
Hatem Ltaief (hatem.ltaief@kaust.edu.sa)
|
| 1296 |
+
|
| 1297 |
+
Redistribution and use in source and binary forms, with or without
|
| 1298 |
+
modification, are permitted provided that the following conditions
|
| 1299 |
+
are met:
|
| 1300 |
+
|
| 1301 |
+
* Redistributions of source code must retain the above copyright
|
| 1302 |
+
notice, this list of conditions and the following disclaimer.
|
| 1303 |
+
* Redistributions in binary form must reproduce the above copyright
|
| 1304 |
+
notice, this list of conditions and the following disclaimer in the
|
| 1305 |
+
documentation and/or other materials provided with the distribution.
|
| 1306 |
+
* Neither the name of the King Abdullah University of Science and
|
| 1307 |
+
Technology nor the names of its contributors may be used to endorse
|
| 1308 |
+
or promote products derived from this software without specific prior
|
| 1309 |
+
written permission.
|
| 1310 |
+
|
| 1311 |
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
| 1312 |
+
``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
| 1313 |
+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
| 1314 |
+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
| 1315 |
+
HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
| 1316 |
+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
| 1317 |
+
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
| 1318 |
+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
| 1319 |
+
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
| 1320 |
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
| 1321 |
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE
|
| 1322 |
+
|
| 1323 |
+
11. Some of the cuSPARSE library routines were written by or
|
| 1324 |
+
derived from code written by Li-Wen Chang and are subject
|
| 1325 |
+
to the NCSA Open Source License as follows:
|
| 1326 |
+
|
| 1327 |
+
Copyright (c) 2012, University of Illinois.
|
| 1328 |
+
|
| 1329 |
+
All rights reserved.
|
| 1330 |
+
|
| 1331 |
+
Developed by: IMPACT Group, University of Illinois, http://impact.crhc.illinois.edu
|
| 1332 |
+
|
| 1333 |
+
Permission is hereby granted, free of charge, to any person obtaining
|
| 1334 |
+
a copy of this software and associated documentation files (the
|
| 1335 |
+
"Software"), to deal with the Software without restriction, including
|
| 1336 |
+
without limitation the rights to use, copy, modify, merge, publish,
|
| 1337 |
+
distribute, sublicense, and/or sell copies of the Software, and to
|
| 1338 |
+
permit persons to whom the Software is furnished to do so, subject to
|
| 1339 |
+
the following conditions:
|
| 1340 |
+
* Redistributions of source code must retain the above copyright
|
| 1341 |
+
notice, this list of conditions and the following disclaimer.
|
| 1342 |
+
* Redistributions in binary form must reproduce the above
|
| 1343 |
+
copyright notice, this list of conditions and the following
|
| 1344 |
+
disclaimers in the documentation and/or other materials provided
|
| 1345 |
+
with the distribution.
|
| 1346 |
+
* Neither the names of IMPACT Group, University of Illinois, nor
|
| 1347 |
+
the names of its contributors may be used to endorse or promote
|
| 1348 |
+
products derived from this Software without specific prior
|
| 1349 |
+
written permission.
|
| 1350 |
+
|
| 1351 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
| 1352 |
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
| 1353 |
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
| 1354 |
+
NONINFRINGEMENT. IN NO EVENT SHALL THE CONTRIBUTORS OR COPYRIGHT
|
| 1355 |
+
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
| 1356 |
+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
|
| 1357 |
+
IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE
|
| 1358 |
+
SOFTWARE.
|
| 1359 |
+
|
| 1360 |
+
12. Some of the cuRAND library routines were written by or
|
| 1361 |
+
derived from code written by Mutsuo Saito and Makoto
|
| 1362 |
+
Matsumoto and are subject to the following license:
|
| 1363 |
+
|
| 1364 |
+
Copyright (c) 2009, 2010 Mutsuo Saito, Makoto Matsumoto and Hiroshima
|
| 1365 |
+
University. All rights reserved.
|
| 1366 |
+
|
| 1367 |
+
Copyright (c) 2011 Mutsuo Saito, Makoto Matsumoto, Hiroshima
|
| 1368 |
+
University and University of Tokyo. All rights reserved.
|
| 1369 |
+
|
| 1370 |
+
Redistribution and use in source and binary forms, with or without
|
| 1371 |
+
modification, are permitted provided that the following conditions are
|
| 1372 |
+
met:
|
| 1373 |
+
* Redistributions of source code must retain the above copyright
|
| 1374 |
+
notice, this list of conditions and the following disclaimer.
|
| 1375 |
+
* Redistributions in binary form must reproduce the above
|
| 1376 |
+
copyright notice, this list of conditions and the following
|
| 1377 |
+
disclaimer in the documentation and/or other materials provided
|
| 1378 |
+
with the distribution.
|
| 1379 |
+
* Neither the name of the Hiroshima University nor the names of
|
| 1380 |
+
its contributors may be used to endorse or promote products
|
| 1381 |
+
derived from this software without specific prior written
|
| 1382 |
+
permission.
|
| 1383 |
+
|
| 1384 |
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
| 1385 |
+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
| 1386 |
+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
| 1387 |
+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
| 1388 |
+
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
| 1389 |
+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
| 1390 |
+
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
| 1391 |
+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
| 1392 |
+
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
| 1393 |
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
| 1394 |
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| 1395 |
+
|
| 1396 |
+
13. Some of the cuRAND library routines were derived from
|
| 1397 |
+
code developed by D. E. Shaw Research and are subject to
|
| 1398 |
+
the following license:
|
| 1399 |
+
|
| 1400 |
+
Copyright 2010-2011, D. E. Shaw Research.
|
| 1401 |
+
|
| 1402 |
+
All rights reserved.
|
| 1403 |
+
|
| 1404 |
+
Redistribution and use in source and binary forms, with or without
|
| 1405 |
+
modification, are permitted provided that the following conditions are
|
| 1406 |
+
met:
|
| 1407 |
+
* Redistributions of source code must retain the above copyright
|
| 1408 |
+
notice, this list of conditions, and the following disclaimer.
|
| 1409 |
+
* Redistributions in binary form must reproduce the above
|
| 1410 |
+
copyright notice, this list of conditions, and the following
|
| 1411 |
+
disclaimer in the documentation and/or other materials provided
|
| 1412 |
+
with the distribution.
|
| 1413 |
+
* Neither the name of D. E. Shaw Research nor the names of its
|
| 1414 |
+
contributors may be used to endorse or promote products derived
|
| 1415 |
+
from this software without specific prior written permission.
|
| 1416 |
+
|
| 1417 |
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
| 1418 |
+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
| 1419 |
+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
| 1420 |
+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
| 1421 |
+
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
| 1422 |
+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
| 1423 |
+
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
| 1424 |
+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
| 1425 |
+
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
| 1426 |
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
| 1427 |
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| 1428 |
+
|
| 1429 |
+
14. Some of the Math library routines were written by or
|
| 1430 |
+
derived from code developed by Norbert Juffa and are
|
| 1431 |
+
subject to the following license:
|
| 1432 |
+
|
| 1433 |
+
Copyright (c) 2015-2017, Norbert Juffa
|
| 1434 |
+
All rights reserved.
|
| 1435 |
+
|
| 1436 |
+
Redistribution and use in source and binary forms, with or without
|
| 1437 |
+
modification, are permitted provided that the following conditions
|
| 1438 |
+
are met:
|
| 1439 |
+
|
| 1440 |
+
1. Redistributions of source code must retain the above copyright
|
| 1441 |
+
notice, this list of conditions and the following disclaimer.
|
| 1442 |
+
|
| 1443 |
+
2. Redistributions in binary form must reproduce the above copyright
|
| 1444 |
+
notice, this list of conditions and the following disclaimer in the
|
| 1445 |
+
documentation and/or other materials provided with the distribution.
|
| 1446 |
+
|
| 1447 |
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
| 1448 |
+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
| 1449 |
+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
| 1450 |
+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
| 1451 |
+
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
| 1452 |
+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
| 1453 |
+
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
| 1454 |
+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
| 1455 |
+
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
| 1456 |
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
| 1457 |
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| 1458 |
+
|
| 1459 |
+
15. Licensee's use of the lz4 third party component is
|
| 1460 |
+
subject to the following terms and conditions:
|
| 1461 |
+
|
| 1462 |
+
Copyright (C) 2011-2013, Yann Collet.
|
| 1463 |
+
BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php)
|
| 1464 |
+
|
| 1465 |
+
Redistribution and use in source and binary forms, with or without
|
| 1466 |
+
modification, are permitted provided that the following conditions are
|
| 1467 |
+
met:
|
| 1468 |
+
|
| 1469 |
+
* Redistributions of source code must retain the above copyright
|
| 1470 |
+
notice, this list of conditions and the following disclaimer.
|
| 1471 |
+
* Redistributions in binary form must reproduce the above
|
| 1472 |
+
copyright notice, this list of conditions and the following disclaimer
|
| 1473 |
+
in the documentation and/or other materials provided with the
|
| 1474 |
+
distribution.
|
| 1475 |
+
|
| 1476 |
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
| 1477 |
+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
| 1478 |
+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
| 1479 |
+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
| 1480 |
+
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
| 1481 |
+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
| 1482 |
+
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
| 1483 |
+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
| 1484 |
+
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
| 1485 |
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
| 1486 |
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| 1487 |
+
|
| 1488 |
+
16. The NPP library uses code from the Boost Math Toolkit,
|
| 1489 |
+
and is subject to the following license:
|
| 1490 |
+
|
| 1491 |
+
Boost Software License - Version 1.0 - August 17th, 2003
|
| 1492 |
+
. . . .
|
| 1493 |
+
|
| 1494 |
+
Permission is hereby granted, free of charge, to any person or
|
| 1495 |
+
organization obtaining a copy of the software and accompanying
|
| 1496 |
+
documentation covered by this license (the "Software") to use,
|
| 1497 |
+
reproduce, display, distribute, execute, and transmit the Software,
|
| 1498 |
+
and to prepare derivative works of the Software, and to permit
|
| 1499 |
+
third-parties to whom the Software is furnished to do so, all
|
| 1500 |
+
subject to the following:
|
| 1501 |
+
|
| 1502 |
+
The copyright notices in the Software and this entire statement,
|
| 1503 |
+
including the above license grant, this restriction and the following
|
| 1504 |
+
disclaimer, must be included in all copies of the Software, in whole
|
| 1505 |
+
or in part, and all derivative works of the Software, unless such
|
| 1506 |
+
copies or derivative works are solely in the form of machine-executable
|
| 1507 |
+
object code generated by a source language processor.
|
| 1508 |
+
|
| 1509 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
| 1510 |
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
| 1511 |
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND
|
| 1512 |
+
NON-INFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR
|
| 1513 |
+
ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE FOR ANY DAMAGES OR
|
| 1514 |
+
OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, ARISING
|
| 1515 |
+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
| 1516 |
+
OTHER DEALINGS IN THE SOFTWARE.
|
| 1517 |
+
|
| 1518 |
+
17. Portions of the Nsight Eclipse Edition is subject to the
|
| 1519 |
+
following license:
|
| 1520 |
+
|
| 1521 |
+
The Eclipse Foundation makes available all content in this plug-in
|
| 1522 |
+
("Content"). Unless otherwise indicated below, the Content is provided
|
| 1523 |
+
to you under the terms and conditions of the Eclipse Public License
|
| 1524 |
+
Version 1.0 ("EPL"). A copy of the EPL is available at http://
|
| 1525 |
+
www.eclipse.org/legal/epl-v10.html. For purposes of the EPL, "Program"
|
| 1526 |
+
will mean the Content.
|
| 1527 |
+
|
| 1528 |
+
If you did not receive this Content directly from the Eclipse
|
| 1529 |
+
Foundation, the Content is being redistributed by another party
|
| 1530 |
+
("Redistributor") and different terms and conditions may apply to your
|
| 1531 |
+
use of any object code in the Content. Check the Redistributor's
|
| 1532 |
+
license that was provided with the Content. If no such license exists,
|
| 1533 |
+
contact the Redistributor. Unless otherwise indicated below, the terms
|
| 1534 |
+
and conditions of the EPL still apply to any source code in the
|
| 1535 |
+
Content and such source code may be obtained at http://www.eclipse.org.
|
| 1536 |
+
|
| 1537 |
+
18. Some of the cuBLAS library routines uses code from
|
| 1538 |
+
OpenAI, which is subject to the following license:
|
| 1539 |
+
|
| 1540 |
+
License URL
|
| 1541 |
+
https://github.com/openai/openai-gemm/blob/master/LICENSE
|
| 1542 |
+
|
| 1543 |
+
License Text
|
| 1544 |
+
The MIT License
|
| 1545 |
+
|
| 1546 |
+
Copyright (c) 2016 OpenAI (http://openai.com), 2016 Google Inc.
|
| 1547 |
+
|
| 1548 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 1549 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 1550 |
+
in the Software without restriction, including without limitation the rights
|
| 1551 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 1552 |
+
copies of the Software, and to permit persons to whom the Software is
|
| 1553 |
+
furnished to do so, subject to the following conditions:
|
| 1554 |
+
|
| 1555 |
+
The above copyright notice and this permission notice shall be included in
|
| 1556 |
+
all copies or substantial portions of the Software.
|
| 1557 |
+
|
| 1558 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 1559 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 1560 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 1561 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 1562 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 1563 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
| 1564 |
+
THE SOFTWARE.
|
| 1565 |
+
|
| 1566 |
+
19. Licensee's use of the Visual Studio Setup Configuration
|
| 1567 |
+
Samples is subject to the following license:
|
| 1568 |
+
|
| 1569 |
+
The MIT License (MIT)
|
| 1570 |
+
Copyright (C) Microsoft Corporation. All rights reserved.
|
| 1571 |
+
|
| 1572 |
+
Permission is hereby granted, free of charge, to any person
|
| 1573 |
+
obtaining a copy of this software and associated documentation
|
| 1574 |
+
files (the "Software"), to deal in the Software without restriction,
|
| 1575 |
+
including without limitation the rights to use, copy, modify, merge,
|
| 1576 |
+
publish, distribute, sublicense, and/or sell copies of the Software,
|
| 1577 |
+
and to permit persons to whom the Software is furnished to do so,
|
| 1578 |
+
subject to the following conditions:
|
| 1579 |
+
|
| 1580 |
+
The above copyright notice and this permission notice shall be included
|
| 1581 |
+
in all copies or substantial portions of the Software.
|
| 1582 |
+
|
| 1583 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
| 1584 |
+
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 1585 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 1586 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 1587 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 1588 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
| 1589 |
+
|
| 1590 |
+
20. Licensee's use of linmath.h header for CPU functions for
|
| 1591 |
+
GL vector/matrix operations from lunarG is subject to the
|
| 1592 |
+
Apache License Version 2.0.
|
| 1593 |
+
|
| 1594 |
+
21. The DX12-CUDA sample uses the d3dx12.h header, which is
|
| 1595 |
+
subject to the MIT license.
|
| 1596 |
+
|
| 1597 |
+
22. Components of the driver and compiler used for binary management, including
|
| 1598 |
+
nvFatBin, nvcc, and cuobjdump, use the Zstandard library which is subject to
|
| 1599 |
+
the following license:
|
| 1600 |
+
|
| 1601 |
+
BSD License
|
| 1602 |
+
|
| 1603 |
+
For Zstandard software
|
| 1604 |
+
|
| 1605 |
+
Copyright (c) Meta Platforms, Inc. and affiliates. All rights reserved.
|
| 1606 |
+
|
| 1607 |
+
Redistribution and use in source and binary forms, with or without modification,
|
| 1608 |
+
are permitted provided that the following conditions are met:
|
| 1609 |
+
|
| 1610 |
+
* Redistributions of source code must retain the above copyright notice, this
|
| 1611 |
+
list of conditions and the following disclaimer.
|
| 1612 |
+
|
| 1613 |
+
* Redistributions in binary form must reproduce the above copyright notice,
|
| 1614 |
+
this list of conditions and the following disclaimer in the documentation
|
| 1615 |
+
and/or other materials provided with the distribution.
|
| 1616 |
+
|
| 1617 |
+
* Neither the name Facebook, nor Meta, nor the names of its contributors may
|
| 1618 |
+
be used to endorse or promote products derived from this software without
|
| 1619 |
+
specific prior written permission.
|
| 1620 |
+
|
| 1621 |
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
| 1622 |
+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
| 1623 |
+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
| 1624 |
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY
|
| 1625 |
+
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
| 1626 |
+
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
|
| 1627 |
+
OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
| 1628 |
+
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
| 1629 |
+
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
|
| 1630 |
+
OF SUCH DAMAGE.
|
| 1631 |
+
|
| 1632 |
+
-----------------
|
data/miniconda3/pkgs/cuda-crt-dev_linux-64-12.8.93-h06a4308_3/info/link.json
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"noarch": {
|
| 3 |
+
"type": "generic"
|
| 4 |
+
},
|
| 5 |
+
"package_metadata_version": 1
|
| 6 |
+
}
|
data/miniconda3/pkgs/cuda-crt-dev_linux-64-12.8.93-h06a4308_3/info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86_64-linux/include/crt/common_functions.h",
|
| 5 |
+
"path_type": "hardlink",
|
| 6 |
+
"sha256": "f94e387f8c941a6c033f077b43fdc2cf989fd39c4718f4a5033cf9cccca52d24",
|
| 7 |
+
"size_in_bytes": 13559
|
| 8 |
+
},
|
| 9 |
+
{
|
| 10 |
+
"_path": "targets/x86_64-linux/include/crt/cudacc_ext.h",
|
| 11 |
+
"path_type": "hardlink",
|
| 12 |
+
"sha256": "296ea7d0898e64a4b456a5660475935ed1c8f35ea187cf187848148366987555",
|
| 13 |
+
"size_in_bytes": 3224
|
| 14 |
+
},
|
| 15 |
+
{
|
| 16 |
+
"_path": "targets/x86_64-linux/include/crt/device_double_functions.h",
|
| 17 |
+
"path_type": "hardlink",
|
| 18 |
+
"sha256": "035bc1de0d2ac273447dca53d5df518860dac6a3d75e062bf95c5eda8307cb16",
|
| 19 |
+
"size_in_bytes": 39938
|
| 20 |
+
},
|
| 21 |
+
{
|
| 22 |
+
"_path": "targets/x86_64-linux/include/crt/device_double_functions.hpp",
|
| 23 |
+
"path_type": "hardlink",
|
| 24 |
+
"sha256": "61821ba9885be5099ff1ce187dc0bf8f2b60e054707173e3bf74c54f085bdb81",
|
| 25 |
+
"size_in_bytes": 8568
|
| 26 |
+
},
|
| 27 |
+
{
|
| 28 |
+
"_path": "targets/x86_64-linux/include/crt/device_fp128_functions.h",
|
| 29 |
+
"path_type": "hardlink",
|
| 30 |
+
"sha256": "de208aadd98fa753488eb946478edd0993a057d5fa32675f9a3ba0ac5e8312db",
|
| 31 |
+
"size_in_bytes": 51047
|
| 32 |
+
},
|
| 33 |
+
{
|
| 34 |
+
"_path": "targets/x86_64-linux/include/crt/device_functions.h",
|
| 35 |
+
"path_type": "hardlink",
|
| 36 |
+
"sha256": "4f820db9104894b99ddc9100f07e81e571d500d195ea3f20c325138f987f175f",
|
| 37 |
+
"size_in_bytes": 137919
|
| 38 |
+
},
|
| 39 |
+
{
|
| 40 |
+
"_path": "targets/x86_64-linux/include/crt/device_functions.hpp",
|
| 41 |
+
"path_type": "hardlink",
|
| 42 |
+
"sha256": "3951e2a818dd6b2fda5059c3289c53788d150d923c640e8921d50a780291e290",
|
| 43 |
+
"size_in_bytes": 37991
|
| 44 |
+
},
|
| 45 |
+
{
|
| 46 |
+
"_path": "targets/x86_64-linux/include/crt/func_macro.h",
|
| 47 |
+
"path_type": "hardlink",
|
| 48 |
+
"sha256": "10ea4395a33dd7b6e1f5cc0188504f17af3d0c2301c398456abc4bc45b7e8bbe",
|
| 49 |
+
"size_in_bytes": 1755
|
| 50 |
+
},
|
| 51 |
+
{
|
| 52 |
+
"_path": "targets/x86_64-linux/include/crt/host_config.h",
|
| 53 |
+
"path_type": "hardlink",
|
| 54 |
+
"sha256": "d5e922df0e71b98d3480891d61b9927d93b64a823c8226566124d120bdae16cd",
|
| 55 |
+
"size_in_bytes": 12169
|
| 56 |
+
},
|
| 57 |
+
{
|
| 58 |
+
"_path": "targets/x86_64-linux/include/crt/host_defines.h",
|
| 59 |
+
"path_type": "hardlink",
|
| 60 |
+
"sha256": "7c353fd1c41db48bc474cd33645298d0e6e83003443201cb6e589f3da94f18b9",
|
| 61 |
+
"size_in_bytes": 10102
|
| 62 |
+
},
|
| 63 |
+
{
|
| 64 |
+
"_path": "targets/x86_64-linux/include/crt/host_runtime.h",
|
| 65 |
+
"path_type": "hardlink",
|
| 66 |
+
"sha256": "94ea66931159564129f1d70c0061194484ec87ed7da3d8f2dfd91d48d2dcdcd8",
|
| 67 |
+
"size_in_bytes": 10284
|
| 68 |
+
},
|
| 69 |
+
{
|
| 70 |
+
"_path": "targets/x86_64-linux/include/crt/math_functions.h",
|
| 71 |
+
"path_type": "hardlink",
|
| 72 |
+
"sha256": "2f2189d1752d862e96122f985484c89e16bd03a485a01e1f114514f738a2ed4f",
|
| 73 |
+
"size_in_bytes": 238284
|
| 74 |
+
},
|
| 75 |
+
{
|
| 76 |
+
"_path": "targets/x86_64-linux/include/crt/math_functions.hpp",
|
| 77 |
+
"path_type": "hardlink",
|
| 78 |
+
"sha256": "bbe0866ddd11d8565674a1bee9b766192a2bf4a4ffc279884a3eb794f40a0123",
|
| 79 |
+
"size_in_bytes": 100207
|
| 80 |
+
},
|
| 81 |
+
{
|
| 82 |
+
"_path": "targets/x86_64-linux/include/crt/mma.h",
|
| 83 |
+
"path_type": "hardlink",
|
| 84 |
+
"sha256": "068a1600b0d6013bd9ba925a2fbf8615045060ea2d35efc5cb5d48e4d1a1d850",
|
| 85 |
+
"size_in_bytes": 62695
|
| 86 |
+
},
|
| 87 |
+
{
|
| 88 |
+
"_path": "targets/x86_64-linux/include/crt/mma.hpp",
|
| 89 |
+
"path_type": "hardlink",
|
| 90 |
+
"sha256": "b29a342d7ef5b540a2a712b9d7b06cb23d2773e6477fca0c5b3bc7a18601ffa2",
|
| 91 |
+
"size_in_bytes": 66599
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"_path": "targets/x86_64-linux/include/crt/nvfunctional",
|
| 95 |
+
"path_type": "hardlink",
|
| 96 |
+
"sha256": "143334cea58ee9b97d8e924acfd53c08c6e3b7a8932a1d7cb506a5c40bd1b1a8",
|
| 97 |
+
"size_in_bytes": 16900
|
| 98 |
+
},
|
| 99 |
+
{
|
| 100 |
+
"_path": "targets/x86_64-linux/include/crt/sm_100_rt.h",
|
| 101 |
+
"path_type": "hardlink",
|
| 102 |
+
"sha256": "ddc062094d7539c8c6629afce5e742375ab89b6cfdd45686841b6e3b48ace13a",
|
| 103 |
+
"size_in_bytes": 8987
|
| 104 |
+
},
|
| 105 |
+
{
|
| 106 |
+
"_path": "targets/x86_64-linux/include/crt/sm_100_rt.hpp",
|
| 107 |
+
"path_type": "hardlink",
|
| 108 |
+
"sha256": "bdb23608d098d3c74323bcd7c29e8135c7992a5d1c7971b596f7aae30f9535aa",
|
| 109 |
+
"size_in_bytes": 6855
|
| 110 |
+
},
|
| 111 |
+
{
|
| 112 |
+
"_path": "targets/x86_64-linux/include/crt/sm_70_rt.h",
|
| 113 |
+
"path_type": "hardlink",
|
| 114 |
+
"sha256": "29ff37d31ca603ece617b2ecba71472d23728614f952224ca1c8281c141e367b",
|
| 115 |
+
"size_in_bytes": 6837
|
| 116 |
+
},
|
| 117 |
+
{
|
| 118 |
+
"_path": "targets/x86_64-linux/include/crt/sm_70_rt.hpp",
|
| 119 |
+
"path_type": "hardlink",
|
| 120 |
+
"sha256": "ddafeb53e63431207886d043158e0f090fe35e25854deed64f567284cb8224e0",
|
| 121 |
+
"size_in_bytes": 7837
|
| 122 |
+
},
|
| 123 |
+
{
|
| 124 |
+
"_path": "targets/x86_64-linux/include/crt/sm_80_rt.h",
|
| 125 |
+
"path_type": "hardlink",
|
| 126 |
+
"sha256": "31d2475824732ccfff9c30dfd60a3ad6b0ec97dc9d396de88ba49905f8d4c9cf",
|
| 127 |
+
"size_in_bytes": 7743
|
| 128 |
+
},
|
| 129 |
+
{
|
| 130 |
+
"_path": "targets/x86_64-linux/include/crt/sm_80_rt.hpp",
|
| 131 |
+
"path_type": "hardlink",
|
| 132 |
+
"sha256": "a3eac9bbe8e97a109ec8004682ffbc758441ee82530b0b8d76f482ab455445d1",
|
| 133 |
+
"size_in_bytes": 6705
|
| 134 |
+
},
|
| 135 |
+
{
|
| 136 |
+
"_path": "targets/x86_64-linux/include/crt/sm_90_rt.h",
|
| 137 |
+
"path_type": "hardlink",
|
| 138 |
+
"sha256": "6a7e3b9b45c505a277a545fd325138fa792d3f58dbdde2545e14379ed66dcdcf",
|
| 139 |
+
"size_in_bytes": 11445
|
| 140 |
+
},
|
| 141 |
+
{
|
| 142 |
+
"_path": "targets/x86_64-linux/include/crt/sm_90_rt.hpp",
|
| 143 |
+
"path_type": "hardlink",
|
| 144 |
+
"sha256": "62ea95ca0195eab82d5adc7527d70fa4423705729004823e133ea86453f7c2b1",
|
| 145 |
+
"size_in_bytes": 9228
|
| 146 |
+
},
|
| 147 |
+
{
|
| 148 |
+
"_path": "targets/x86_64-linux/include/crt/storage_class.h",
|
| 149 |
+
"path_type": "hardlink",
|
| 150 |
+
"sha256": "77370e675ea92da37c7a3a87697c388876c127a7d75b17da53eb23d908d8cf38",
|
| 151 |
+
"size_in_bytes": 4791
|
| 152 |
+
}
|
| 153 |
+
],
|
| 154 |
+
"paths_version": 1
|
| 155 |
+
}
|
data/miniconda3/pkgs/cuda-crt-dev_linux-64-12.8.93-h06a4308_3/info/recipe/conda_build_config.yaml
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
c_compiler: gcc
|
| 2 |
+
c_compiler_version: 11.2.0
|
| 3 |
+
c_stdlib: sysroot
|
| 4 |
+
c_stdlib_version: '2.28'
|
| 5 |
+
channel_targets: defaults
|
| 6 |
+
cpu_optimization_target: nocona
|
| 7 |
+
cran_mirror: https://cran.r-project.org
|
| 8 |
+
cxx_compiler: gxx
|
| 9 |
+
cxx_compiler_version: 11.2.0
|
| 10 |
+
extend_keys:
|
| 11 |
+
- ignore_version
|
| 12 |
+
- pin_run_as_build
|
| 13 |
+
- ignore_build_only_deps
|
| 14 |
+
- extend_keys
|
| 15 |
+
fortran_compiler: gfortran
|
| 16 |
+
ignore_build_only_deps:
|
| 17 |
+
- python
|
| 18 |
+
- numpy
|
| 19 |
+
lua: '5'
|
| 20 |
+
numpy: '1.26'
|
| 21 |
+
perl: 5.26.2
|
| 22 |
+
pin_run_as_build:
|
| 23 |
+
python:
|
| 24 |
+
max_pin: x.x
|
| 25 |
+
min_pin: x.x
|
| 26 |
+
r-base:
|
| 27 |
+
max_pin: x.x
|
| 28 |
+
min_pin: x.x
|
| 29 |
+
platform: linux-64
|
| 30 |
+
python: '3.12'
|
| 31 |
+
r_base: '3.5'
|
| 32 |
+
target_platform: linux-64
|
| 33 |
+
xz: '5'
|
data/miniconda3/pkgs/cuda-crt-dev_linux-64-12.8.93-h06a4308_3/info/recipe/meta.yaml
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# This file created by conda-build 25.1.2
|
| 2 |
+
# ------------------------------------------------
|
| 3 |
+
|
| 4 |
+
package:
|
| 5 |
+
name: cuda-crt-dev_linux-64
|
| 6 |
+
version: 12.8.93
|
| 7 |
+
source:
|
| 8 |
+
patches:
|
| 9 |
+
- nvcc.profile.patch
|
| 10 |
+
sha256: 9961b3484b6b71314063709a4f9529654f96782ad39e72bf1e00f070db8210d3
|
| 11 |
+
url: https://developer.download.nvidia.com/compute/cuda/redist/cuda_nvcc/linux-x86_64/cuda_nvcc-linux-x86_64-12.8.93-archive.tar.xz
|
| 12 |
+
build:
|
| 13 |
+
noarch: generic
|
| 14 |
+
number: 3
|
| 15 |
+
string: h06a4308_3
|
| 16 |
+
requirements:
|
| 17 |
+
host:
|
| 18 |
+
- cuda-version 12.8 h30beaf8_3
|
| 19 |
+
run:
|
| 20 |
+
- cuda-version >=12.8,<12.9.0a0
|
| 21 |
+
test:
|
| 22 |
+
commands:
|
| 23 |
+
- test -f $PREFIX/targets/x86_64-linux/include/crt/common_functions.h
|
| 24 |
+
about:
|
| 25 |
+
description: 'CUDA internal headers.
|
| 26 |
+
|
| 27 |
+
'
|
| 28 |
+
doc_url: https://docs.nvidia.com/cuda/index.html
|
| 29 |
+
home: https://developer.nvidia.com/cuda-toolkit
|
| 30 |
+
license: LicenseRef-NVIDIA-End-User-License-Agreement
|
| 31 |
+
license_file: LICENSE
|
| 32 |
+
license_url: https://docs.nvidia.com/cuda/eula/index.html
|
| 33 |
+
summary: CUDA internal headers.
|
| 34 |
+
extra:
|
| 35 |
+
copy_test_source_files: true
|
| 36 |
+
feedstock-name: cuda-nvcc-impl
|
| 37 |
+
final: true
|
| 38 |
+
recipe-maintainers:
|
| 39 |
+
- conda-forge/cuda
|
data/miniconda3/pkgs/cuda-crt-dev_linux-64-12.8.93-h06a4308_3/info/recipe/parent/CMakeLists.txt
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
cmake_minimum_required(VERSION 3.20 FATAL_ERROR)
|
| 2 |
+
|
| 3 |
+
project(verify_cuda_compiler LANGUAGES CUDA)
|
| 4 |
+
|
| 5 |
+
if(NOT DEFINED CMAKE_CUDA_TOOLKIT_INCLUDE_DIRECTORIES)
|
| 6 |
+
message(FATAL_ERROR "CUDA compiler detection failed, no recording of CMAKE_CUDA_TOOLKIT_INCLUDE_DIRECTORIES")
|
| 7 |
+
endif()
|
| 8 |
+
|
| 9 |
+
find_package(CUDAToolkit REQUIRED)
|
| 10 |
+
set(should_exist
|
| 11 |
+
CUDAToolkit_BIN_DIR
|
| 12 |
+
CUDAToolkit_INCLUDE_DIRS
|
| 13 |
+
CUDAToolkit_LIBRARY_DIR
|
| 14 |
+
CUDAToolkit_LIBRARY_ROOT
|
| 15 |
+
)
|
| 16 |
+
foreach (cuda_loc_var IN LISTS should_exist)
|
| 17 |
+
foreach(entry IN LISTS ${cuda_loc_var})
|
| 18 |
+
if(NOT EXISTS "${entry}")
|
| 19 |
+
message(FATAL_ERROR "${entry} from ${cuda_loc_var} should exist on disk")
|
| 20 |
+
endif()
|
| 21 |
+
endforeach()
|
| 22 |
+
endforeach()
|
| 23 |
+
|
| 24 |
+
|
| 25 |
+
set(cuda_libs cudart cuda_driver)
|
| 26 |
+
foreach (cuda_lib IN LISTS cuda_libs)
|
| 27 |
+
if(NOT CUDA_${cuda_lib}_LIBRARY)
|
| 28 |
+
message(FATAL_ERROR "expected CUDAToolkit variable CUDA_${cuda_lib}_LIBRARY not found")
|
| 29 |
+
elseif(CUDA_${cuda_lib}_LIBRARY MATCHES [[\.\./]])
|
| 30 |
+
message(FATAL_ERROR "expected CUDAToolkit variable CUDA_${cuda_lib}_LIBRARY[\"${CUDA_${cuda_lib}_LIBRARY}\"] to not contain /..")
|
| 31 |
+
endif()
|
| 32 |
+
if(NOT TARGET CUDA::${cuda_lib})
|
| 33 |
+
message(FATAL_ERROR "expected CUDAToolkit target CUDA::${cuda_lib} not found")
|
| 34 |
+
endif()
|
| 35 |
+
endforeach()
|
| 36 |
+
|
| 37 |
+
add_executable(verify test.cu)
|
data/miniconda3/pkgs/cuda-crt-dev_linux-64-12.8.93-h06a4308_3/info/recipe/parent/bld.bat
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
if not exist %PREFIX% mkdir %PREFIX%
|
| 2 |
+
|
| 3 |
+
move lib\x64\* %LIBRARY_LIB%
|
| 4 |
+
move bin\* %LIBRARY_BIN%
|
| 5 |
+
move bin\crt %LIBRARY_BIN%
|
| 6 |
+
move include\* %LIBRARY_INC%
|
| 7 |
+
move include\crt %LIBRARY_INC%
|
| 8 |
+
move nvvm %PREFIX%\Library
|
data/miniconda3/pkgs/cuda-crt-dev_linux-64-12.8.93-h06a4308_3/info/recipe/parent/build.sh
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
|
| 3 |
+
# Install to conda style directories
|
| 4 |
+
[[ -d lib64 ]] && mv lib64 lib
|
| 5 |
+
|
| 6 |
+
[[ ${target_platform} == "linux-64" ]] && targetsDir="targets/x86_64-linux"
|
| 7 |
+
[[ ${target_platform} == "linux-ppc64le" ]] && targetsDir="targets/ppc64le-linux"
|
| 8 |
+
# https://docs.nvidia.com/cuda/cuda-compiler-driver-nvcc/index.html?highlight=tegra#cross-compilation
|
| 9 |
+
[[ ${target_platform} == "linux-aarch64" && ${arm_variant_type} == "sbsa" ]] && targetsDir="targets/sbsa-linux"
|
| 10 |
+
[[ ${target_platform} == "linux-aarch64" && ${arm_variant_type} == "tegra" ]] && targetsDir="targets/aarch64-linux"
|
| 11 |
+
|
| 12 |
+
if [ -z "${targetsDir+x}" ]; then
|
| 13 |
+
echo "target_platform: ${target_platform} is unknown! targetsDir must be defined!" >&2
|
| 14 |
+
exit 1
|
| 15 |
+
fi
|
| 16 |
+
|
| 17 |
+
mkdir -p ${PREFIX}/${targetsDir}
|
| 18 |
+
|
| 19 |
+
for i in `ls`; do
|
| 20 |
+
[[ $i == "LICENSE" ]] && continue
|
| 21 |
+
[[ $i == "build_env_setup.sh" ]] && continue
|
| 22 |
+
[[ $i == "conda_build.sh" ]] && continue
|
| 23 |
+
[[ $i == "metadata_conda_debug.yaml" ]] && continue
|
| 24 |
+
if [[ $i == "bin" ]] || [[ $i == "lib" ]] || [[ $i == "include" ]] || [[ $i == "nvvm" ]]; then
|
| 25 |
+
# Headers and libraries are installed to targetsDir
|
| 26 |
+
mkdir -p ${PREFIX}/$i
|
| 27 |
+
if [[ $i == "bin" ]]; then
|
| 28 |
+
for j in `ls "${i}"`; do
|
| 29 |
+
[[ -f "bin/${j}" ]] || continue
|
| 30 |
+
|
| 31 |
+
if grep -qx "${j}" ${RECIPE_DIR}/patchelf_exclude.txt; then
|
| 32 |
+
echo "Skipping bin/${j} as it is in the patchelf exclusion list."
|
| 33 |
+
continue
|
| 34 |
+
fi
|
| 35 |
+
|
| 36 |
+
echo patchelf --force-rpath --set-rpath "\$ORIGIN/../lib:\$ORIGIN/../${targetsDir}/lib" "${i}/${j}" ...
|
| 37 |
+
patchelf --force-rpath --set-rpath "\$ORIGIN/../lib:\$ORIGIN/../${targetsDir}/lib" "${i}/${j}"
|
| 38 |
+
done
|
| 39 |
+
|
| 40 |
+
mkdir -p ${PREFIX}/${targetsDir}/bin
|
| 41 |
+
cp -rv $i ${PREFIX}
|
| 42 |
+
ln -sv ${PREFIX}/bin/nvcc ${PREFIX}/${targetsDir}/bin/nvcc
|
| 43 |
+
elif [[ $i == "lib" ]]; then
|
| 44 |
+
cp -rv $i ${PREFIX}/${targetsDir}
|
| 45 |
+
for j in "$i"/*.a*; do
|
| 46 |
+
# Static libraries are symlinked in $PREFIX/lib
|
| 47 |
+
ln -sv ${PREFIX}/${targetsDir}/$j ${PREFIX}/$j
|
| 48 |
+
done
|
| 49 |
+
ln -sv ${PREFIX}/${targetsDir}/lib ${PREFIX}/${targetsDir}/lib64
|
| 50 |
+
elif [[ $i == "include" ]]; then
|
| 51 |
+
cp -rv $i ${PREFIX}/${targetsDir}
|
| 52 |
+
elif [[ $i == "nvvm" ]]; then
|
| 53 |
+
for j in `find "${i}"`; do
|
| 54 |
+
if [[ "${j}" =~ /bin/.*$ ]]; then
|
| 55 |
+
# Adds the following paths relative to `$PREFIX` to the `RPATH`: `nvvm/lib64`, `lib`, `${targetsDir}/lib`
|
| 56 |
+
echo patchelf --force-rpath --set-rpath "\$ORIGIN/../lib64:\$ORIGIN/../../lib:\$ORIGIN/../../${targetsDir}/lib" "${j}" ...
|
| 57 |
+
patchelf --force-rpath --set-rpath "\$ORIGIN/../lib64:\$ORIGIN/../../lib:\$ORIGIN/../../${targetsDir}/lib" "${j}"
|
| 58 |
+
elif [[ "${j}" =~ /lib.*/.*\.so($|\.) && ! -L "${j}" ]]; then
|
| 59 |
+
echo patchelf --force-rpath --set-rpath "\$ORIGIN" "${j}" ...
|
| 60 |
+
patchelf --force-rpath --set-rpath "\$ORIGIN" "${j}"
|
| 61 |
+
fi
|
| 62 |
+
done
|
| 63 |
+
|
| 64 |
+
cp -rv $i ${PREFIX}
|
| 65 |
+
ln -sv ${PREFIX}/nvvm ${PREFIX}/${targetsDir}/nvvm
|
| 66 |
+
fi
|
| 67 |
+
else
|
| 68 |
+
cp -rv $i ${PREFIX}/${targetsDir}
|
| 69 |
+
fi
|
| 70 |
+
done
|
| 71 |
+
|
| 72 |
+
# Copy the [de]activate scripts to $PREFIX/etc/conda/[de]activate.d.
|
| 73 |
+
# This will allow them to be run on environment activation.
|
| 74 |
+
# Name this script starting with `~` so it is run after all other compiler activation scripts.
|
| 75 |
+
# At the point of running this, $CXX must be defined.
|
| 76 |
+
# for CHANGE in "activate" "deactivate"
|
| 77 |
+
# do
|
| 78 |
+
# mkdir -p "${PREFIX}/etc/conda/${CHANGE}.d"
|
| 79 |
+
# cp "${RECIPE_DIR}/${CHANGE}.sh" "${PREFIX}/etc/conda/${CHANGE}.d/~cuda-nvcc_${CHANGE}.sh"
|
| 80 |
+
# done
|
| 81 |
+
|
| 82 |
+
check-glibc ${PREFIX}/{bin,lib}*/* ${PREFIX}/${targetsDir}/{bin,lib}*/* ${PREFIX}/nvvm/{bin,lib}*/*
|
data/miniconda3/pkgs/cuda-crt-dev_linux-64-12.8.93-h06a4308_3/info/recipe/parent/conda_build_config.yaml
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
arm_variant_type: # [linux and aarch64]
|
| 2 |
+
- sbsa # [linux and aarch64]
|
| 3 |
+
# arm-variant * tegra requires glibc version which is currently not available.
|
| 4 |
+
# binary glibc 2.29.0 <= recipe glibc 2.28 $PREFIX/bin/nvcc
|
| 5 |
+
# The binary is not compatible with the recipe's glibc pinning.
|
| 6 |
+
# See https://docs.nvidia.com/cuda/cuda-installation-guide-linux/#system-requirements
|
| 7 |
+
# Enable this once glibc is available on the main channel.
|
| 8 |
+
#- tegra # [linux and aarch64]
|
| 9 |
+
|
| 10 |
+
c_compiler: # [win]
|
| 11 |
+
- vs2019 # [win]
|
| 12 |
+
cxx_compiler: # [win]
|
| 13 |
+
- vs2019 # [win]
|
data/miniconda3/pkgs/cuda-crt-dev_linux-64-12.8.93-h06a4308_3/info/recipe/parent/meta.yaml
ADDED
|
@@ -0,0 +1,386 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{% set name = "cuda-nvcc-impl" %}
|
| 2 |
+
{% set version = "12.8.93" %}
|
| 3 |
+
{% set cuda_version = "12.8" %}
|
| 4 |
+
{% set cuda_version_next_major = (cuda_version.split(".")[0]|int + 1)|string + ".0a0" %}
|
| 5 |
+
{% set gcc_min_constraint = ">=6" %}
|
| 6 |
+
{% set gcc_constraint = ">=6,<15.0a0" %}
|
| 7 |
+
{% set platform = "linux-x86_64" %} # [linux64]
|
| 8 |
+
{% set platform = "linux-sbsa" %} # [aarch64 and arm_variant_type == "sbsa"]
|
| 9 |
+
#{% set platform = "linux-aarch64" %} # [aarch64 and arm_variant_type == "tegra"]
|
| 10 |
+
{% set platform = "windows-x86_64" %} # [win]
|
| 11 |
+
{% set target_name = "x86_64-linux" %} # [linux64]
|
| 12 |
+
{% set target_name = "sbsa-linux" %} # [aarch64 and arm_variant_type == "sbsa"]
|
| 13 |
+
#{% set target_name = "aarch64-linux" %} # [aarch64 and arm_variant_type == "tegra"]
|
| 14 |
+
{% set target_name = "x64" %} # [win]
|
| 15 |
+
{% set extension = "tar.xz" %} # [not win]
|
| 16 |
+
{% set extension = "zip" %} # [win]
|
| 17 |
+
{% set exists = "which" %} # [not win]
|
| 18 |
+
{% set exists = "where" %} # [win]
|
| 19 |
+
{% set sha256 = "9961b3484b6b71314063709a4f9529654f96782ad39e72bf1e00f070db8210d3" %} # [linux64]
|
| 20 |
+
{% set sha256 = "dc0b713ce69fd921aa53ac68610717d126fc273a3c554b0465cf44d7e379f467" %} # [aarch64 and arm_variant_type == "sbsa"]
|
| 21 |
+
{% set sha256 = "9fdc70b4271ed9aad4d64cd7076a7d96ec36512d074b9995fe638de669197391" %} # [win]
|
| 22 |
+
#{% set sha256 = "2eb267e6ebbe17e5ebc593bae8b83fa927c3e53cbf43ef5c614eff6c94053d10" %} # [aarch64 and arm_variant_type == "tegra"]
|
| 23 |
+
|
| 24 |
+
package:
|
| 25 |
+
name: cuda-nvcc-impl-split
|
| 26 |
+
version: {{ version }}
|
| 27 |
+
|
| 28 |
+
source:
|
| 29 |
+
url: https://developer.download.nvidia.com/compute/cuda/redist/cuda_nvcc/{{ platform }}/cuda_nvcc-{{ platform }}-{{ version }}-archive.{{ extension }}
|
| 30 |
+
sha256: {{ sha256 }}
|
| 31 |
+
patches:
|
| 32 |
+
- nvcc.profile.patch # [linux]
|
| 33 |
+
- nvcc.profile.patch.win # [win]
|
| 34 |
+
|
| 35 |
+
build:
|
| 36 |
+
number: 3
|
| 37 |
+
binary_relocation: false
|
| 38 |
+
skip: true # [osx]
|
| 39 |
+
|
| 40 |
+
requirements:
|
| 41 |
+
build:
|
| 42 |
+
- patchelf # [linux]
|
| 43 |
+
- cf-nvidia-tools 1.* # [linux]
|
| 44 |
+
|
| 45 |
+
outputs:
|
| 46 |
+
- name: cuda-nvcc-tools
|
| 47 |
+
files: # [linux]
|
| 48 |
+
- bin/* # [linux]
|
| 49 |
+
build:
|
| 50 |
+
binary_relocation: false
|
| 51 |
+
requirements:
|
| 52 |
+
build:
|
| 53 |
+
- {{ compiler("c") }}
|
| 54 |
+
- {{ compiler("cxx") }}
|
| 55 |
+
- {{ stdlib("c") }}
|
| 56 |
+
host:
|
| 57 |
+
- {{ pin_subpackage("cuda-crt-tools", exact=True) }}
|
| 58 |
+
- {{ pin_subpackage("cuda-nvvm-tools", exact=True) }}
|
| 59 |
+
- arm-variant * {{ arm_variant_type }} # [aarch64]
|
| 60 |
+
- cuda-version {{ cuda_version }}
|
| 61 |
+
run:
|
| 62 |
+
- {{ pin_compatible("cuda-version", max_pin="x.x") }}
|
| 63 |
+
- {{ pin_subpackage("cuda-crt-tools", exact=True) }}
|
| 64 |
+
- {{ pin_subpackage("cuda-nvvm-tools", exact=True) }}
|
| 65 |
+
- arm-variant * {{ arm_variant_type }} # [aarch64]
|
| 66 |
+
run_constrained:
|
| 67 |
+
- gcc_impl_{{ target_platform }} {{ gcc_constraint }} # [linux]
|
| 68 |
+
test:
|
| 69 |
+
requires:
|
| 70 |
+
- patchelf # [linux]
|
| 71 |
+
files:
|
| 72 |
+
- patchelf_exclude.txt # [linux]
|
| 73 |
+
- test-rpath-nvcc.sh # [linux]
|
| 74 |
+
commands:
|
| 75 |
+
- test -f $PREFIX/bin/nvcc # [linux]
|
| 76 |
+
- test -f $PREFIX/bin/ptxas # [linux]
|
| 77 |
+
- bash test-rpath-nvcc.sh # [linux]
|
| 78 |
+
about:
|
| 79 |
+
home: https://developer.nvidia.com/cuda-toolkit
|
| 80 |
+
license_file: LICENSE
|
| 81 |
+
license: LicenseRef-NVIDIA-End-User-License-Agreement
|
| 82 |
+
license_url: https://docs.nvidia.com/cuda/eula/index.html
|
| 83 |
+
summary: Architecture independent part of CUDA NVCC compiler.
|
| 84 |
+
description: |
|
| 85 |
+
Compiler for CUDA applications.
|
| 86 |
+
doc_url: https://docs.nvidia.com/cuda/index.html
|
| 87 |
+
|
| 88 |
+
- name: cuda-nvcc-dev_{{ target_platform }}
|
| 89 |
+
build:
|
| 90 |
+
noarch: generic
|
| 91 |
+
missing_dso_whitelist: # [win]
|
| 92 |
+
- "*/api-ms-win-core-winrt-*.dll" # [win]
|
| 93 |
+
run_exports:
|
| 94 |
+
strong:
|
| 95 |
+
- cuda-version >={{ cuda_version }},<{{ cuda_version_next_major }}
|
| 96 |
+
files:
|
| 97 |
+
# targets/{{ target_name }}/bin/nvcc is only a symlink
|
| 98 |
+
- targets/{{ target_name }}/bin # [linux]
|
| 99 |
+
- targets/{{ target_name }}/include/*.h # [linux]
|
| 100 |
+
- targets/{{ target_name }}/lib # [linux]
|
| 101 |
+
- Library\bin\*.exe # [win]
|
| 102 |
+
- Library\bin\nvcc.profile # [win]
|
| 103 |
+
- Library\include\fatbinary_section.h # [win]
|
| 104 |
+
- Library\include\nvPTXCompiler.h # [win]
|
| 105 |
+
- Library\lib\nvptxcompiler_static.lib # [win]
|
| 106 |
+
requirements:
|
| 107 |
+
build:
|
| 108 |
+
- {{ stdlib("c") }}
|
| 109 |
+
host:
|
| 110 |
+
- {{ pin_subpackage("cuda-crt-dev_" + target_platform, exact=True) }}
|
| 111 |
+
- {{ pin_subpackage("cuda-nvcc-tools", exact=True) }}
|
| 112 |
+
- {{ pin_subpackage("cuda-nvvm-dev_" + target_platform, exact=True) }}
|
| 113 |
+
- arm-variant * {{ arm_variant_type }} # [aarch64]
|
| 114 |
+
- cuda-version {{ cuda_version }}
|
| 115 |
+
# Use libgcc-ng instead of libgcc
|
| 116 |
+
- libgcc-ng {{ gcc_min_constraint }} # [linux]
|
| 117 |
+
run:
|
| 118 |
+
- {{ pin_compatible("cuda-version", max_pin="x.x") }}
|
| 119 |
+
- {{ pin_subpackage("cuda-crt-dev_" + target_platform, exact=True) }}
|
| 120 |
+
- {{ pin_subpackage("cuda-nvvm-dev_" + target_platform, exact=True) }}
|
| 121 |
+
- arm-variant * {{ arm_variant_type }} # [aarch64]
|
| 122 |
+
# Use libgcc-ng instead of libgcc
|
| 123 |
+
- libgcc-ng {{ gcc_min_constraint }} # [linux]
|
| 124 |
+
run_constrained:
|
| 125 |
+
- gcc_impl_{{ target_platform }} {{ gcc_constraint }} # [linux]
|
| 126 |
+
test:
|
| 127 |
+
commands:
|
| 128 |
+
- test -L $PREFIX/targets/{{ target_name }}/bin/nvcc # [linux]
|
| 129 |
+
- test -f $PREFIX/targets/{{ target_name }}/lib/libnvptxcompiler_static.a # [linux]
|
| 130 |
+
- test -f $PREFIX/targets/{{ target_name }}/include/fatbinary_section.h # [linux]
|
| 131 |
+
- test -f $PREFIX/targets/{{ target_name }}/include/nvPTXCompiler.h # [linux]
|
| 132 |
+
- if not exist %LIBRARY_BIN%\nvcc.exe exit 1 # [win]
|
| 133 |
+
- if not exist %LIBRARY_BIN%\nvcc.profile exit 1 # [win]
|
| 134 |
+
- if not exist %LIBRARY_LIB%\nvptxcompiler_static.lib exit 1 # [win]
|
| 135 |
+
- if not exist %LIBRARY_INC%\nvPTXCompiler.h exit 1 # [win]
|
| 136 |
+
about:
|
| 137 |
+
home: https://developer.nvidia.com/cuda-toolkit
|
| 138 |
+
license_file: LICENSE
|
| 139 |
+
license: LicenseRef-NVIDIA-End-User-License-Agreement
|
| 140 |
+
license_url: https://docs.nvidia.com/cuda/eula/index.html
|
| 141 |
+
summary: Target architecture dependent parts of CUDA NVCC compiler.
|
| 142 |
+
description: |
|
| 143 |
+
Compiler for CUDA applications.
|
| 144 |
+
doc_url: https://docs.nvidia.com/cuda/index.html
|
| 145 |
+
|
| 146 |
+
- name: cuda-nvcc-impl
|
| 147 |
+
build:
|
| 148 |
+
# libnvvm.so gets corrupted by patchelf. No need to relocate as it is already relocatable
|
| 149 |
+
binary_relocation: false
|
| 150 |
+
run_exports:
|
| 151 |
+
strong:
|
| 152 |
+
- cuda-version >={{ cuda_version }},<{{ cuda_version_next_major }}
|
| 153 |
+
files: # [linux]
|
| 154 |
+
- lib/libnvptxcompiler_static.a # [linux]
|
| 155 |
+
requirements:
|
| 156 |
+
host:
|
| 157 |
+
- {{ pin_subpackage("cuda-nvvm-impl", exact=True) }}
|
| 158 |
+
- arm-variant * {{ arm_variant_type }} # [aarch64]
|
| 159 |
+
- cuda-cudart-dev
|
| 160 |
+
- cuda-version {{ cuda_version }}
|
| 161 |
+
run:
|
| 162 |
+
- {{ pin_subpackage("cuda-nvcc-tools", exact=True) }}
|
| 163 |
+
- {{ pin_subpackage("cuda-nvcc-dev_" + target_platform, exact=True) }}
|
| 164 |
+
- {{ pin_subpackage("cuda-nvvm-impl", exact=True) }}
|
| 165 |
+
- {{ pin_compatible("cuda-version", max_pin="x.x") }}
|
| 166 |
+
- arm-variant * {{ arm_variant_type }} # [aarch64]
|
| 167 |
+
- cuda-cudart-dev
|
| 168 |
+
run_constrained:
|
| 169 |
+
- gcc_impl_{{ target_platform }} {{ gcc_constraint }} # [linux]
|
| 170 |
+
test:
|
| 171 |
+
requires:
|
| 172 |
+
- {{ compiler("c") }}
|
| 173 |
+
- {{ compiler("cxx") }}
|
| 174 |
+
- {{ stdlib("c") }}
|
| 175 |
+
- cmake
|
| 176 |
+
- cuda-driver-dev # [linux]
|
| 177 |
+
- git # [linux]
|
| 178 |
+
- ninja
|
| 179 |
+
files:
|
| 180 |
+
- test.cu
|
| 181 |
+
- CMakeLists.txt
|
| 182 |
+
- run_nvcc_tests.sh # [linux]
|
| 183 |
+
- run_nvcc_tests.bat # [win]
|
| 184 |
+
commands:
|
| 185 |
+
# these symlinks are provided by the gxx and gcc packages on conda-forge
|
| 186 |
+
- ln -sf ${PREFIX}/bin/x86_64-conda-linux-gnu-g++ ${PREFIX}/bin/g++ # [linux and x86_64]
|
| 187 |
+
- ln -sf ${PREFIX}/bin/x86_64-conda-linux-gnu-gcc ${PREFIX}/bin/gcc # [linux and x86_64]
|
| 188 |
+
- ln -sf ${PREFIX}/bin/aarch64-conda-linux-gnu-g++ ${PREFIX}/bin/g++ # [linux and aarch64]
|
| 189 |
+
- ln -sf ${PREFIX}/bin/aarch64-conda-linux-gnu-gcc ${PREFIX}/bin/gcc # [linux and aarch64]
|
| 190 |
+
# cmake has trouble finding ar on linux-aarch64; so this needs to be added
|
| 191 |
+
# compared to conda-forge. NB conda-forge isn't building this for linux-aarch64 currently.
|
| 192 |
+
- if [ ! -f "${PREFIX}/bin/ar" ]; then ln -s "${AR}" "${PREFIX}/bin/ar"; fi # [linux and aarch64]
|
| 193 |
+
- test -L $PREFIX/lib/libnvptxcompiler_static.a # [linux]
|
| 194 |
+
- {{ exists }} nvcc
|
| 195 |
+
- ./run_nvcc_tests.sh # [linux]
|
| 196 |
+
- .\run_nvcc_tests.bat # [win]
|
| 197 |
+
about:
|
| 198 |
+
home: https://developer.nvidia.com/cuda-toolkit
|
| 199 |
+
license_file: LICENSE
|
| 200 |
+
license: LicenseRef-NVIDIA-End-User-License-Agreement
|
| 201 |
+
license_url: https://docs.nvidia.com/cuda/eula/index.html
|
| 202 |
+
summary: Compiler for CUDA applications.
|
| 203 |
+
description: |
|
| 204 |
+
Compiler for CUDA applications.
|
| 205 |
+
doc_url: https://docs.nvidia.com/cuda/index.html
|
| 206 |
+
|
| 207 |
+
- name: cuda-crt-tools
|
| 208 |
+
files:
|
| 209 |
+
- bin/crt # [linux]
|
| 210 |
+
- Library\bin\crt # [win]
|
| 211 |
+
requirements:
|
| 212 |
+
host:
|
| 213 |
+
- cuda-version {{ cuda_version }}
|
| 214 |
+
run:
|
| 215 |
+
- {{ pin_compatible("cuda-version", max_pin="x.x") }}
|
| 216 |
+
- arm-variant * {{ arm_variant_type }} # [aarch64]
|
| 217 |
+
test:
|
| 218 |
+
commands:
|
| 219 |
+
- test -d $PREFIX/bin/crt # [linux]
|
| 220 |
+
- test -f $PREFIX/bin/crt/link.stub # [linux]
|
| 221 |
+
- if not exist %LIBRARY_BIN%\crt\link.stub exit 1 # [win]
|
| 222 |
+
about:
|
| 223 |
+
home: https://developer.nvidia.com/cuda-toolkit
|
| 224 |
+
license_file: LICENSE
|
| 225 |
+
license: LicenseRef-NVIDIA-End-User-License-Agreement
|
| 226 |
+
license_url: https://docs.nvidia.com/cuda/eula/index.html
|
| 227 |
+
summary: CUDA internal tools.
|
| 228 |
+
description: |
|
| 229 |
+
CUDA internal tools.
|
| 230 |
+
doc_url: https://docs.nvidia.com/cuda/index.html
|
| 231 |
+
|
| 232 |
+
- name: cuda-crt-dev_{{ target_platform }}
|
| 233 |
+
build:
|
| 234 |
+
noarch: generic
|
| 235 |
+
run_exports:
|
| 236 |
+
strong:
|
| 237 |
+
- cuda-version >={{ cuda_version }},<{{ cuda_version_next_major }}
|
| 238 |
+
files:
|
| 239 |
+
- targets/{{ target_name }}/include/crt # [linux]
|
| 240 |
+
- Library\include\crt # [win]
|
| 241 |
+
requirements:
|
| 242 |
+
host:
|
| 243 |
+
- cuda-version {{ cuda_version }}
|
| 244 |
+
run:
|
| 245 |
+
- {{ pin_compatible("cuda-version", max_pin="x.x") }}
|
| 246 |
+
- arm-variant * {{ arm_variant_type }} # [aarch64]
|
| 247 |
+
test:
|
| 248 |
+
commands:
|
| 249 |
+
- test -f $PREFIX/targets/{{ target_name }}/include/crt/common_functions.h # [linux]
|
| 250 |
+
- if not exist %LIBRARY_INC%\crt\common_functions.h exit 1 # [win]
|
| 251 |
+
about:
|
| 252 |
+
home: https://developer.nvidia.com/cuda-toolkit
|
| 253 |
+
license_file: LICENSE
|
| 254 |
+
license: LicenseRef-NVIDIA-End-User-License-Agreement
|
| 255 |
+
license_url: https://docs.nvidia.com/cuda/eula/index.html
|
| 256 |
+
summary: CUDA internal headers.
|
| 257 |
+
description: |
|
| 258 |
+
CUDA internal headers.
|
| 259 |
+
doc_url: https://docs.nvidia.com/cuda/index.html
|
| 260 |
+
|
| 261 |
+
- name: cuda-nvvm-tools
|
| 262 |
+
files:
|
| 263 |
+
- nvvm/bin # [linux]
|
| 264 |
+
- nvvm/libdevice # [linux]
|
| 265 |
+
- Library\nvvm\bin # [win]
|
| 266 |
+
- Library\nvvm\libdevice # [win]
|
| 267 |
+
requirements:
|
| 268 |
+
build:
|
| 269 |
+
- {{ compiler("c") }}
|
| 270 |
+
- {{ compiler("cxx") }}
|
| 271 |
+
- {{ stdlib("c") }}
|
| 272 |
+
host:
|
| 273 |
+
- cuda-version {{ cuda_version }}
|
| 274 |
+
run:
|
| 275 |
+
- {{ pin_compatible("cuda-version", max_pin="x.x") }}
|
| 276 |
+
- arm-variant * {{ arm_variant_type }} # [aarch64]
|
| 277 |
+
test:
|
| 278 |
+
requires:
|
| 279 |
+
- patchelf # [linux]
|
| 280 |
+
files:
|
| 281 |
+
- test-rpath-nvvm.sh # [linux]
|
| 282 |
+
commands:
|
| 283 |
+
- test -d $PREFIX/nvvm # [linux]
|
| 284 |
+
- test -f $PREFIX/nvvm/bin/cicc # [linux]
|
| 285 |
+
- bash test-rpath-nvvm.sh # [linux]
|
| 286 |
+
- if not exist %LIBRARY_PREFIX%\nvvm\bin\cicc.exe exit 1 # [win]
|
| 287 |
+
- if not exist %LIBRARY_PREFIX%\nvvm\libdevice exit 1 # [win]
|
| 288 |
+
about:
|
| 289 |
+
home: https://developer.nvidia.com/cuda-toolkit
|
| 290 |
+
license_file: LICENSE
|
| 291 |
+
license: LicenseRef-NVIDIA-End-User-License-Agreement
|
| 292 |
+
license_url: https://docs.nvidia.com/cuda/eula/index.html
|
| 293 |
+
summary: Compiler for CUDA applications.
|
| 294 |
+
description: |
|
| 295 |
+
Compiler for CUDA applications.
|
| 296 |
+
doc_url: https://docs.nvidia.com/cuda/index.html
|
| 297 |
+
|
| 298 |
+
- name: cuda-nvvm-dev_{{ target_platform }}
|
| 299 |
+
build:
|
| 300 |
+
noarch: generic
|
| 301 |
+
files: # [linux]
|
| 302 |
+
- targets/{{ target_name }}/nvvm # [linux]
|
| 303 |
+
requirements:
|
| 304 |
+
host:
|
| 305 |
+
- cuda-version {{ cuda_version }}
|
| 306 |
+
run:
|
| 307 |
+
- {{ pin_compatible("cuda-version", max_pin="x.x") }}
|
| 308 |
+
- arm-variant * {{ arm_variant_type }} # [aarch64]
|
| 309 |
+
test:
|
| 310 |
+
commands:
|
| 311 |
+
- test -L $PREFIX/targets/{{ target_name }}/nvvm # [linux]
|
| 312 |
+
about:
|
| 313 |
+
home: https://developer.nvidia.com/cuda-toolkit
|
| 314 |
+
license_file: LICENSE
|
| 315 |
+
license: LicenseRef-NVIDIA-End-User-License-Agreement
|
| 316 |
+
license_url: https://docs.nvidia.com/cuda/eula/index.html
|
| 317 |
+
summary: Compiler for CUDA applications.
|
| 318 |
+
description: |
|
| 319 |
+
Compiler for CUDA applications.
|
| 320 |
+
doc_url: https://docs.nvidia.com/cuda/index.html
|
| 321 |
+
|
| 322 |
+
- name: cuda-nvvm-impl
|
| 323 |
+
build:
|
| 324 |
+
# libnvvm.so gets corrupted by patchelf. No need to relocate as it is already relocatable.
|
| 325 |
+
binary_relocation: false
|
| 326 |
+
# This is a workaround to ignore the overlinking error for problematic *.so files.
|
| 327 |
+
# The reason is that in the Amazon Linux 2-based Docker container, there's py-lief version 0.12.3.
|
| 328 |
+
# In the Rocky 8 container, there's 0.16.4, which seems to have this bug.
|
| 329 |
+
# See also:
|
| 330 |
+
# https://github.com/anaconda/docker-images/blob/main/anaconda-pkg-build/linux/rocky8/Dockerfile
|
| 331 |
+
# https://github.com/conda/conda-build/issues/5665
|
| 332 |
+
# https://github.com/conda-forge/conda-build-feedstock/pull/251
|
| 333 |
+
# https://github.com/conda-forge/lief-feedstock/pull/57#issuecomment-2770881269
|
| 334 |
+
# This workaround should be removed when the conda-build fix is merged/py-lief pinned and the rocky 8 docker image rebuilt.
|
| 335 |
+
overlinking_ignore_patterns: # [linux and aarch64]
|
| 336 |
+
- "nvvm/lib64/libnvvm.so*" # [linux and aarch64]
|
| 337 |
+
files:
|
| 338 |
+
- nvvm/include # [linux]
|
| 339 |
+
- nvvm/lib64 # [linux]
|
| 340 |
+
- Library\nvvm\include # [win]
|
| 341 |
+
- Library\nvvm\lib # [win]
|
| 342 |
+
requirements:
|
| 343 |
+
build:
|
| 344 |
+
- {{ compiler("c") }}
|
| 345 |
+
- {{ compiler("cxx") }}
|
| 346 |
+
- {{ stdlib("c") }}
|
| 347 |
+
host:
|
| 348 |
+
- cuda-version {{ cuda_version }}
|
| 349 |
+
run:
|
| 350 |
+
- {{ pin_compatible("cuda-version", max_pin="x.x") }}
|
| 351 |
+
- arm-variant * {{ arm_variant_type }} # [aarch64]
|
| 352 |
+
test:
|
| 353 |
+
requires:
|
| 354 |
+
- patchelf # [linux]
|
| 355 |
+
files:
|
| 356 |
+
- test-rpath-nvvm.sh # [linux]
|
| 357 |
+
commands:
|
| 358 |
+
- test -d $PREFIX/nvvm/include # [linux]
|
| 359 |
+
- test -d $PREFIX/nvvm/lib64 # [linux]
|
| 360 |
+
- bash test-rpath-nvvm.sh # [linux]
|
| 361 |
+
- if not exist %LIBRARY_PREFIX%\nvvm\include exit 1 # [win]
|
| 362 |
+
- if not exist %LIBRARY_PREFIX%\nvvm\lib exit 1 # [win]
|
| 363 |
+
about:
|
| 364 |
+
home: https://developer.nvidia.com/cuda-toolkit
|
| 365 |
+
license_file: LICENSE
|
| 366 |
+
license: LicenseRef-NVIDIA-End-User-License-Agreement
|
| 367 |
+
license_url: https://docs.nvidia.com/cuda/eula/index.html
|
| 368 |
+
summary: Compiler for CUDA applications.
|
| 369 |
+
description: |
|
| 370 |
+
Compiler for CUDA applications.
|
| 371 |
+
doc_url: https://docs.nvidia.com/cuda/index.html
|
| 372 |
+
|
| 373 |
+
about:
|
| 374 |
+
home: https://developer.nvidia.com/cuda-toolkit
|
| 375 |
+
license_file: LICENSE
|
| 376 |
+
license: LicenseRef-NVIDIA-End-User-License-Agreement
|
| 377 |
+
license_url: https://docs.nvidia.com/cuda/eula/index.html
|
| 378 |
+
summary: Compiler for CUDA applications.
|
| 379 |
+
description: |
|
| 380 |
+
Compiler for CUDA applications.
|
| 381 |
+
doc_url: https://docs.nvidia.com/cuda/index.html
|
| 382 |
+
|
| 383 |
+
extra:
|
| 384 |
+
feedstock-name: cuda-nvcc-impl
|
| 385 |
+
recipe-maintainers:
|
| 386 |
+
- conda-forge/cuda
|
data/miniconda3/pkgs/cuda-crt-dev_linux-64-12.8.93-h06a4308_3/info/recipe/parent/nvcc.profile.patch
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
--- bin/nvcc.profile.bak 2024-03-12 15:52:23.511145665 +0000
|
| 2 |
+
+++ bin/nvcc.profile 2024-03-12 16:27:28.806624738 +0000
|
| 3 |
+
@@ -1,15 +1,15 @@
|
| 4 |
+
|
| 5 |
+
-TOP = $(_HERE_)/..
|
| 6 |
+
+TOP = $(_HERE_)/../$(_TARGET_DIR_)
|
| 7 |
+
|
| 8 |
+
CICC_PATH = $(TOP)/nvvm/bin
|
| 9 |
+
NVVMIR_LIBRARY_DIR = $(TOP)/nvvm/libdevice
|
| 10 |
+
|
| 11 |
+
LD_LIBRARY_PATH += $(TOP)/lib:
|
| 12 |
+
-PATH += $(CICC_PATH):$(_HERE_):
|
| 13 |
+
+PATH += $(TOP)/bin:$(CICC_PATH):$(TOP)/../../bin:$(TOP)/../../$(_NVVM_BRANCH_)/bin:
|
| 14 |
+
|
| 15 |
+
-INCLUDES += "-I$(TOP)/$(_TARGET_DIR_)/include" $(_SPACE_)
|
| 16 |
+
+INCLUDES += "-I$(TOP)/include" $(_SPACE_)
|
| 17 |
+
|
| 18 |
+
-LIBRARIES =+ $(_SPACE_) "-L$(TOP)/$(_TARGET_DIR_)/lib$(_TARGET_SIZE_)/stubs" "-L$(TOP)/$(_TARGET_DIR_)/lib$(_TARGET_SIZE_)"
|
| 19 |
+
+LIBRARIES =+ $(_SPACE_) "-L$(TOP)/lib/stubs" "-L$(TOP)/lib"
|
| 20 |
+
|
| 21 |
+
CUDAFE_FLAGS +=
|
| 22 |
+
PTXAS_FLAGS +=
|
| 23 |
+
|
data/miniconda3/pkgs/cuda-crt-dev_linux-64-12.8.93-h06a4308_3/info/recipe/parent/nvcc.profile.patch.win
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
--- bin/nvcc.profile 2023-03-23 15:56:49.535384866 -0400
|
| 2 |
+
+++ bin/nvcc.profile.new 2023-03-23 19:21:08.071151138 -0400
|
| 3 |
+
@@ -5,9 +5,9 @@
|
| 4 |
+
|
| 5 |
+
PATH += $(TOP)/$(_NVVM_BRANCH_)/bin;$(_HERE_);$(TOP)/lib;
|
| 6 |
+
|
| 7 |
+
-INCLUDES += "-I$(TOP)/include" $(_SPACE_)
|
| 8 |
+
+INCLUDES += "-I$(TOP)/include" $(_SPACE_) "-I$(TOP)/include/targets/$(_WIN_PLATFORM_)" $(_SPACE_)
|
| 9 |
+
|
| 10 |
+
-LIBRARIES =+ $(_SPACE_) "/LIBPATH:$(TOP)/lib/$(_WIN_PLATFORM_)"
|
| 11 |
+
+LIBRARIES =+ $(_SPACE_) "/LIBPATH:$(TOP)/lib/$(_WIN_PLATFORM_)" $(_SPACE_) "/LIBPATH:$(TOP)/lib"
|
| 12 |
+
|
| 13 |
+
CUDAFE_FLAGS +=
|
| 14 |
+
PTXAS_FLAGS +=
|
data/miniconda3/pkgs/cuda-crt-dev_linux-64-12.8.93-h06a4308_3/info/recipe/parent/patchelf_exclude.txt
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
link.stub
|
| 2 |
+
prelink.stub
|
| 3 |
+
nvcc.profile
|
| 4 |
+
patchelf
|
data/miniconda3/pkgs/cuda-crt-dev_linux-64-12.8.93-h06a4308_3/info/recipe/parent/run_nvcc_tests.bat
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
@echo on
|
| 2 |
+
|
| 3 |
+
nvcc --version
|
| 4 |
+
if errorlevel 1 exit 1
|
| 5 |
+
|
| 6 |
+
nvcc --verbose test.cu
|
| 7 |
+
if errorlevel 1 exit 1
|
| 8 |
+
|
| 9 |
+
cmake -S . -B ./build -G=Ninja && cmake --build ./build -v
|
| 10 |
+
if errorlevel 1 exit 1
|
| 11 |
+
|
| 12 |
+
REM Get CMake version for cloning the right branch
|
| 13 |
+
for /f "tokens=3" %%i in ('cmake --version ^| findstr version') do set CMAKE_VERSION=%%i
|
| 14 |
+
|
| 15 |
+
REM Clone and build CMake's test suite
|
| 16 |
+
md cmake-tests
|
| 17 |
+
git clone -b v%CMAKE_VERSION% --depth 1 https://gitlab.kitware.com/cmake/cmake.git cmake-tests
|
| 18 |
+
if errorlevel 1 exit 1
|
| 19 |
+
|
| 20 |
+
cmake -S cmake-tests -B cmake-tests/build -DCMake_TEST_HOST_CMAKE=ON -DCMake_TEST_CUDA=nvcc -G "Ninja"
|
| 21 |
+
if errorlevel 1 exit 1
|
| 22 |
+
|
| 23 |
+
REM Change to the CMake test build directory and run CUDA tests
|
| 24 |
+
cd cmake-tests\build
|
| 25 |
+
|
| 26 |
+
REM Test exclusion list:
|
| 27 |
+
REM Requires CUDA libraries not available in build environment
|
| 28 |
+
REM ProperDeviceLibraries (needs cublas)
|
| 29 |
+
REM *SharedRuntime* (needs curand)
|
| 30 |
+
REM
|
| 31 |
+
REM Requires execution on a machine with a CUDA GPU
|
| 32 |
+
REM ObjectLibrary, WithC, StubRPATH, ArchSpecial, GPUDebugFlag
|
| 33 |
+
REM SeparateCompilationPTX, WithDefs, CUBIN, Fatbin, OptixIR
|
| 34 |
+
REM CUDA_architectures, *Toolkit*
|
| 35 |
+
REM
|
| 36 |
+
REM Failing due to glibc symbol issues
|
| 37 |
+
REM Cuda.Complex
|
| 38 |
+
REM
|
| 39 |
+
REM Windows-specific issues (path length, resource compiler, command parsing)
|
| 40 |
+
REM CompileFeatures - Windows environment compatibility issues
|
| 41 |
+
REM NinjaMultiConfig - Windows resource compiler and manifest file issues
|
| 42 |
+
REM UnityBuild - Windows path length limitations (250 character limit)
|
| 43 |
+
REM RuntimeControls - Windows command parsing issues with complex paths
|
| 44 |
+
ctest -L CUDA --output-on-failure -E "(Architecture|CompileFlags|DeviceLTO|ProperDeviceLibraries|SharedRuntime|ObjectLibrary|WithC|StubRPATH|ArchSpecial|GPUDebugFlag|SeparateCompilationPTX|WithDefs|CUBIN|Fatbin|OptixIR|CUDA_architectures|Toolkit|Cuda.Complex|CompileFeatures|NinjaMultiConfig|UnityBuild|RuntimeControls)"
|
| 45 |
+
if errorlevel 1 exit 1
|
data/miniconda3/pkgs/cuda-crt-dev_linux-64-12.8.93-h06a4308_3/info/recipe/parent/run_nvcc_tests.sh
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
set -e
|
| 3 |
+
set -x
|
| 4 |
+
|
| 5 |
+
kernel_name="$(uname -s)"
|
| 6 |
+
if [[ "${kernel_name}" != "Linux" ]]
|
| 7 |
+
then
|
| 8 |
+
echo "Unknown OS. Expected Linux, but found ${kernel_name}"
|
| 9 |
+
exit 1
|
| 10 |
+
fi
|
| 11 |
+
|
| 12 |
+
processor_name="$(uname -m)"
|
| 13 |
+
case "${processor_name}" in
|
| 14 |
+
"x86_64") test_platform="linux-64" ;;
|
| 15 |
+
"aarch64") test_platform="linux-aarch64" ;;
|
| 16 |
+
"ppc64le") test_platform="linux-ppc64le" ;;
|
| 17 |
+
*) echo "Unknown architecture: ${processor_name}" && exit 1 ;;
|
| 18 |
+
esac
|
| 19 |
+
|
| 20 |
+
if [[ "${test_platform}" != "${target_platform}" ]]
|
| 21 |
+
then
|
| 22 |
+
echo "Skipping NVCC testing as current platform is ${test_platform}, whereas; NVCC is built for ${target_platform}."
|
| 23 |
+
exit 0
|
| 24 |
+
fi
|
| 25 |
+
|
| 26 |
+
cmake_version=$(cmake --version | grep version | awk '{print $3}')
|
| 27 |
+
|
| 28 |
+
nvcc --version
|
| 29 |
+
|
| 30 |
+
nvcc --verbose test.cu
|
| 31 |
+
|
| 32 |
+
cmake -S . -B ./build -G=Ninja && cmake --build ./build -v
|
| 33 |
+
|
| 34 |
+
if [[ "${target_platform}" == "linux-ppc64le" ]]
|
| 35 |
+
then
|
| 36 |
+
echo "Skipping CMake tests on ${target_platform} due to known issues."
|
| 37 |
+
exit 0
|
| 38 |
+
fi
|
| 39 |
+
|
| 40 |
+
mkdir -p cmake-tests
|
| 41 |
+
git clone -b v${cmake_version} --depth 1 https://gitlab.kitware.com/cmake/cmake.git cmake-tests
|
| 42 |
+
cmake -S cmake-tests -B cmake-tests/build -DCMake_TEST_HOST_CMAKE=ON -DCMake_TEST_CUDA=nvcc -G "Ninja"
|
| 43 |
+
cd cmake-tests/build
|
| 44 |
+
|
| 45 |
+
# Test exclusion list:
|
| 46 |
+
# Requires cublas
|
| 47 |
+
# Cuda.ProperDeviceLibraries
|
| 48 |
+
#
|
| 49 |
+
# Requires curand
|
| 50 |
+
# *SharedRuntime*
|
| 51 |
+
#
|
| 52 |
+
# Requires execution on a machine with a CUDA GPU
|
| 53 |
+
# Cuda.ObjectLibrary
|
| 54 |
+
# Cuda.WithC
|
| 55 |
+
# Cuda.StubRPATH
|
| 56 |
+
# CudaOnly.ArchSpecial
|
| 57 |
+
# CudaOnly.GPUDebugFlag
|
| 58 |
+
# CudaOnly.SeparateCompilationPTX
|
| 59 |
+
# CudaOnly.WithDefs
|
| 60 |
+
# CudaOnly.CUBIN
|
| 61 |
+
# CudaOnly.Fatbin
|
| 62 |
+
# CudaOnly.OptixIR
|
| 63 |
+
# RunCMake.CUDA_architectures
|
| 64 |
+
# *Toolkit*
|
| 65 |
+
# Failing due to undefined symbol: __libc_dl_error_tsd, version GLIBC_PRIVATE
|
| 66 |
+
# Cuda.Complex
|
| 67 |
+
CUDAHOSTCXX=$CXX ctest -L CUDA --output-on-failure -j $(nproc) -E "(ProperDeviceLibraries|SharedRuntime|ObjectLibrary|WithC|StubRPATH|ArchSpecial|GPUDebugFlag|SeparateCompilationPTX|WithDefs|CUBIN|Fatbin|OptixIR|CUDA_architectures|Toolkit|Cuda.Complex)"
|
data/miniconda3/pkgs/cuda-crt-dev_linux-64-12.8.93-h06a4308_3/info/recipe/parent/test-rpath-nvcc.sh
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
|
| 3 |
+
[[ ${target_platform} == "linux-64" ]] && targetsDir="targets/x86_64-linux"
|
| 4 |
+
[[ ${target_platform} == "linux-ppc64le" ]] && targetsDir="targets/ppc64le-linux"
|
| 5 |
+
# https://docs.nvidia.com/cuda/cuda-compiler-driver-nvcc/index.html?highlight=tegra#cross-compilation
|
| 6 |
+
[[ ${target_platform} == "linux-aarch64" && ${arm_variant_type} == "sbsa" ]] && targetsDir="targets/sbsa-linux"
|
| 7 |
+
[[ ${target_platform} == "linux-aarch64" && ${arm_variant_type} == "tegra" ]] && targetsDir="targets/aarch64-linux"
|
| 8 |
+
|
| 9 |
+
if [ -z "${targetsDir+x}" ]; then
|
| 10 |
+
echo "target_platform: ${target_platform} is unknown! targetsDir must be defined!" >&2
|
| 11 |
+
exit 1
|
| 12 |
+
fi
|
| 13 |
+
|
| 14 |
+
errors=""
|
| 15 |
+
|
| 16 |
+
for item in `find ${PREFIX}/bin -type f`; do
|
| 17 |
+
filename=$(basename "${item}")
|
| 18 |
+
echo "Artifact to test: ${filename}"
|
| 19 |
+
|
| 20 |
+
if grep -qx "${filename}" patchelf_exclude.txt; then
|
| 21 |
+
echo Skipping ${filename} as it is not subject to testing
|
| 22 |
+
continue
|
| 23 |
+
fi
|
| 24 |
+
|
| 25 |
+
pkg_info=$(conda package -w "${item}")
|
| 26 |
+
echo "\$PKG_NAME: ${PKG_NAME}"
|
| 27 |
+
echo "\$pkg_info: ${pkg_info}"
|
| 28 |
+
|
| 29 |
+
if [[ ! "$pkg_info" == *"$PKG_NAME"* ]]; then
|
| 30 |
+
echo "Not a match, skipping ${item}"
|
| 31 |
+
continue
|
| 32 |
+
fi
|
| 33 |
+
|
| 34 |
+
echo "Match found, testing ${item}"
|
| 35 |
+
|
| 36 |
+
rpath=$(patchelf --print-rpath "${item}")
|
| 37 |
+
echo "${item} rpath: ${rpath}"
|
| 38 |
+
|
| 39 |
+
if [[ ${item} =~ /bin/ && $rpath != "\$ORIGIN/../lib:\$ORIGIN/../${targetsDir}/lib" ]]; then
|
| 40 |
+
errors+="${item}\n"
|
| 41 |
+
elif [[ $(objdump -x ${item} | grep "PATH") == *"RUNPATH"* ]]; then
|
| 42 |
+
errors+="${item}\n"
|
| 43 |
+
fi
|
| 44 |
+
done
|
| 45 |
+
|
| 46 |
+
if [[ $errors ]]; then
|
| 47 |
+
echo "The following items were found with an unexpected RPATH:"
|
| 48 |
+
echo -e "${errors}"
|
| 49 |
+
exit 1
|
| 50 |
+
fi
|
data/miniconda3/pkgs/cuda-crt-dev_linux-64-12.8.93-h06a4308_3/info/recipe/parent/test-rpath-nvvm.sh
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
|
| 3 |
+
[[ ${target_platform} == "linux-64" ]] && targetsDir="targets/x86_64-linux"
|
| 4 |
+
[[ ${target_platform} == "linux-ppc64le" ]] && targetsDir="targets/ppc64le-linux"
|
| 5 |
+
# https://docs.nvidia.com/cuda/cuda-compiler-driver-nvcc/index.html?highlight=tegra#cross-compilation
|
| 6 |
+
[[ ${target_platform} == "linux-aarch64" && ${arm_variant_type} == "sbsa" ]] && targetsDir="targets/sbsa-linux"
|
| 7 |
+
[[ ${target_platform} == "linux-aarch64" && ${arm_variant_type} == "tegra" ]] && targetsDir="targets/aarch64-linux"
|
| 8 |
+
|
| 9 |
+
if [ -z "${targetsDir+x}" ]; then
|
| 10 |
+
echo "target_platform: ${target_platform} is unknown! targetsDir must be defined!" >&2
|
| 11 |
+
exit 1
|
| 12 |
+
fi
|
| 13 |
+
|
| 14 |
+
errors=""
|
| 15 |
+
|
| 16 |
+
dirs=()
|
| 17 |
+
[[ -d ${PREFIX}/nvvm/bin ]] && dirs+=(${PREFIX}/nvvm/bin)
|
| 18 |
+
[[ -d ${PREFIX}/nvvm/lib64 ]] && dirs+=(${PREFIX}/nvvm/lib64)
|
| 19 |
+
|
| 20 |
+
if [[ ${#dirs[@]} == 0 ]]; then
|
| 21 |
+
echo "There is nothing to test. Returning."
|
| 22 |
+
exit
|
| 23 |
+
fi
|
| 24 |
+
|
| 25 |
+
for item in `find ${dirs[@]} -type f`; do
|
| 26 |
+
[[ -L $item ]] && continue
|
| 27 |
+
|
| 28 |
+
echo "Artifact to test: ${item}"
|
| 29 |
+
filename=$(basename "${item}")
|
| 30 |
+
|
| 31 |
+
pkg_info=$(conda package -w "${item}")
|
| 32 |
+
echo "\$PKG_NAME: ${PKG_NAME}"
|
| 33 |
+
echo "\$pkg_info: ${pkg_info}"
|
| 34 |
+
|
| 35 |
+
if [[ ! "$pkg_info" == *"$PKG_NAME"* ]]; then
|
| 36 |
+
echo "Not a match, skipping ${item}"
|
| 37 |
+
continue
|
| 38 |
+
fi
|
| 39 |
+
|
| 40 |
+
echo "Match found, testing ${item}"
|
| 41 |
+
|
| 42 |
+
rpath=$(patchelf --print-rpath "${item}")
|
| 43 |
+
echo "${item} rpath: ${rpath}"
|
| 44 |
+
|
| 45 |
+
if [[ ${item} =~ /nvvm/bin/ && $rpath != "\$ORIGIN/../lib64:\$ORIGIN/../../lib:\$ORIGIN/../../${targetsDir}/lib" ]]; then
|
| 46 |
+
errors+="${item}\n"
|
| 47 |
+
elif [[ ${item} =~ nvvm/lib64/ && $rpath != "\$ORIGIN" ]]; then
|
| 48 |
+
errors+="${item}\n"
|
| 49 |
+
elif [[ $(objdump -x ${item} | grep "PATH") == *"RUNPATH"* ]]; then
|
| 50 |
+
errors+="${item}\n"
|
| 51 |
+
fi
|
| 52 |
+
done
|
| 53 |
+
|
| 54 |
+
if [[ $errors ]]; then
|
| 55 |
+
echo "The following items were found with an unexpected RPATH:"
|
| 56 |
+
echo -e "${errors}"
|
| 57 |
+
exit 1
|
| 58 |
+
fi
|
data/miniconda3/pkgs/cuda-crt-dev_linux-64-12.8.93-h06a4308_3/info/recipe/parent/test.cu
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
int main() {
|
| 2 |
+
return 0;
|
| 3 |
+
}
|
data/miniconda3/pkgs/cuda-crt-dev_linux-64-12.8.93-h06a4308_3/info/repodata_record.json
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "cuda-crt-dev_linux-64",
|
| 3 |
+
"version": "12.8.93",
|
| 4 |
+
"build": "h06a4308_3",
|
| 5 |
+
"build_number": 3,
|
| 6 |
+
"channel": "https://repo.anaconda.com/pkgs/main/noarch",
|
| 7 |
+
"subdir": "noarch",
|
| 8 |
+
"fn": "cuda-crt-dev_linux-64-12.8.93-h06a4308_3.conda",
|
| 9 |
+
"md5": "6c7339b995d6050894acf9f68b5ae2fb",
|
| 10 |
+
"url": "https://repo.anaconda.com/pkgs/main/noarch/cuda-crt-dev_linux-64-12.8.93-h06a4308_3.conda",
|
| 11 |
+
"sha256": "9fe58ce5dc6acb9d3b76fba71eabe6dc15296d681733c6568ed71985b4496906",
|
| 12 |
+
"depends": [
|
| 13 |
+
"cuda-version >=12.8,<12.9.0a0"
|
| 14 |
+
],
|
| 15 |
+
"constrains": [],
|
| 16 |
+
"noarch": "generic",
|
| 17 |
+
"license": "LicenseRef-NVIDIA-End-User-License-Agreement",
|
| 18 |
+
"package_type": "noarch_generic",
|
| 19 |
+
"timestamp": 1758920527000,
|
| 20 |
+
"size": 92655
|
| 21 |
+
}
|
data/miniconda3/pkgs/cuda-crt-dev_linux-64-12.8.93-h06a4308_3/info/test/run_test.bat
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
|
| 3 |
+
|
| 4 |
+
|
| 5 |
+
test -f $PREFIX/targets/x86_64-linux/include/crt/common_functions.h
|
| 6 |
+
IF %ERRORLEVEL% NEQ 0 exit /B 1
|
| 7 |
+
exit /B 0
|
data/miniconda3/pkgs/cuda-crt-dev_linux-64-12.8.93-h06a4308_3/info/test/run_test.sh
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
|
| 3 |
+
set -ex
|
| 4 |
+
|
| 5 |
+
|
| 6 |
+
|
| 7 |
+
test -f $PREFIX/targets/x86_64-linux/include/crt/common_functions.h
|
| 8 |
+
exit 0
|
data/miniconda3/pkgs/cuda-crt-dev_linux-64-12.8.93-h06a4308_3/targets/x86_64-linux/include/crt/common_functions.h
ADDED
|
@@ -0,0 +1,310 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
* Copyright 1993-2021 NVIDIA Corporation. All rights reserved.
|
| 3 |
+
*
|
| 4 |
+
* NOTICE TO LICENSEE:
|
| 5 |
+
*
|
| 6 |
+
* This source code and/or documentation ("Licensed Deliverables") are
|
| 7 |
+
* subject to NVIDIA intellectual property rights under U.S. and
|
| 8 |
+
* international Copyright laws.
|
| 9 |
+
*
|
| 10 |
+
* These Licensed Deliverables contained herein is PROPRIETARY and
|
| 11 |
+
* CONFIDENTIAL to NVIDIA and is being provided under the terms and
|
| 12 |
+
* conditions of a form of NVIDIA software license agreement by and
|
| 13 |
+
* between NVIDIA and Licensee ("License Agreement") or electronically
|
| 14 |
+
* accepted by Licensee. Notwithstanding any terms or conditions to
|
| 15 |
+
* the contrary in the License Agreement, reproduction or disclosure
|
| 16 |
+
* of the Licensed Deliverables to any third party without the express
|
| 17 |
+
* written consent of NVIDIA is prohibited.
|
| 18 |
+
*
|
| 19 |
+
* NOTWITHSTANDING ANY TERMS OR CONDITIONS TO THE CONTRARY IN THE
|
| 20 |
+
* LICENSE AGREEMENT, NVIDIA MAKES NO REPRESENTATION ABOUT THE
|
| 21 |
+
* SUITABILITY OF THESE LICENSED DELIVERABLES FOR ANY PURPOSE. IT IS
|
| 22 |
+
* PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY OF ANY KIND.
|
| 23 |
+
* NVIDIA DISCLAIMS ALL WARRANTIES WITH REGARD TO THESE LICENSED
|
| 24 |
+
* DELIVERABLES, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY,
|
| 25 |
+
* NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE.
|
| 26 |
+
* NOTWITHSTANDING ANY TERMS OR CONDITIONS TO THE CONTRARY IN THE
|
| 27 |
+
* LICENSE AGREEMENT, IN NO EVENT SHALL NVIDIA BE LIABLE FOR ANY
|
| 28 |
+
* SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, OR ANY
|
| 29 |
+
* DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
|
| 30 |
+
* WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
|
| 31 |
+
* ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
|
| 32 |
+
* OF THESE LICENSED DELIVERABLES.
|
| 33 |
+
*
|
| 34 |
+
* U.S. Government End Users. These Licensed Deliverables are a
|
| 35 |
+
* "commercial item" as that term is defined at 48 C.F.R. 2.101 (OCT
|
| 36 |
+
* 1995), consisting of "commercial computer software" and "commercial
|
| 37 |
+
* computer software documentation" as such terms are used in 48
|
| 38 |
+
* C.F.R. 12.212 (SEPT 1995) and is provided to the U.S. Government
|
| 39 |
+
* only as a commercial end item. Consistent with 48 C.F.R.12.212 and
|
| 40 |
+
* 48 C.F.R. 227.7202-1 through 227.7202-4 (JUNE 1995), all
|
| 41 |
+
* U.S. Government End Users acquire the Licensed Deliverables with
|
| 42 |
+
* only those rights set forth herein.
|
| 43 |
+
*
|
| 44 |
+
* Any use of the Licensed Deliverables in individual and commercial
|
| 45 |
+
* software must include, in the user documentation and internal
|
| 46 |
+
* comments to the code, the above Disclaimer and U.S. Government End
|
| 47 |
+
* Users Notice.
|
| 48 |
+
*/
|
| 49 |
+
|
| 50 |
+
#if !defined(__CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS__)
|
| 51 |
+
#if defined(_MSC_VER)
|
| 52 |
+
#pragma message("crt/common_functions.h is an internal header file and must not be used directly. Please use cuda_runtime_api.h or cuda_runtime.h instead.")
|
| 53 |
+
#else
|
| 54 |
+
#warning "crt/common_functions.h is an internal header file and must not be used directly. Please use cuda_runtime_api.h or cuda_runtime.h instead."
|
| 55 |
+
#endif
|
| 56 |
+
#define __CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS__
|
| 57 |
+
#define __UNDEF_CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS_COMMON_FUNCTIONS_H__
|
| 58 |
+
#endif
|
| 59 |
+
|
| 60 |
+
#if !defined(__COMMON_FUNCTIONS_H__)
|
| 61 |
+
#define __COMMON_FUNCTIONS_H__
|
| 62 |
+
|
| 63 |
+
/*******************************************************************************
|
| 64 |
+
* *
|
| 65 |
+
* *
|
| 66 |
+
* *
|
| 67 |
+
*******************************************************************************/
|
| 68 |
+
|
| 69 |
+
#if defined(__cplusplus) && defined(__CUDACC__)
|
| 70 |
+
|
| 71 |
+
#include "builtin_types.h"
|
| 72 |
+
#include "host_defines.h"
|
| 73 |
+
|
| 74 |
+
#define __CUDACC_VER__ "__CUDACC_VER__ is no longer supported. Use __CUDACC_VER_MAJOR__, __CUDACC_VER_MINOR__, and __CUDACC_VER_BUILD__ instead."
|
| 75 |
+
|
| 76 |
+
#ifndef __CUDA_API_VER_MAJOR__
|
| 77 |
+
#define __CUDA_API_VER_MAJOR__ __CUDACC_VER_MAJOR__
|
| 78 |
+
#endif /* __CUDA_API_VER_MAJOR__ */
|
| 79 |
+
|
| 80 |
+
#ifndef __CUDA_API_VER_MINOR__
|
| 81 |
+
#define __CUDA_API_VER_MINOR__ __CUDACC_VER_MINOR__
|
| 82 |
+
#endif /* __CUDA_API_VER_MINOR__ */
|
| 83 |
+
|
| 84 |
+
#if !defined(__CUDACC_RTC__)
|
| 85 |
+
#include <string.h>
|
| 86 |
+
#include <time.h>
|
| 87 |
+
|
| 88 |
+
extern "C"
|
| 89 |
+
{
|
| 90 |
+
#endif /* !__CUDACC_RTC__ */
|
| 91 |
+
extern _CRTIMP __host__ __device__ __device_builtin__ __cudart_builtin__ clock_t __cdecl clock(void)
|
| 92 |
+
#if defined(__QNX__)
|
| 93 |
+
asm("clock32")
|
| 94 |
+
#endif
|
| 95 |
+
__THROW;
|
| 96 |
+
extern __host__ __device__ __device_builtin__ __cudart_builtin__ void* __cdecl memset(void*, int, size_t) __THROW;
|
| 97 |
+
extern __host__ __device__ __device_builtin__ __cudart_builtin__ void* __cdecl memcpy(void*, const void*, size_t) __THROW;
|
| 98 |
+
#if !defined(__CUDACC_RTC__)
|
| 99 |
+
}
|
| 100 |
+
#endif /* !__CUDACC_RTC__ */
|
| 101 |
+
|
| 102 |
+
#if defined(__CUDA_ARCH__)
|
| 103 |
+
|
| 104 |
+
#if defined(__CUDACC_RTC__)
|
| 105 |
+
inline __host__ __device__ void* operator new(size_t, void *p) { return p; }
|
| 106 |
+
inline __host__ __device__ void* operator new[](size_t, void *p) { return p; }
|
| 107 |
+
inline __host__ __device__ void operator delete(void*, void*) { }
|
| 108 |
+
inline __host__ __device__ void operator delete[](void*, void*) { }
|
| 109 |
+
#else /* !__CUDACC_RTC__ */
|
| 110 |
+
#ifndef __CUDA_INTERNAL_SKIP_CPP_HEADERS__
|
| 111 |
+
#include <new>
|
| 112 |
+
#endif
|
| 113 |
+
|
| 114 |
+
#if defined (__GNUC__)
|
| 115 |
+
|
| 116 |
+
#define STD \
|
| 117 |
+
std::
|
| 118 |
+
|
| 119 |
+
#else /* __GNUC__ */
|
| 120 |
+
|
| 121 |
+
#define STD
|
| 122 |
+
|
| 123 |
+
#endif /* __GNUC__ */
|
| 124 |
+
|
| 125 |
+
extern __host__ __device__ __cudart_builtin__ void* __cdecl operator new(STD size_t, void*) throw();
|
| 126 |
+
extern __host__ __device__ __cudart_builtin__ void* __cdecl operator new[](STD size_t, void*) throw();
|
| 127 |
+
extern __host__ __device__ __cudart_builtin__ void __cdecl operator delete(void*, void*) throw();
|
| 128 |
+
extern __host__ __device__ __cudart_builtin__ void __cdecl operator delete[](void*, void*) throw();
|
| 129 |
+
# if __cplusplus >= 201402L || (defined(_MSC_VER) && _MSC_VER >= 1900) || defined(__CUDA_XLC_CPP14__) || defined(__CUDA_ICC_CPP14__)
|
| 130 |
+
extern __host__ __device__ __cudart_builtin__ void __cdecl operator delete(void*, STD size_t) throw();
|
| 131 |
+
extern __host__ __device__ __cudart_builtin__ void __cdecl operator delete[](void*, STD size_t) throw();
|
| 132 |
+
#endif /* __cplusplus >= 201402L || (defined(_MSC_VER) && _MSC_VER >= 1900) || defined(__CUDA_XLC_CPP14__) || defined(__CUDA_ICC_CPP14__) */
|
| 133 |
+
#endif /* __CUDACC_RTC__ */
|
| 134 |
+
|
| 135 |
+
#if !defined(__CUDACC_RTC__)
|
| 136 |
+
#include <stdio.h>
|
| 137 |
+
#include <stdlib.h>
|
| 138 |
+
#endif /* !__CUDACC_RTC__ */
|
| 139 |
+
|
| 140 |
+
#if defined(__QNX__) && !defined(_LIBCPP_VERSION)
|
| 141 |
+
namespace std {
|
| 142 |
+
#endif
|
| 143 |
+
extern "C"
|
| 144 |
+
{
|
| 145 |
+
extern
|
| 146 |
+
#if !defined(_MSC_VER) || _MSC_VER < 1900
|
| 147 |
+
_CRTIMP
|
| 148 |
+
#endif
|
| 149 |
+
|
| 150 |
+
#if defined(__GLIBC__) && defined(__GLIBC_MINOR__) && ( (__GLIBC__ < 2) || ( (__GLIBC__ == 2) && (__GLIBC_MINOR__ < 3) ) )
|
| 151 |
+
__host__ __device__ __device_builtin__ __cudart_builtin__ int __cdecl printf(const char*, ...) __THROW;
|
| 152 |
+
#else /* newer glibc */
|
| 153 |
+
__host__ __device__ __device_builtin__ __cudart_builtin__ int __cdecl printf(const char*, ...);
|
| 154 |
+
#endif /* defined(__GLIBC__) && defined(__GLIBC_MINOR__) && ( (__GLIBC__ < 2) || ( (__GLIBC__ == 2) && (__GLIBC_MINOR__ < 3) ) ) */
|
| 155 |
+
|
| 156 |
+
|
| 157 |
+
extern _CRTIMP __host__ __device__ __cudart_builtin__ void* __cdecl malloc(size_t) __THROW;
|
| 158 |
+
extern _CRTIMP __host__ __device__ __cudart_builtin__ void __cdecl free(void*) __THROW;
|
| 159 |
+
|
| 160 |
+
#if defined(_MSC_VER)
|
| 161 |
+
extern __host__ __device__ __cudart_builtin__ void* __cdecl _alloca(size_t);
|
| 162 |
+
#endif
|
| 163 |
+
|
| 164 |
+
#if defined(__QNX__)
|
| 165 |
+
#undef alloca
|
| 166 |
+
#define alloca(__S) __builtin_alloca(__S)
|
| 167 |
+
#endif
|
| 168 |
+
}
|
| 169 |
+
#if defined(__QNX__) && !defined(_LIBCPP_VERSION)
|
| 170 |
+
} /* std */
|
| 171 |
+
#endif
|
| 172 |
+
|
| 173 |
+
#if !defined(__CUDACC_RTC__)
|
| 174 |
+
#include <assert.h>
|
| 175 |
+
#endif /* !__CUDACC_RTC__ */
|
| 176 |
+
|
| 177 |
+
extern "C"
|
| 178 |
+
{
|
| 179 |
+
#if defined(__CUDACC_RTC__)
|
| 180 |
+
extern __host__ __device__ void __assertfail(const char * __assertion,
|
| 181 |
+
const char *__file,
|
| 182 |
+
unsigned int __line,
|
| 183 |
+
const char *__function,
|
| 184 |
+
size_t charsize);
|
| 185 |
+
#elif defined(__APPLE__)
|
| 186 |
+
#define __builtin_expect(exp,c) (exp)
|
| 187 |
+
extern __host__ __device__ __cudart_builtin__ void __assert_rtn(
|
| 188 |
+
const char *, const char *, int, const char *);
|
| 189 |
+
#elif defined(__ANDROID__)
|
| 190 |
+
extern __host__ __device__ __cudart_builtin__ void __assert2(
|
| 191 |
+
const char *, int, const char *, const char *);
|
| 192 |
+
#elif defined(__QNX__)
|
| 193 |
+
#if !defined(_LIBCPP_VERSION)
|
| 194 |
+
namespace std {
|
| 195 |
+
#endif
|
| 196 |
+
extern __host__ __device__ __cudart_builtin__ void __assert(
|
| 197 |
+
const char *, const char *, unsigned int, const char *);
|
| 198 |
+
#if !defined(_LIBCPP_VERSION)
|
| 199 |
+
}
|
| 200 |
+
#endif
|
| 201 |
+
#elif defined(__HORIZON__)
|
| 202 |
+
extern __host__ __device__ __cudart_builtin__ void __assert_fail(
|
| 203 |
+
const char *, const char *, int, const char *);
|
| 204 |
+
#elif defined(__GNUC__)
|
| 205 |
+
extern __host__ __device__ __cudart_builtin__ void __assert_fail(
|
| 206 |
+
const char *, const char *, unsigned int, const char *)
|
| 207 |
+
__THROW;
|
| 208 |
+
#elif defined(_WIN32)
|
| 209 |
+
extern __host__ __device__ __cudart_builtin__ _CRTIMP void __cdecl _wassert(
|
| 210 |
+
const wchar_t *, const wchar_t *, unsigned);
|
| 211 |
+
#endif
|
| 212 |
+
}
|
| 213 |
+
|
| 214 |
+
#if defined(__CUDACC_RTC__)
|
| 215 |
+
#ifdef NDEBUG
|
| 216 |
+
#define assert(e) (static_cast<void>(0))
|
| 217 |
+
#else /* !NDEBUG */
|
| 218 |
+
#define __ASSERT_STR_HELPER(x) #x
|
| 219 |
+
#define assert(e) ((e) ? static_cast<void>(0)\
|
| 220 |
+
: __assertfail(__ASSERT_STR_HELPER(e), __FILE__,\
|
| 221 |
+
__LINE__, __PRETTY_FUNCTION__,\
|
| 222 |
+
sizeof(char)))
|
| 223 |
+
#endif /* NDEBUG */
|
| 224 |
+
__host__ __device__ void* operator new(size_t);
|
| 225 |
+
__host__ __device__ void* operator new[](size_t);
|
| 226 |
+
__host__ __device__ void operator delete(void*);
|
| 227 |
+
__host__ __device__ void operator delete[](void*);
|
| 228 |
+
# if __cplusplus >= 201402L
|
| 229 |
+
__host__ __device__ void operator delete(void*, size_t);
|
| 230 |
+
__host__ __device__ void operator delete[](void*, size_t);
|
| 231 |
+
#endif /* __cplusplus >= 201402L */
|
| 232 |
+
|
| 233 |
+
#if __cplusplus >= 201703L
|
| 234 |
+
namespace std { enum class align_val_t : size_t {}; }
|
| 235 |
+
__host__ __device__ void* __cdecl operator new(size_t sz, std::align_val_t) noexcept;
|
| 236 |
+
__host__ __device__ void* __cdecl operator new[](size_t sz, std::align_val_t) noexcept;
|
| 237 |
+
__host__ __device__ void __cdecl operator delete(void* ptr, std::align_val_t) noexcept;
|
| 238 |
+
__host__ __device__ void __cdecl operator delete[](void* ptr, std::align_val_t) noexcept;
|
| 239 |
+
__host__ __device__ void __cdecl operator delete(void* ptr, size_t, std::align_val_t) noexcept;
|
| 240 |
+
__host__ __device__ void __cdecl operator delete[](void* ptr, size_t, std::align_val_t) noexcept;
|
| 241 |
+
#endif /* __cplusplus >= 201703L */
|
| 242 |
+
|
| 243 |
+
#else /* !__CUDACC_RTC__ */
|
| 244 |
+
#if defined (__GNUC__)
|
| 245 |
+
|
| 246 |
+
#define __NV_GLIBCXX_VERSION (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__)
|
| 247 |
+
|
| 248 |
+
#if (__cplusplus >= 201103L) && ((!(defined(__QNX__) && defined(_LIBCPP_VERSION))) || (defined(__QNX__) && __NV_GLIBCXX_VERSION >= 80300))
|
| 249 |
+
#define THROWBADALLOC
|
| 250 |
+
#else
|
| 251 |
+
#if defined(__ANDROID__) && !defined(_LIBCPP_VERSION) && (defined(__BIONIC__) || __NV_GLIBCXX_VERSION < 40900)
|
| 252 |
+
#define THROWBADALLOC
|
| 253 |
+
#else
|
| 254 |
+
#define THROWBADALLOC throw(STD bad_alloc)
|
| 255 |
+
#endif
|
| 256 |
+
#endif
|
| 257 |
+
#define __DELETE_THROW throw()
|
| 258 |
+
|
| 259 |
+
#undef __NV_GLIBCXX_VERSION
|
| 260 |
+
|
| 261 |
+
#else /* __GNUC__ */
|
| 262 |
+
|
| 263 |
+
#define THROWBADALLOC throw(...)
|
| 264 |
+
|
| 265 |
+
#endif /* __GNUC__ */
|
| 266 |
+
|
| 267 |
+
extern __host__ __device__ __cudart_builtin__ void* __cdecl operator new(STD size_t) THROWBADALLOC;
|
| 268 |
+
extern __host__ __device__ __cudart_builtin__ void* __cdecl operator new[](STD size_t) THROWBADALLOC;
|
| 269 |
+
extern __host__ __device__ __cudart_builtin__ void __cdecl operator delete(void*) throw();
|
| 270 |
+
extern __host__ __device__ __cudart_builtin__ void __cdecl operator delete[](void*) throw();
|
| 271 |
+
# if __cplusplus >= 201402L || (defined(_MSC_VER) && _MSC_VER >= 1900) || defined(__CUDA_XLC_CPP14__) || defined(__CUDA_ICC_CPP14__)
|
| 272 |
+
extern __host__ __device__ __cudart_builtin__ void __cdecl operator delete(void*, STD size_t) throw();
|
| 273 |
+
extern __host__ __device__ __cudart_builtin__ void __cdecl operator delete[](void*, STD size_t) throw();
|
| 274 |
+
#endif /* __cplusplus >= 201402L || (defined(_MSC_VER) && _MSC_VER >= 1900) || defined(__CUDA_XLC_CPP14__) || defined(__CUDA_ICC_CPP14__) */
|
| 275 |
+
|
| 276 |
+
#if __cpp_aligned_new
|
| 277 |
+
extern __host__ __device__ __cudart_builtin__ void* __cdecl operator new(STD size_t, std::align_val_t);
|
| 278 |
+
extern __host__ __device__ __cudart_builtin__ void* __cdecl operator new[](STD size_t, std::align_val_t);
|
| 279 |
+
extern __host__ __device__ __cudart_builtin__ void __cdecl operator delete(void*, std::align_val_t) noexcept;
|
| 280 |
+
extern __host__ __device__ __cudart_builtin__ void __cdecl operator delete[](void*, std::align_val_t) noexcept;
|
| 281 |
+
extern __host__ __device__ __cudart_builtin__ void __cdecl operator delete(void*, STD size_t, std::align_val_t) noexcept;
|
| 282 |
+
extern __host__ __device__ __cudart_builtin__ void __cdecl operator delete[](void*, STD size_t, std::align_val_t) noexcept;
|
| 283 |
+
#endif /* __cpp_aligned_new */
|
| 284 |
+
|
| 285 |
+
#undef THROWBADALLOC
|
| 286 |
+
#undef STD
|
| 287 |
+
#endif /* __CUDACC_RTC__ */
|
| 288 |
+
|
| 289 |
+
#endif /* __CUDA_ARCH__ */
|
| 290 |
+
|
| 291 |
+
#endif /* __cplusplus && __CUDACC__ */
|
| 292 |
+
|
| 293 |
+
/*******************************************************************************
|
| 294 |
+
* *
|
| 295 |
+
* *
|
| 296 |
+
* *
|
| 297 |
+
*******************************************************************************/
|
| 298 |
+
|
| 299 |
+
#if defined(__CUDACC_RTC__) && (__CUDA_ARCH__ >= 350)
|
| 300 |
+
#include "cuda_device_runtime_api.h"
|
| 301 |
+
#endif
|
| 302 |
+
|
| 303 |
+
#include "math_functions.h"
|
| 304 |
+
|
| 305 |
+
#endif /* !__COMMON_FUNCTIONS_H__ */
|
| 306 |
+
|
| 307 |
+
#if defined(__UNDEF_CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS_COMMON_FUNCTIONS_H__)
|
| 308 |
+
#undef __CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS__
|
| 309 |
+
#undef __UNDEF_CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS_COMMON_FUNCTIONS_H__
|
| 310 |
+
#endif
|
data/miniconda3/pkgs/cuda-crt-dev_linux-64-12.8.93-h06a4308_3/targets/x86_64-linux/include/crt/cudacc_ext.h
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
* Copyright 2021-2021 NVIDIA Corporation. All rights reserved.
|
| 3 |
+
*
|
| 4 |
+
* NOTICE TO LICENSEE:
|
| 5 |
+
*
|
| 6 |
+
* This source code and/or documentation ("Licensed Deliverables") are
|
| 7 |
+
* subject to NVIDIA intellectual property rights under U.S. and
|
| 8 |
+
* international Copyright laws.
|
| 9 |
+
*
|
| 10 |
+
* These Licensed Deliverables contained herein is PROPRIETARY and
|
| 11 |
+
* CONFIDENTIAL to NVIDIA and is being provided under the terms and
|
| 12 |
+
* conditions of a form of NVIDIA software license agreement by and
|
| 13 |
+
* between NVIDIA and Licensee ("License Agreement") or electronically
|
| 14 |
+
* accepted by Licensee. Notwithstanding any terms or conditions to
|
| 15 |
+
* the contrary in the License Agreement, reproduction or disclosure
|
| 16 |
+
* of the Licensed Deliverables to any third party without the express
|
| 17 |
+
* written consent of NVIDIA is prohibited.
|
| 18 |
+
*
|
| 19 |
+
* NOTWITHSTANDING ANY TERMS OR CONDITIONS TO THE CONTRARY IN THE
|
| 20 |
+
* LICENSE AGREEMENT, NVIDIA MAKES NO REPRESENTATION ABOUT THE
|
| 21 |
+
* SUITABILITY OF THESE LICENSED DELIVERABLES FOR ANY PURPOSE. IT IS
|
| 22 |
+
* PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY OF ANY KIND.
|
| 23 |
+
* NVIDIA DISCLAIMS ALL WARRANTIES WITH REGARD TO THESE LICENSED
|
| 24 |
+
* DELIVERABLES, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY,
|
| 25 |
+
* NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE.
|
| 26 |
+
* NOTWITHSTANDING ANY TERMS OR CONDITIONS TO THE CONTRARY IN THE
|
| 27 |
+
* LICENSE AGREEMENT, IN NO EVENT SHALL NVIDIA BE LIABLE FOR ANY
|
| 28 |
+
* SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, OR ANY
|
| 29 |
+
* DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
|
| 30 |
+
* WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
|
| 31 |
+
* ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
|
| 32 |
+
* OF THESE LICENSED DELIVERABLES.
|
| 33 |
+
*
|
| 34 |
+
* U.S. Government End Users. These Licensed Deliverables are a
|
| 35 |
+
* "commercial item" as that term is defined at 48 C.F.R. 2.101 (OCT
|
| 36 |
+
* 1995), consisting of "commercial computer software" and "commercial
|
| 37 |
+
* computer software documentation" as such terms are used in 48
|
| 38 |
+
* C.F.R. 12.212 (SEPT 1995) and is provided to the U.S. Government
|
| 39 |
+
* only as a commercial end item. Consistent with 48 C.F.R.12.212 and
|
| 40 |
+
* 48 C.F.R. 227.7202-1 through 227.7202-4 (JUNE 1995), all
|
| 41 |
+
* U.S. Government End Users acquire the Licensed Deliverables with
|
| 42 |
+
* only those rights set forth herein.
|
| 43 |
+
*
|
| 44 |
+
* Any use of the Licensed Deliverables in individual and commercial
|
| 45 |
+
* software must include, in the user documentation and internal
|
| 46 |
+
* comments to the code, the above Disclaimer and U.S. Government End
|
| 47 |
+
* Users Notice.
|
| 48 |
+
*/
|
| 49 |
+
|
| 50 |
+
#if !defined(__CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS__)
|
| 51 |
+
#if defined(_MSC_VER)
|
| 52 |
+
#pragma message("crt/cudacc_ext.h is an internal header file and must not be used directly. Please use cuda_runtime_api.h or cuda_runtime.h instead.")
|
| 53 |
+
#else
|
| 54 |
+
#warning "crt/cudacc_ext.h is an internal header file and must not be used directly. Please use cuda_runtime_api.h or cuda_runtime.h instead."
|
| 55 |
+
#endif
|
| 56 |
+
#define __CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS__
|
| 57 |
+
#define __UNDEF_CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS_CUDACC_EXT_H__
|
| 58 |
+
#endif
|
| 59 |
+
|
| 60 |
+
|
| 61 |
+
#if defined(__UNDEF_CUDA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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
* Copyright 1993-2021 NVIDIA Corporation. All rights reserved.
|
| 3 |
+
*
|
| 4 |
+
* NOTICE TO LICENSEE:
|
| 5 |
+
*
|
| 6 |
+
* This source code and/or documentation ("Licensed Deliverables") are
|
| 7 |
+
* subject to NVIDIA intellectual property rights under U.S. and
|
| 8 |
+
* international Copyright laws.
|
| 9 |
+
*
|
| 10 |
+
* These Licensed Deliverables contained herein is PROPRIETARY and
|
| 11 |
+
* CONFIDENTIAL to NVIDIA and is being provided under the terms and
|
| 12 |
+
* conditions of a form of NVIDIA software license agreement by and
|
| 13 |
+
* between NVIDIA and Licensee ("License Agreement") or electronically
|
| 14 |
+
* accepted by Licensee. Notwithstanding any terms or conditions to
|
| 15 |
+
* the contrary in the License Agreement, reproduction or disclosure
|
| 16 |
+
* of the Licensed Deliverables to any third party without the express
|
| 17 |
+
* written consent of NVIDIA is prohibited.
|
| 18 |
+
*
|
| 19 |
+
* NOTWITHSTANDING ANY TERMS OR CONDITIONS TO THE CONTRARY IN THE
|
| 20 |
+
* LICENSE AGREEMENT, NVIDIA MAKES NO REPRESENTATION ABOUT THE
|
| 21 |
+
* SUITABILITY OF THESE LICENSED DELIVERABLES FOR ANY PURPOSE. IT IS
|
| 22 |
+
* PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY OF ANY KIND.
|
| 23 |
+
* NVIDIA DISCLAIMS ALL WARRANTIES WITH REGARD TO THESE LICENSED
|
| 24 |
+
* DELIVERABLES, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY,
|
| 25 |
+
* NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE.
|
| 26 |
+
* NOTWITHSTANDING ANY TERMS OR CONDITIONS TO THE CONTRARY IN THE
|
| 27 |
+
* LICENSE AGREEMENT, IN NO EVENT SHALL NVIDIA BE LIABLE FOR ANY
|
| 28 |
+
* SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, OR ANY
|
| 29 |
+
* DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
|
| 30 |
+
* WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
|
| 31 |
+
* ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
|
| 32 |
+
* OF THESE LICENSED DELIVERABLES.
|
| 33 |
+
*
|
| 34 |
+
* U.S. Government End Users. These Licensed Deliverables are a
|
| 35 |
+
* "commercial item" as that term is defined at 48 C.F.R. 2.101 (OCT
|
| 36 |
+
* 1995), consisting of "commercial computer software" and "commercial
|
| 37 |
+
* computer software documentation" as such terms are used in 48
|
| 38 |
+
* C.F.R. 12.212 (SEPT 1995) and is provided to the U.S. Government
|
| 39 |
+
* only as a commercial end item. Consistent with 48 C.F.R.12.212 and
|
| 40 |
+
* 48 C.F.R. 227.7202-1 through 227.7202-4 (JUNE 1995), all
|
| 41 |
+
* U.S. Government End Users acquire the Licensed Deliverables with
|
| 42 |
+
* only those rights set forth herein.
|
| 43 |
+
*
|
| 44 |
+
* Any use of the Licensed Deliverables in individual and commercial
|
| 45 |
+
* software must include, in the user documentation and internal
|
| 46 |
+
* comments to the code, the above Disclaimer and U.S. Government End
|
| 47 |
+
* Users Notice.
|
| 48 |
+
*/
|
| 49 |
+
|
| 50 |
+
#if !defined(__CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS__)
|
| 51 |
+
#if defined(_MSC_VER)
|
| 52 |
+
#pragma message("crt/device_double_functions.h is an internal header file and must not be used directly. Please use cuda_runtime_api.h or cuda_runtime.h instead.")
|
| 53 |
+
#else
|
| 54 |
+
#warning "crt/device_double_functions.h is an internal header file and must not be used directly. Please use cuda_runtime_api.h or cuda_runtime.h instead."
|
| 55 |
+
#endif
|
| 56 |
+
#define __CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS__
|
| 57 |
+
#define __UNDEF_CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS_DEVICE_DOUBLE_FUNCTIONS_H__
|
| 58 |
+
#endif
|
| 59 |
+
|
| 60 |
+
#if !defined(__DEVICE_DOUBLE_FUNCTIONS_H__)
|
| 61 |
+
#define __DEVICE_DOUBLE_FUNCTIONS_H__
|
| 62 |
+
|
| 63 |
+
/*******************************************************************************
|
| 64 |
+
* *
|
| 65 |
+
* *
|
| 66 |
+
* *
|
| 67 |
+
*******************************************************************************/
|
| 68 |
+
|
| 69 |
+
#if defined(__cplusplus) && defined(__CUDACC__)
|
| 70 |
+
|
| 71 |
+
/*******************************************************************************
|
| 72 |
+
* *
|
| 73 |
+
* *
|
| 74 |
+
* *
|
| 75 |
+
*******************************************************************************/
|
| 76 |
+
|
| 77 |
+
#if defined(__CUDACC_RTC__)
|
| 78 |
+
#define __DEVICE_DOUBLE_FUNCTIONS_DECL__ __device__
|
| 79 |
+
#else
|
| 80 |
+
#define __DEVICE_DOUBLE_FUNCTIONS_DECL__ static __inline__ __device__
|
| 81 |
+
#endif /* __CUDACC_RTC__ */
|
| 82 |
+
|
| 83 |
+
#include "builtin_types.h"
|
| 84 |
+
#include "device_types.h"
|
| 85 |
+
#include "host_defines.h"
|
| 86 |
+
|
| 87 |
+
//NOTE: For NVRTC, these declarations have been moved into the compiler (to reduce compile time)
|
| 88 |
+
#define EXCLUDE_FROM_RTC
|
| 89 |
+
|
| 90 |
+
extern "C"
|
| 91 |
+
{
|
| 92 |
+
/**
|
| 93 |
+
* \ingroup CUDA_MATH_INTRINSIC_CAST
|
| 94 |
+
* \brief Reinterpret bits in a double as a 64-bit signed integer.
|
| 95 |
+
*
|
| 96 |
+
* Reinterpret the bits in the double-precision floating-point value \p x
|
| 97 |
+
* as a signed 64-bit integer.
|
| 98 |
+
* \return Returns reinterpreted value.
|
| 99 |
+
*/
|
| 100 |
+
extern __device__ __device_builtin__ long long int __double_as_longlong(double x);
|
| 101 |
+
/**
|
| 102 |
+
* \ingroup CUDA_MATH_INTRINSIC_CAST
|
| 103 |
+
* \brief Reinterpret bits in a 64-bit signed integer as a double.
|
| 104 |
+
*
|
| 105 |
+
* Reinterpret the bits in the 64-bit signed integer value \p x as
|
| 106 |
+
* a double-precision floating-point value.
|
| 107 |
+
* \return Returns reinterpreted value.
|
| 108 |
+
*/
|
| 109 |
+
extern __device__ __device_builtin__ double __longlong_as_double(long long int x);
|
| 110 |
+
/**
|
| 111 |
+
* \ingroup CUDA_MATH_INTRINSIC_DOUBLE
|
| 112 |
+
* \brief Compute
|
| 113 |
+
* \latexonly $x \times y + z$ \endlatexonly
|
| 114 |
+
* \xmlonly
|
| 115 |
+
* <d4p_MathML outputclass="xmlonly">
|
| 116 |
+
* <m:math xmlns:m="http://www.w3.org/1998/Math/MathML">
|
| 117 |
+
* <m:mi>x</m:mi>
|
| 118 |
+
* <m:mo>×<!-- &Multiply; --></m:mo>
|
| 119 |
+
* <m:mi>y</m:mi>
|
| 120 |
+
* <m:mo>+</m:mo>
|
| 121 |
+
* <m:mi>z</m:mi>
|
| 122 |
+
* </m:math>
|
| 123 |
+
* </d4p_MathML>
|
| 124 |
+
* \endxmlonly
|
| 125 |
+
* as a single operation in round-to-nearest-even mode.
|
| 126 |
+
*
|
| 127 |
+
* Computes the value of
|
| 128 |
+
* \latexonly $x \times y + z$ \endlatexonly
|
| 129 |
+
* \xmlonly
|
| 130 |
+
* <d4p_MathML outputclass="xmlonly">
|
| 131 |
+
* <m:math xmlns:m="http://www.w3.org/1998/Math/MathML">
|
| 132 |
+
* <m:mi>x</m:mi>
|
| 133 |
+
* <m:mo>×<!-- &Multiply; --></m:mo>
|
| 134 |
+
* <m:mi>y</m:mi>
|
| 135 |
+
* <m:mo>+</m:mo>
|
| 136 |
+
* <m:mi>z</m:mi>
|
| 137 |
+
* </m:math>
|
| 138 |
+
* </d4p_MathML>
|
| 139 |
+
* \endxmlonly
|
| 140 |
+
* as a single ternary operation, rounding the
|
| 141 |
+
* result once in round-to-nearest-even mode.
|
| 142 |
+
*
|
| 143 |
+
* \return Returns the rounded value of
|
| 144 |
+
* \latexonly $x \times y + z$ \endlatexonly
|
| 145 |
+
* \xmlonly
|
| 146 |
+
* <d4p_MathML outputclass="xmlonly">
|
| 147 |
+
* <m:math xmlns:m="http://www.w3.org/1998/Math/MathML">
|
| 148 |
+
* <m:mi>x</m:mi>
|
| 149 |
+
* <m:mo>×<!-- &Multiply; --></m:mo>
|
| 150 |
+
* <m:mi>y</m:mi>
|
| 151 |
+
* <m:mo>+</m:mo>
|
| 152 |
+
* <m:mi>z</m:mi>
|
| 153 |
+
* </m:math>
|
| 154 |
+
* </d4p_MathML>
|
| 155 |
+
* \endxmlonly
|
| 156 |
+
* as a single operation.
|
| 157 |
+
* - fmaf(
|
| 158 |
+
* \latexonly $\pm \infty$ \endlatexonly
|
| 159 |
+
* \xmlonly
|
| 160 |
+
* <d4p_MathML outputclass="xmlonly">
|
| 161 |
+
* <m:math xmlns:m="http://www.w3.org/1998/Math/MathML">
|
| 162 |
+
* <m:mo>±<!-- ± --></m:mo>
|
| 163 |
+
* <m:mn>∞<!-- &Infinity; --></m:mn>
|
| 164 |
+
* </m:math>
|
| 165 |
+
* </d4p_MathML>
|
| 166 |
+
* \endxmlonly
|
| 167 |
+
* ,
|
| 168 |
+
* \latexonly $\pm 0$ \endlatexonly
|
| 169 |
+
* \xmlonly
|
| 170 |
+
* <d4p_MathML outputclass="xmlonly">
|
| 171 |
+
* <m:math xmlns:m="http://www.w3.org/1998/Math/MathML">
|
| 172 |
+
* <m:mo>±<!-- ± --></m:mo>
|
| 173 |
+
* <m:mn>0</m:mn>
|
| 174 |
+
* </m:math>
|
| 175 |
+
* </d4p_MathML>
|
| 176 |
+
* \endxmlonly
|
| 177 |
+
* , \p z) returns NaN.
|
| 178 |
+
* - fmaf(
|
| 179 |
+
* \latexonly $\pm 0$ \endlatexonly
|
| 180 |
+
* \xmlonly
|
| 181 |
+
* <d4p_MathML outputclass="xmlonly">
|
| 182 |
+
* <m:math xmlns:m="http://www.w3.org/1998/Math/MathML">
|
| 183 |
+
* <m:mo>±<!-- ± --></m:mo>
|
| 184 |
+
* <m:mn>0</m:mn>
|
| 185 |
+
* </m:math>
|
| 186 |
+
* </d4p_MathML>
|
| 187 |
+
* \endxmlonly
|
| 188 |
+
* ,
|
| 189 |
+
* \latexonly $\pm \infty$ \endlatexonly
|
| 190 |
+
* \xmlonly
|
| 191 |
+
* <d4p_MathML outputclass="xmlonly">
|
| 192 |
+
* <m:math xmlns:m="http://www.w3.org/1998/Math/MathML">
|
| 193 |
+
* <m:mo>±<!-- ± --></m:mo>
|
| 194 |
+
* <m:mn>∞<!-- &Infinity; --></m:mn>
|
| 195 |
+
* </m:math>
|
| 196 |
+
* </d4p_MathML>
|
| 197 |
+
* \endxmlonly
|
| 198 |
+
* , \p z) returns NaN.
|
| 199 |
+
* - fmaf(\p x, \p y,
|
| 200 |
+
* \latexonly $-\infty$ \endlatexonly
|
| 201 |
+
* \xmlonly
|
| 202 |
+
* <d4p_MathML outputclass="xmlonly">
|
| 203 |
+
* <m:math xmlns:m="http://www.w3.org/1998/Math/MathML">
|
| 204 |
+
* <m:mo>-</m:mo>
|
| 205 |
+
* <m:mn>∞<!-- &Infinity; --></m:mn>
|
| 206 |
+
* </m:math>
|
| 207 |
+
* </d4p_MathML>
|
| 208 |
+
* \endxmlonly
|
| 209 |
+
* ) returns NaN if
|
| 210 |
+
* \latexonly $x \times y$ \endlatexonly
|
| 211 |
+
* \xmlonly
|
| 212 |
+
* <d4p_MathML outputclass="xmlonly">
|
| 213 |
+
* <m:math xmlns:m="http://www.w3.org/1998/Math/MathML">
|
| 214 |
+
* <m:mi>x</m:mi>
|
| 215 |
+
* <m:mo>×<!-- &Multiply; --></m:mo>
|
| 216 |
+
* <m:mi>y</m:mi>
|
| 217 |
+
* </m:math>
|
| 218 |
+
* </d4p_MathML>
|
| 219 |
+
* \endxmlonly
|
| 220 |
+
* is an exact
|
| 221 |
+
* \latexonly $+\infty$ \endlatexonly
|
| 222 |
+
* \xmlonly
|
| 223 |
+
* <d4p_MathML outputclass="xmlonly">
|
| 224 |
+
* <m:math xmlns:m="http://www.w3.org/1998/Math/MathML">
|
| 225 |
+
* <m:mo>+</m:mo>
|
| 226 |
+
* <m:mn>∞<!-- &Infinity; --></m:mn>
|
| 227 |
+
* </m:math>
|
| 228 |
+
* </d4p_MathML>
|
| 229 |
+
* \endxmlonly
|
| 230 |
+
* .
|
| 231 |
+
* - fmaf(\p x, \p y,
|
| 232 |
+
* \latexonly $+\infty$ \endlatexonly
|
| 233 |
+
* \xmlonly
|
| 234 |
+
* <d4p_MathML outputclass="xmlonly">
|
| 235 |
+
* <m:math xmlns:m="http://www.w3.org/1998/Math/MathML">
|
| 236 |
+
* <m:mo>+</m:mo>
|
| 237 |
+
* <m:mn>∞<!-- &Infinity; --></m:mn>
|
| 238 |
+
* </m:math>
|
| 239 |
+
* </d4p_MathML>
|
| 240 |
+
* \endxmlonly
|
| 241 |
+
* ) returns NaN if
|
| 242 |
+
* \latexonly $x \times y$ \endlatexonly
|
| 243 |
+
* \xmlonly
|
| 244 |
+
* <d4p_MathML outputclass="xmlonly">
|
| 245 |
+
* <m:math xmlns:m="http://www.w3.org/1998/Math/MathML">
|
| 246 |
+
* <m:mi>x</m:mi>
|
| 247 |
+
* <m:mo>×<!-- &Multiply; --></m:mo>
|
| 248 |
+
* <m:mi>y</m:mi>
|
| 249 |
+
* </m:math>
|
| 250 |
+
* </d4p_MathML>
|
| 251 |
+
* \endxmlonly
|
| 252 |
+
* is an exact
|
| 253 |
+
* \latexonly $-\infty$ \endlatexonly
|
| 254 |
+
* \xmlonly
|
| 255 |
+
* <d4p_MathML outputclass="xmlonly">
|
| 256 |
+
* <m:math xmlns:m="http://www.w3.org/1998/Math/MathML">
|
| 257 |
+
* <m:mo>-</m:mo>
|
| 258 |
+
* <m:mn>∞<!-- &Infinity; --></m:mn>
|
| 259 |
+
* </m:math>
|
| 260 |
+
* </d4p_MathML>
|
| 261 |
+
* \endxmlonly
|
| 262 |
+
* .
|
| 263 |
+
*
|
| 264 |
+
* \note_accuracy_double
|
| 265 |
+
*/
|
| 266 |
+
extern __device__ __device_builtin__ double __fma_rn(double x, double y, double z);
|
| 267 |
+
/**
|
| 268 |
+
* \ingroup CUDA_MATH_INTRINSIC_DOUBLE
|
| 269 |
+
* \brief Compute
|
| 270 |
+
* \latexonly $x \times y + z$ \endlatexonly
|
| 271 |
+
* \xmlonly
|
| 272 |
+
* <d4p_MathML outputclass="xmlonly">
|
| 273 |
+
* <m:math xmlns:m="http://www.w3.org/1998/Math/MathML">
|
| 274 |
+
* <m:mi>x</m:mi>
|
| 275 |
+
* <m:mo>×<!-- &Multiply; --></m:mo>
|
| 276 |
+
* <m:mi>y</m:mi>
|
| 277 |
+
* <m:mo>+</m:mo>
|
| 278 |
+
* <m:mi>z</m:mi>
|
| 279 |
+
* </m:math>
|
| 280 |
+
* </d4p_MathML>
|
| 281 |
+
* \endxmlonly
|
| 282 |
+
* as a single operation in round-towards-zero mode.
|
| 283 |
+
*
|
| 284 |
+
* Computes the value of
|
| 285 |
+
* \latexonly $x \times y + z$ \endlatexonly
|
| 286 |
+
* \xmlonly
|
| 287 |
+
* <d4p_MathML outputclass="xmlonly">
|
| 288 |
+
* <m:math xmlns:m="http://www.w3.org/1998/Math/MathML">
|
| 289 |
+
* <m:mi>x</m:mi>
|
| 290 |
+
* <m:mo>×<!-- &Multiply; --></m:mo>
|
| 291 |
+
* <m:mi>y</m:mi>
|
| 292 |
+
* <m:mo>+</m:mo>
|
| 293 |
+
* <m:mi>z</m:mi>
|
| 294 |
+
* </m:math>
|
| 295 |
+
* </d4p_MathML>
|
| 296 |
+
* \endxmlonly
|
| 297 |
+
* as a single ternary operation, rounding the
|
| 298 |
+
* result once in round-towards-zero mode.
|
| 299 |
+
*
|
| 300 |
+
* \return Returns the rounded value of
|
| 301 |
+
* \latexonly $x \times y + z$ \endlatexonly
|
| 302 |
+
* \xmlonly
|
| 303 |
+
* <d4p_MathML outputclass="xmlonly">
|
| 304 |
+
* <m:math xmlns:m="http://www.w3.org/1998/Math/MathML">
|
| 305 |
+
* <m:mi>x</m:mi>
|
| 306 |
+
* <m:mo>×<!-- &Multiply; --></m:mo>
|
| 307 |
+
* <m:mi>y</m:mi>
|
| 308 |
+
* <m:mo>+</m:mo>
|
| 309 |
+
* <m:mi>z</m:mi>
|
| 310 |
+
* </m:math>
|
| 311 |
+
* </d4p_MathML>
|
| 312 |
+
* \endxmlonly
|
| 313 |
+
* as a single operation.
|
| 314 |
+
* - fmaf(
|
| 315 |
+
* \latexonly $\pm \infty$ \endlatexonly
|
| 316 |
+
* \xmlonly
|
| 317 |
+
* <d4p_MathML outputclass="xmlonly">
|
| 318 |
+
* <m:math xmlns:m="http://www.w3.org/1998/Math/MathML">
|
| 319 |
+
* <m:mo>±<!-- ± --></m:mo>
|
| 320 |
+
* <m:mn>∞<!-- &Infinity; --></m:mn>
|
| 321 |
+
* </m:math>
|
| 322 |
+
* </d4p_MathML>
|
| 323 |
+
* \endxmlonly
|
| 324 |
+
* ,
|
| 325 |
+
* \latexonly $\pm 0$ \endlatexonly
|
| 326 |
+
* \xmlonly
|
| 327 |
+
* <d4p_MathML outputclass="xmlonly">
|
| 328 |
+
* <m:math xmlns:m="http://www.w3.org/1998/Math/MathML">
|
| 329 |
+
* <m:mo>±<!-- ± --></m:mo>
|
| 330 |
+
* <m:mn>0</m:mn>
|
| 331 |
+
* </m:math>
|
| 332 |
+
* </d4p_MathML>
|
| 333 |
+
* \endxmlonly
|
| 334 |
+
* , \p z) returns NaN.
|
| 335 |
+
* - fmaf(
|
| 336 |
+
* \latexonly $\pm 0$ \endlatexonly
|
| 337 |
+
* \xmlonly
|
| 338 |
+
* <d4p_MathML outputclass="xmlonly">
|
| 339 |
+
* <m:math xmlns:m="http://www.w3.org/1998/Math/MathML">
|
| 340 |
+
* <m:mo>±<!-- ± --></m:mo>
|
| 341 |
+
* <m:mn>0</m:mn>
|
| 342 |
+
* </m:math>
|
| 343 |
+
* </d4p_MathML>
|
| 344 |
+
* \endxmlonly
|
| 345 |
+
* ,
|
| 346 |
+
* \latexonly $\pm \infty$ \endlatexonly
|
| 347 |
+
* \xmlonly
|
| 348 |
+
* <d4p_MathML outputclass="xmlonly">
|
| 349 |
+
* <m:math xmlns:m="http://www.w3.org/1998/Math/MathML">
|
| 350 |
+
* <m:mo>±<!-- ± --></m:mo>
|
| 351 |
+
* <m:mn>∞<!-- &Infinity; --></m:mn>
|
| 352 |
+
* </m:math>
|
| 353 |
+
* </d4p_MathML>
|
| 354 |
+
* \endxmlonly
|
| 355 |
+
* , \p z) returns NaN.
|
| 356 |
+
* - fmaf(\p x, \p y,
|
| 357 |
+
* \latexonly $-\infty$ \endlatexonly
|
| 358 |
+
* \xmlonly
|
| 359 |
+
* <d4p_MathML outputclass="xmlonly">
|
| 360 |
+
* <m:math xmlns:m="http://www.w3.org/1998/Math/MathML">
|
| 361 |
+
* <m:mo>-</m:mo>
|
| 362 |
+
* <m:mn>∞<!-- &Infinity; --></m:mn>
|
| 363 |
+
* </m:math>
|
| 364 |
+
* </d4p_MathML>
|
| 365 |
+
* \endxmlonly
|
| 366 |
+
* ) returns NaN if
|
| 367 |
+
* \latexonly $x \times y$ \endlatexonly
|
| 368 |
+
* \xmlonly
|
| 369 |
+
* <d4p_MathML outputclass="xmlonly">
|
| 370 |
+
* <m:math xmlns:m="http://www.w3.org/1998/Math/MathML">
|
| 371 |
+
* <m:mi>x</m:mi>
|
| 372 |
+
* <m:mo>×<!-- &Multiply; --></m:mo>
|
| 373 |
+
* <m:mi>y</m:mi>
|
| 374 |
+
* </m:math>
|
| 375 |
+
* </d4p_MathML>
|
| 376 |
+
* \endxmlonly
|
| 377 |
+
* is an exact
|
| 378 |
+
* \latexonly $+\infty$ \endlatexonly
|
| 379 |
+
* \xmlonly
|
| 380 |
+
* <d4p_MathML outputclass="xmlonly">
|
| 381 |
+
* <m:math xmlns:m="http://www.w3.org/1998/Math/MathML">
|
| 382 |
+
* <m:mo>+</m:mo>
|
| 383 |
+
* <m:mn>∞<!-- &Infinity; --></m:mn>
|
| 384 |
+
* </m:math>
|
| 385 |
+
* </d4p_MathML>
|
| 386 |
+
* \endxmlonly
|
| 387 |
+
* .
|
| 388 |
+
* - fmaf(\p x, \p y,
|
| 389 |
+
* \latexonly $+\infty$ \endlatexonly
|
| 390 |
+
* \xmlonly
|
| 391 |
+
* <d4p_MathML outputclass="xmlonly">
|
| 392 |
+
* <m:math xmlns:m="http://www.w3.org/1998/Math/MathML">
|
| 393 |
+
* <m:mo>+</m:mo>
|
| 394 |
+
* <m:mn>∞<!-- &Infinity; --></m:mn>
|
| 395 |
+
* </m:math>
|
| 396 |
+
* </d4p_MathML>
|
| 397 |
+
* \endxmlonly
|
| 398 |
+
* ) returns NaN if
|
| 399 |
+
* \latexonly $x \times y$ \endlatexonly
|
| 400 |
+
* \xmlonly
|
| 401 |
+
* <d4p_MathML outputclass="xmlonly">
|
| 402 |
+
* <m:math xmlns:m="http://www.w3.org/1998/Math/MathML">
|
| 403 |
+
* <m:mi>x</m:mi>
|
| 404 |
+
* <m:mo>×<!-- &Multiply; --></m:mo>
|
| 405 |
+
* <m:mi>y</m:mi>
|
| 406 |
+
* </m:math>
|
| 407 |
+
* </d4p_MathML>
|
| 408 |
+
* \endxmlonly
|
| 409 |
+
* is an exact
|
| 410 |
+
* \latexonly $-\infty$ \endlatexonly
|
| 411 |
+
* \xmlonly
|
| 412 |
+
* <d4p_MathML outputclass="xmlonly">
|
| 413 |
+
* <m:math xmlns:m="http://www.w3.org/1998/Math/MathML">
|
| 414 |
+
* <m:mo>-</m:mo>
|
| 415 |
+
* <m:mn>∞<!-- &Infinity; --></m:mn>
|
| 416 |
+
* </m:math>
|
| 417 |
+
* </d4p_MathML>
|
| 418 |
+
* \endxmlonly
|
| 419 |
+
* .
|
| 420 |
+
*
|
| 421 |
+
* \note_accuracy_double
|
| 422 |
+
*/
|
| 423 |
+
extern __device__ __device_builtin__ double __fma_rz(double x, double y, double z);
|
| 424 |
+
/**
|
| 425 |
+
* \ingroup CUDA_MATH_INTRINSIC_DOUBLE
|
| 426 |
+
* \brief Compute
|
| 427 |
+
* \latexonly $x \times y + z$ \endlatexonly
|
| 428 |
+
* \xmlonly
|
| 429 |
+
* <d4p_MathML outputclass="xmlonly">
|
| 430 |
+
* <m:math xmlns:m="http://www.w3.org/1998/Math/MathML">
|
| 431 |
+
* <m:mi>x</m:mi>
|
| 432 |
+
* <m:mo>×<!-- &Multiply; --></m:mo>
|
| 433 |
+
* <m:mi>y</m:mi>
|
| 434 |
+
* <m:mo>+</m:mo>
|
| 435 |
+
* <m:mi>z</m:mi>
|
| 436 |
+
* </m:math>
|
| 437 |
+
* </d4p_MathML>
|
| 438 |
+
* \endxmlonly
|
| 439 |
+
* as a single operation in round-up mode.
|
| 440 |
+
*
|
| 441 |
+
* Computes the value of
|
| 442 |
+
* \latexonly $x \times y + z$ \endlatexonly
|
| 443 |
+
* \xmlonly
|
| 444 |
+
* <d4p_MathML outputclass="xmlonly">
|
| 445 |
+
* <m:math xmlns:m="http://www.w3.org/1998/Math/MathML">
|
| 446 |
+
* <m:mi>x</m:mi>
|
| 447 |
+
* <m:mo>×<!-- &Multiply; --></m:mo>
|
| 448 |
+
* <m:mi>y</m:mi>
|
| 449 |
+
* <m:mo>+</m:mo>
|
| 450 |
+
* <m:mi>z</m:mi>
|
| 451 |
+
* </m:math>
|
| 452 |
+
* </d4p_MathML>
|
| 453 |
+
* \endxmlonly
|
| 454 |
+
* as a single ternary operation, rounding the
|
| 455 |
+
* result once in round-up (to positive infinity) mode.
|
| 456 |
+
*
|
| 457 |
+
* \return Returns the rounded value of
|
| 458 |
+
* \latexonly $x \times y + z$ \endlatexonly
|
| 459 |
+
* \xmlonly
|
| 460 |
+
* <d4p_MathML outputclass="xmlonly">
|
| 461 |
+
* <m:math xmlns:m="http://www.w3.org/1998/Math/MathML">
|
| 462 |
+
* <m:mi>x</m:mi>
|
| 463 |
+
* <m:mo>×<!-- &Multiply; --></m:mo>
|
| 464 |
+
* <m:mi>y</m:mi>
|
| 465 |
+
* <m:mo>+</m:mo>
|
| 466 |
+
* <m:mi>z</m:mi>
|
| 467 |
+
* </m:math>
|
| 468 |
+
* </d4p_MathML>
|
| 469 |
+
* \endxmlonly
|
| 470 |
+
* as a single operation.
|
| 471 |
+
* - fmaf(
|
| 472 |
+
* \latexonly $\pm \infty$ \endlatexonly
|
| 473 |
+
* \xmlonly
|
| 474 |
+
* <d4p_MathML outputclass="xmlonly">
|
| 475 |
+
* <m:math xmlns:m="http://www.w3.org/1998/Math/MathML">
|
| 476 |
+
* <m:mo>±<!-- ± --></m:mo>
|
| 477 |
+
* <m:mn>∞<!-- &Infinity; --></m:mn>
|
| 478 |
+
* </m:math>
|
| 479 |
+
* </d4p_MathML>
|
| 480 |
+
* \endxmlonly
|
| 481 |
+
* ,
|
| 482 |
+
* \latexonly $\pm 0$ \endlatexonly
|
| 483 |
+
* \xmlonly
|
| 484 |
+
* <d4p_MathML outputclass="xmlonly">
|
| 485 |
+
* <m:math xmlns:m="http://www.w3.org/1998/Math/MathML">
|
| 486 |
+
* <m:mo>±<!-- ± --></m:mo>
|
| 487 |
+
* <m:mn>0</m:mn>
|
| 488 |
+
* </m:math>
|
| 489 |
+
* </d4p_MathML>
|
| 490 |
+
* \endxmlonly
|
| 491 |
+
* , \p z) returns NaN.
|
| 492 |
+
* - fmaf(
|
| 493 |
+
* \latexonly $\pm 0$ \endlatexonly
|
| 494 |
+
* \xmlonly
|
| 495 |
+
* <d4p_MathML outputclass="xmlonly">
|
| 496 |
+
* <m:math xmlns:m="http://www.w3.org/1998/Math/MathML">
|
| 497 |
+
* <m:mo>±<!-- ± --></m:mo>
|
| 498 |
+
* <m:mn>0</m:mn>
|
| 499 |
+
* </m:math>
|
| 500 |
+
* </d4p_MathML>
|
| 501 |
+
* \endxmlonly
|
| 502 |
+
* ,
|
| 503 |
+
* \latexonly $\pm \infty$ \endlatexonly
|
| 504 |
+
* \xmlonly
|
| 505 |
+
* <d4p_MathML outputclass="xmlonly">
|
| 506 |
+
* <m:math xmlns:m="http://www.w3.org/1998/Math/MathML">
|
| 507 |
+
* <m:mo>±<!-- ± --></m:mo>
|
| 508 |
+
* <m:mn>∞<!-- &Infinity; --></m:mn>
|
| 509 |
+
* </m:math>
|
| 510 |
+
* </d4p_MathML>
|
| 511 |
+
* \endxmlonly
|
| 512 |
+
* , \p z) returns NaN.
|
| 513 |
+
* - fmaf(\p x, \p y,
|
| 514 |
+
* \latexonly $-\infty$ \endlatexonly
|
| 515 |
+
* \xmlonly
|
| 516 |
+
* <d4p_MathML outputclass="xmlonly">
|
| 517 |
+
* <m:math xmlns:m="http://www.w3.org/1998/Math/MathML">
|
| 518 |
+
* <m:mo>-</m:mo>
|
| 519 |
+
* <m:mn>∞<!-- &Infinity; --></m:mn>
|
| 520 |
+
* </m:math>
|
| 521 |
+
* </d4p_MathML>
|
| 522 |
+
* \endxmlonly
|
| 523 |
+
* ) returns NaN if
|
| 524 |
+
* \latexonly $x \times y$ \endlatexonly
|
| 525 |
+
* \xmlonly
|
| 526 |
+
* <d4p_MathML outputclass="xmlonly">
|
| 527 |
+
* <m:math xmlns:m="http://www.w3.org/1998/Math/MathML">
|
| 528 |
+
* <m:mi>x</m:mi>
|
| 529 |
+
* <m:mo>×<!-- &Multiply; --></m:mo>
|
| 530 |
+
* <m:mi>y</m:mi>
|
| 531 |
+
* </m:math>
|
| 532 |
+
* </d4p_MathML>
|
| 533 |
+
* \endxmlonly
|
| 534 |
+
* is an exact
|
| 535 |
+
* \latexonly $+\infty$ \endlatexonly
|
| 536 |
+
* \xmlonly
|
| 537 |
+
* <d4p_MathML outputclass="xmlonly">
|
| 538 |
+
* <m:math xmlns:m="http://www.w3.org/1998/Math/MathML">
|
| 539 |
+
* <m:mo>+</m:mo>
|
| 540 |
+
* <m:mn>∞<!-- &Infinity; --></m:mn>
|
| 541 |
+
* </m:math>
|
| 542 |
+
* </d4p_MathML>
|
| 543 |
+
* \endxmlonly
|
| 544 |
+
* .
|
| 545 |
+
* - fmaf(\p x, \p y,
|
| 546 |
+
* \latexonly $+\infty$ \endlatexonly
|
| 547 |
+
* \xmlonly
|
| 548 |
+
* <d4p_MathML outputclass="xmlonly">
|
| 549 |
+
* <m:math xmlns:m="http://www.w3.org/1998/Math/MathML">
|
| 550 |
+
* <m:mo>+</m:mo>
|
| 551 |
+
* <m:mn>∞<!-- &Infinity; --></m:mn>
|
| 552 |
+
* </m:math>
|
| 553 |
+
* </d4p_MathML>
|
| 554 |
+
* \endxmlonly
|
| 555 |
+
* ) returns NaN if
|
| 556 |
+
* \latexonly $x \times y$ \endlatexonly
|
| 557 |
+
* \xmlonly
|
| 558 |
+
* <d4p_MathML outputclass="xmlonly">
|
| 559 |
+
* <m:math xmlns:m="http://www.w3.org/1998/Math/MathML">
|
| 560 |
+
* <m:mi>x</m:mi>
|
| 561 |
+
* <m:mo>×<!-- &Multiply; --></m:mo>
|
| 562 |
+
* <m:mi>y</m:mi>
|
| 563 |
+
* </m:math>
|
| 564 |
+
* </d4p_MathML>
|
| 565 |
+
* \endxmlonly
|
| 566 |
+
* is an exact
|
| 567 |
+
* \latexonly $-\infty$ \endlatexonly
|
| 568 |
+
* \xmlonly
|
| 569 |
+
* <d4p_MathML outputclass="xmlonly">
|
| 570 |
+
* <m:math xmlns:m="http://www.w3.org/1998/Math/MathML">
|
| 571 |
+
* <m:mo>-</m:mo>
|
| 572 |
+
* <m:mn>∞<!-- &Infinity; --></m:mn>
|
| 573 |
+
* </m:math>
|
| 574 |
+
* </d4p_MathML>
|
| 575 |
+
* \endxmlonly
|
| 576 |
+
* .
|
| 577 |
+
*
|
| 578 |
+
* \note_accuracy_double
|
| 579 |
+
*/
|
| 580 |
+
extern __device__ __device_builtin__ double __fma_ru(double x, double y, double z);
|
| 581 |
+
/**
|
| 582 |
+
* \ingroup CUDA_MATH_INTRINSIC_DOUBLE
|
| 583 |
+
* \brief Compute
|
| 584 |
+
* \latexonly $x \times y + z$ \endlatexonly
|
| 585 |
+
* \xmlonly
|
| 586 |
+
* <d4p_MathML outputclass="xmlonly">
|
| 587 |
+
* <m:math xmlns:m="http://www.w3.org/1998/Math/MathML">
|
| 588 |
+
* <m:mi>x</m:mi>
|
| 589 |
+
* <m:mo>×<!-- &Multiply; --></m:mo>
|
| 590 |
+
* <m:mi>y</m:mi>
|
| 591 |
+
* <m:mo>+</m:mo>
|
| 592 |
+
* <m:mi>z</m:mi>
|
| 593 |
+
* </m:math>
|
| 594 |
+
* </d4p_MathML>
|
| 595 |
+
* \endxmlonly
|
| 596 |
+
* as a single operation in round-down mode.
|
| 597 |
+
*
|
| 598 |
+
* Computes the value of
|
| 599 |
+
* \latexonly $x \times y + z$ \endlatexonly
|
| 600 |
+
* \xmlonly
|
| 601 |
+
* <d4p_MathML outputclass="xmlonly">
|
| 602 |
+
* <m:math xmlns:m="http://www.w3.org/1998/Math/MathML">
|
| 603 |
+
* <m:mi>x</m:mi>
|
| 604 |
+
* <m:mo>×<!-- &Multiply; --></m:mo>
|
| 605 |
+
* <m:mi>y</m:mi>
|
| 606 |
+
* <m:mo>+</m:mo>
|
| 607 |
+
* <m:mi>z</m:mi>
|
| 608 |
+
* </m:math>
|
| 609 |
+
* </d4p_MathML>
|
| 610 |
+
* \endxmlonly
|
| 611 |
+
* as a single ternary operation, rounding the
|
| 612 |
+
* result once in round-down (to negative infinity) mode.
|
| 613 |
+
*
|
| 614 |
+
* \return Returns the rounded value of
|
| 615 |
+
* \latexonly $x \times y + z$ \endlatexonly
|
| 616 |
+
* \xmlonly
|
| 617 |
+
* <d4p_MathML outputclass="xmlonly">
|
| 618 |
+
* <m:math xmlns:m="http://www.w3.org/1998/Math/MathML">
|
| 619 |
+
* <m:mi>x</m:mi>
|
| 620 |
+
* <m:mo>×<!-- &Multiply; --></m:mo>
|
| 621 |
+
* <m:mi>y</m:mi>
|
| 622 |
+
* <m:mo>+</m:mo>
|
| 623 |
+
* <m:mi>z</m:mi>
|
| 624 |
+
* </m:math>
|
| 625 |
+
* </d4p_MathML>
|
| 626 |
+
* \endxmlonly
|
| 627 |
+
* as a single operation.
|
| 628 |
+
* - fmaf(
|
| 629 |
+
* \latexonly $\pm \infty$ \endlatexonly
|
| 630 |
+
* \xmlonly
|
| 631 |
+
* <d4p_MathML outputclass="xmlonly">
|
| 632 |
+
* <m:math xmlns:m="http://www.w3.org/1998/Math/MathML">
|
| 633 |
+
* <m:mo>±<!-- ± --></m:mo>
|
| 634 |
+
* <m:mn>∞<!-- &Infinity; --></m:mn>
|
| 635 |
+
* </m:math>
|
| 636 |
+
* </d4p_MathML>
|
| 637 |
+
* \endxmlonly
|
| 638 |
+
* ,
|
| 639 |
+
* \latexonly $\pm 0$ \endlatexonly
|
| 640 |
+
* \xmlonly
|
| 641 |
+
* <d4p_MathML outputclass="xmlonly">
|
| 642 |
+
* <m:math xmlns:m="http://www.w3.org/1998/Math/MathML">
|
| 643 |
+
* <m:mo>±<!-- ± --></m:mo>
|
| 644 |
+
* <m:mn>0</m:mn>
|
| 645 |
+
* </m:math>
|
| 646 |
+
* </d4p_MathML>
|
| 647 |
+
* \endxmlonly
|
| 648 |
+
* , \p z) returns NaN.
|
| 649 |
+
* - fmaf(
|
| 650 |
+
* \latexonly $\pm 0$ \endlatexonly
|
| 651 |
+
* \xmlonly
|
| 652 |
+
* <d4p_MathML outputclass="xmlonly">
|
| 653 |
+
* <m:math xmlns:m="http://www.w3.org/1998/Math/MathML">
|
| 654 |
+
* <m:mo>±<!-- ± --></m:mo>
|
| 655 |
+
* <m:mn>0</m:mn>
|
| 656 |
+
* </m:math>
|
| 657 |
+
* </d4p_MathML>
|
| 658 |
+
* \endxmlonly
|
| 659 |
+
* ,
|
| 660 |
+
* \latexonly $\pm \infty$ \endlatexonly
|
| 661 |
+
* \xmlonly
|
| 662 |
+
* <d4p_MathML outputclass="xmlonly">
|
| 663 |
+
* <m:math xmlns:m="http://www.w3.org/1998/Math/MathML">
|
| 664 |
+
* <m:mo>±<!-- ± --></m:mo>
|
| 665 |
+
* <m:mn>∞<!-- &Infinity; --></m:mn>
|
| 666 |
+
* </m:math>
|
| 667 |
+
* </d4p_MathML>
|
| 668 |
+
* \endxmlonly
|
| 669 |
+
* , \p z) returns NaN.
|
| 670 |
+
* - fmaf(\p x, \p y,
|
| 671 |
+
* \latexonly $-\infty$ \endlatexonly
|
| 672 |
+
* \xmlonly
|
| 673 |
+
* <d4p_MathML outputclass="xmlonly">
|
| 674 |
+
* <m:math xmlns:m="http://www.w3.org/1998/Math/MathML">
|
| 675 |
+
* <m:mo>-</m:mo>
|
| 676 |
+
* <m:mn>∞<!-- &Infinity; --></m:mn>
|
| 677 |
+
* </m:math>
|
| 678 |
+
* </d4p_MathML>
|
| 679 |
+
* \endxmlonly
|
| 680 |
+
* ) returns NaN if
|
| 681 |
+
* \latexonly $x \times y$ \endlatexonly
|
| 682 |
+
* \xmlonly
|
| 683 |
+
* <d4p_MathML outputclass="xmlonly">
|
| 684 |
+
* <m:math xmlns:m="http://www.w3.org/1998/Math/MathML">
|
| 685 |
+
* <m:mi>x</m:mi>
|
| 686 |
+
* <m:mo>×<!-- &Multiply; --></m:mo>
|
| 687 |
+
* <m:mi>y</m:mi>
|
| 688 |
+
* </m:math>
|
| 689 |
+
* </d4p_MathML>
|
| 690 |
+
* \endxmlonly
|
| 691 |
+
* is an exact
|
| 692 |
+
* \latexonly $+\infty$ \endlatexonly
|
| 693 |
+
* \xmlonly
|
| 694 |
+
* <d4p_MathML outputclass="xmlonly">
|
| 695 |
+
* <m:math xmlns:m="http://www.w3.org/1998/Math/MathML">
|
| 696 |
+
* <m:mo>+</m:mo>
|
| 697 |
+
* <m:mn>∞<!-- &Infinity; --></m:mn>
|
| 698 |
+
* </m:math>
|
| 699 |
+
* </d4p_MathML>
|
| 700 |
+
* \endxmlonly
|
| 701 |
+
* .
|
| 702 |
+
* - fmaf(\p x, \p y,
|
| 703 |
+
* \latexonly $+\infty$ \endlatexonly
|
| 704 |
+
* \xmlonly
|
| 705 |
+
* <d4p_MathML outputclass="xmlonly">
|
| 706 |
+
* <m:math xmlns:m="http://www.w3.org/1998/Math/MathML">
|
| 707 |
+
* <m:mo>+</m:mo>
|
| 708 |
+
* <m:mn>∞<!-- &Infinity; --></m:mn>
|
| 709 |
+
* </m:math>
|
| 710 |
+
* </d4p_MathML>
|
| 711 |
+
* \endxmlonly
|
| 712 |
+
* ) returns NaN if
|
| 713 |
+
* \latexonly $x \times y$ \endlatexonly
|
| 714 |
+
* \xmlonly
|
| 715 |
+
* <d4p_MathML outputclass="xmlonly">
|
| 716 |
+
* <m:math xmlns:m="http://www.w3.org/1998/Math/MathML">
|
| 717 |
+
* <m:mi>x</m:mi>
|
| 718 |
+
* <m:mo>×<!-- &Multiply; --></m:mo>
|
| 719 |
+
* <m:mi>y</m:mi>
|
| 720 |
+
* </m:math>
|
| 721 |
+
* </d4p_MathML>
|
| 722 |
+
* \endxmlonly
|
| 723 |
+
* is an exact
|
| 724 |
+
* \latexonly $-\infty$ \endlatexonly
|
| 725 |
+
* \xmlonly
|
| 726 |
+
* <d4p_MathML outputclass="xmlonly">
|
| 727 |
+
* <m:math xmlns:m="http://www.w3.org/1998/Math/MathML">
|
| 728 |
+
* <m:mo>-</m:mo>
|
| 729 |
+
* <m:mn>∞<!-- &Infinity; --></m:mn>
|
| 730 |
+
* </m:math>
|
| 731 |
+
* </d4p_MathML>
|
| 732 |
+
* \endxmlonly
|
| 733 |
+
* .
|
| 734 |
+
*
|
| 735 |
+
* \note_accuracy_double
|
| 736 |
+
*/
|
| 737 |
+
extern __device__ __device_builtin__ double __fma_rd(double x, double y, double z);
|
| 738 |
+
/**
|
| 739 |
+
* \ingroup CUDA_MATH_INTRINSIC_DOUBLE
|
| 740 |
+
* \brief Add two floating-point values in round-to-nearest-even mode.
|
| 741 |
+
*
|
| 742 |
+
* Adds two floating-point values \p x and \p y in round-to-nearest-even mode.
|
| 743 |
+
*
|
| 744 |
+
* \return Returns \p x + \p y.
|
| 745 |
+
*
|
| 746 |
+
* \note_accuracy_double
|
| 747 |
+
* \note_nofma
|
| 748 |
+
*/
|
| 749 |
+
extern __device__ __device_builtin__ double __dadd_rn(double x, double y);
|
| 750 |
+
/**
|
| 751 |
+
* \ingroup CUDA_MATH_INTRINSIC_DOUBLE
|
| 752 |
+
* \brief Add two floating-point values in round-towards-zero mode.
|
| 753 |
+
*
|
| 754 |
+
* Adds two floating-point values \p x and \p y in round-towards-zero mode.
|
| 755 |
+
*
|
| 756 |
+
* \return Returns \p x + \p y.
|
| 757 |
+
*
|
| 758 |
+
* \note_accuracy_double
|
| 759 |
+
* \note_nofma
|
| 760 |
+
*/
|
| 761 |
+
extern __device__ __device_builtin__ double __dadd_rz(double x, double y);
|
| 762 |
+
/**
|
| 763 |
+
* \ingroup CUDA_MATH_INTRINSIC_DOUBLE
|
| 764 |
+
* \brief Add two floating-point values in round-up mode.
|
| 765 |
+
*
|
| 766 |
+
* Adds two floating-point values \p x and \p y in round-up (to positive infinity) mode.
|
| 767 |
+
*
|
| 768 |
+
* \return Returns \p x + \p y.
|
| 769 |
+
*
|
| 770 |
+
* \note_accuracy_double
|
| 771 |
+
* \note_nofma
|
| 772 |
+
*/
|
| 773 |
+
extern __device__ __device_builtin__ double __dadd_ru(double x, double y);
|
| 774 |
+
/**
|
| 775 |
+
* \ingroup CUDA_MATH_INTRINSIC_DOUBLE
|
| 776 |
+
* \brief Add two floating-point values in round-down mode.
|
| 777 |
+
*
|
| 778 |
+
* Adds two floating-point values \p x and \p y in round-down (to negative infinity) mode.
|
| 779 |
+
*
|
| 780 |
+
* \return Returns \p x + \p y.
|
| 781 |
+
*
|
| 782 |
+
* \note_accuracy_double
|
| 783 |
+
* \note_nofma
|
| 784 |
+
*/
|
| 785 |
+
extern __device__ __device_builtin__ double __dadd_rd(double x, double y);
|
| 786 |
+
/**
|
| 787 |
+
* \ingroup CUDA_MATH_INTRINSIC_DOUBLE
|
| 788 |
+
* \brief Subtract two floating-point values in round-to-nearest-even mode.
|
| 789 |
+
*
|
| 790 |
+
* Subtracts two floating-point values \p x and \p y in round-to-nearest-even mode.
|
| 791 |
+
*
|
| 792 |
+
* \return Returns \p x - \p y.
|
| 793 |
+
*
|
| 794 |
+
* \note_accuracy_double
|
| 795 |
+
* \note_nofma
|
| 796 |
+
*/
|
| 797 |
+
extern __device__ __device_builtin__ double __dsub_rn(double x, double y);
|
| 798 |
+
/**
|
| 799 |
+
* \ingroup CUDA_MATH_INTRINSIC_DOUBLE
|
| 800 |
+
* \brief Subtract two floating-point values in round-towards-zero mode.
|
| 801 |
+
*
|
| 802 |
+
* Subtracts two floating-point values \p x and \p y in round-towards-zero mode.
|
| 803 |
+
*
|
| 804 |
+
* \return Returns \p x - \p y.
|
| 805 |
+
*
|
| 806 |
+
* \note_accuracy_double
|
| 807 |
+
* \note_nofma
|
| 808 |
+
*/
|
| 809 |
+
extern __device__ __device_builtin__ double __dsub_rz(double x, double y);
|
| 810 |
+
/**
|
| 811 |
+
* \ingroup CUDA_MATH_INTRINSIC_DOUBLE
|
| 812 |
+
* \brief Subtract two floating-point values in round-up mode.
|
| 813 |
+
*
|
| 814 |
+
* Subtracts two floating-point values \p x and \p y in round-up (to positive infinity) mode.
|
| 815 |
+
*
|
| 816 |
+
* \return Returns \p x - \p y.
|
| 817 |
+
*
|
| 818 |
+
* \note_accuracy_double
|
| 819 |
+
* \note_nofma
|
| 820 |
+
*/
|
| 821 |
+
extern __device__ __device_builtin__ double __dsub_ru(double x, double y);
|
| 822 |
+
/**
|
| 823 |
+
* \ingroup CUDA_MATH_INTRINSIC_DOUBLE
|
| 824 |
+
* \brief Subtract two floating-point values in round-down mode.
|
| 825 |
+
*
|
| 826 |
+
* Subtracts two floating-point values \p x and \p y in round-down (to negative infinity) mode.
|
| 827 |
+
*
|
| 828 |
+
* \return Returns \p x - \p y.
|
| 829 |
+
*
|
| 830 |
+
* \note_accuracy_double
|
| 831 |
+
* \note_nofma
|
| 832 |
+
*/
|
| 833 |
+
extern __device__ __device_builtin__ double __dsub_rd(double x, double y);
|
| 834 |
+
/**
|
| 835 |
+
* \ingroup CUDA_MATH_INTRINSIC_DOUBLE
|
| 836 |
+
* \brief Multiply two floating-point values in round-to-nearest-even mode.
|
| 837 |
+
*
|
| 838 |
+
* Multiplies two floating-point values \p x and \p y in round-to-nearest-even mode.
|
| 839 |
+
*
|
| 840 |
+
* \return Returns \p x * \p y.
|
| 841 |
+
*
|
| 842 |
+
* \note_accuracy_double
|
| 843 |
+
* \note_nofma
|
| 844 |
+
*/
|
| 845 |
+
extern __device__ __device_builtin__ double __dmul_rn(double x, double y);
|
| 846 |
+
/**
|
| 847 |
+
* \ingroup CUDA_MATH_INTRINSIC_DOUBLE
|
| 848 |
+
* \brief Multiply two floating-point values in round-towards-zero mode.
|
| 849 |
+
*
|
| 850 |
+
* Multiplies two floating-point values \p x and \p y in round-towards-zero mode.
|
| 851 |
+
*
|
| 852 |
+
* \return Returns \p x * \p y.
|
| 853 |
+
*
|
| 854 |
+
* \note_accuracy_double
|
| 855 |
+
* \note_nofma
|
| 856 |
+
*/
|
| 857 |
+
extern __device__ __device_builtin__ double __dmul_rz(double x, double y);
|
| 858 |
+
/**
|
| 859 |
+
* \ingroup CUDA_MATH_INTRINSIC_DOUBLE
|
| 860 |
+
* \brief Multiply two floating-point values in round-up mode.
|
| 861 |
+
*
|
| 862 |
+
* Multiplies two floating-point values \p x and \p y in round-up (to positive infinity) mode.
|
| 863 |
+
*
|
| 864 |
+
* \return Returns \p x * \p y.
|
| 865 |
+
*
|
| 866 |
+
* \note_accuracy_double
|
| 867 |
+
* \note_nofma
|
| 868 |
+
*/
|
| 869 |
+
extern __device__ __device_builtin__ double __dmul_ru(double x, double y);
|
| 870 |
+
/**
|
| 871 |
+
* \ingroup CUDA_MATH_INTRINSIC_DOUBLE
|
| 872 |
+
* \brief Multiply two floating-point values in round-down mode.
|
| 873 |
+
*
|
| 874 |
+
* Multiplies two floating-point values \p x and \p y in round-down (to negative infinity) mode.
|
| 875 |
+
*
|
| 876 |
+
* \return Returns \p x * \p y.
|
| 877 |
+
*
|
| 878 |
+
* \note_accuracy_double
|
| 879 |
+
* \note_nofma
|
| 880 |
+
*/
|
| 881 |
+
extern __device__ __device_builtin__ double __dmul_rd(double x, double y);
|
| 882 |
+
/**
|
| 883 |
+
* \ingroup CUDA_MATH_INTRINSIC_CAST
|
| 884 |
+
* \brief Convert a double to a float in round-to-nearest-even mode.
|
| 885 |
+
*
|
| 886 |
+
* Convert the double-precision floating-point value \p x to a single-precision
|
| 887 |
+
* floating-point value in round-to-nearest-even mode.
|
| 888 |
+
* \return Returns converted value.
|
| 889 |
+
*/
|
| 890 |
+
extern __device__ __device_builtin__ float __double2float_rn(double x);
|
| 891 |
+
/**
|
| 892 |
+
* \ingroup CUDA_MATH_INTRINSIC_CAST
|
| 893 |
+
* \brief Convert a double to a float in round-towards-zero mode.
|
| 894 |
+
*
|
| 895 |
+
* Convert the double-precision floating-point value \p x to a single-precision
|
| 896 |
+
* floating-point value in round-towards-zero mode.
|
| 897 |
+
* \return Returns converted value.
|
| 898 |
+
*/
|
| 899 |
+
extern __device__ __device_builtin__ float __double2float_rz(double x);
|
| 900 |
+
/**
|
| 901 |
+
* \ingroup CUDA_MATH_INTRINSIC_CAST
|
| 902 |
+
* \brief Convert a double to a float in round-up mode.
|
| 903 |
+
*
|
| 904 |
+
* Convert the double-precision floating-point value \p x to a single-precision
|
| 905 |
+
* floating-point value in round-up (to positive infinity) mode.
|
| 906 |
+
* \return Returns converted value.
|
| 907 |
+
*/
|
| 908 |
+
extern __device__ __device_builtin__ float __double2float_ru(double x);
|
| 909 |
+
/**
|
| 910 |
+
* \ingroup CUDA_MATH_INTRINSIC_CAST
|
| 911 |
+
* \brief Convert a double to a float in round-down mode.
|
| 912 |
+
*
|
| 913 |
+
* Convert the double-precision floating-point value \p x to a single-precision
|
| 914 |
+
* floating-point value in round-down (to negative infinity) mode.
|
| 915 |
+
* \return Returns converted value.
|
| 916 |
+
*/
|
| 917 |
+
extern __device__ __device_builtin__ float __double2float_rd(double x);
|
| 918 |
+
/**
|
| 919 |
+
* \ingroup CUDA_MATH_INTRINSIC_CAST
|
| 920 |
+
* \brief Convert a double to a signed int in round-to-nearest-even mode.
|
| 921 |
+
*
|
| 922 |
+
* Convert the double-precision floating-point value \p x to a
|
| 923 |
+
* signed integer value in round-to-nearest-even mode.
|
| 924 |
+
* \return Returns converted value.
|
| 925 |
+
*/
|
| 926 |
+
extern __device__ __device_builtin__ int __double2int_rn(double x);
|
| 927 |
+
/**
|
| 928 |
+
* \ingroup CUDA_MATH_INTRINSIC_CAST
|
| 929 |
+
* \brief Convert a double to a signed int in round-up mode.
|
| 930 |
+
*
|
| 931 |
+
* Convert the double-precision floating-point value \p x to a
|
| 932 |
+
* signed integer value in round-up (to positive infinity) mode.
|
| 933 |
+
* \return Returns converted value.
|
| 934 |
+
*/
|
| 935 |
+
extern __device__ __device_builtin__ int __double2int_ru(double x);
|
| 936 |
+
/**
|
| 937 |
+
* \ingroup CUDA_MATH_INTRINSIC_CAST
|
| 938 |
+
* \brief Convert a double to a signed int in round-down mode.
|
| 939 |
+
*
|
| 940 |
+
* Convert the double-precision floating-point value \p x to a
|
| 941 |
+
* signed integer value in round-down (to negative infinity) mode.
|
| 942 |
+
* \return Returns converted value.
|
| 943 |
+
*/
|
| 944 |
+
extern __device__ __device_builtin__ int __double2int_rd(double x);
|
| 945 |
+
/**
|
| 946 |
+
* \ingroup CUDA_MATH_INTRINSIC_CAST
|
| 947 |
+
* \brief Convert a double to an unsigned int in round-to-nearest-even mode.
|
| 948 |
+
*
|
| 949 |
+
* Convert the double-precision floating-point value \p x to an
|
| 950 |
+
* unsigned integer value in round-to-nearest-even mode.
|
| 951 |
+
* \return Returns converted value.
|
| 952 |
+
*/
|
| 953 |
+
extern __device__ __device_builtin__ unsigned int __double2uint_rn(double x);
|
| 954 |
+
/**
|
| 955 |
+
* \ingroup CUDA_MATH_INTRINSIC_CAST
|
| 956 |
+
* \brief Convert a double to an unsigned int in round-up mode.
|
| 957 |
+
*
|
| 958 |
+
* Convert the double-precision floating-point value \p x to an
|
| 959 |
+
* unsigned integer value in round-up (to positive infinity) mode.
|
| 960 |
+
* \return Returns converted value.
|
| 961 |
+
*/
|
| 962 |
+
extern __device__ __device_builtin__ unsigned int __double2uint_ru(double x);
|
| 963 |
+
/**
|
| 964 |
+
* \ingroup CUDA_MATH_INTRINSIC_CAST
|
| 965 |
+
* \brief Convert a double to an unsigned int in round-down mode.
|
| 966 |
+
*
|
| 967 |
+
* Convert the double-precision floating-point value \p x to an
|
| 968 |
+
* unsigned integer value in round-down (to negative infinity) mode.
|
| 969 |
+
* \return Returns converted value.
|
| 970 |
+
*/
|
| 971 |
+
extern __device__ __device_builtin__ unsigned int __double2uint_rd(double x);
|
| 972 |
+
/**
|
| 973 |
+
* \ingroup CUDA_MATH_INTRINSIC_CAST
|
| 974 |
+
* \brief Convert a double to a signed 64-bit int in round-to-nearest-even mode.
|
| 975 |
+
*
|
| 976 |
+
* Convert the double-precision floating-point value \p x to a
|
| 977 |
+
* signed 64-bit integer value in round-to-nearest-even mode.
|
| 978 |
+
* \return Returns converted value.
|
| 979 |
+
*/
|
| 980 |
+
extern __device__ __device_builtin__ long long int __double2ll_rn(double x);
|
| 981 |
+
/**
|
| 982 |
+
* \ingroup CUDA_MATH_INTRINSIC_CAST
|
| 983 |
+
* \brief Convert a double to a signed 64-bit int in round-up mode.
|
| 984 |
+
*
|
| 985 |
+
* Convert the double-precision floating-point value \p x to a
|
| 986 |
+
* signed 64-bit integer value in round-up (to positive infinity) mode.
|
| 987 |
+
* \return Returns converted value.
|
| 988 |
+
*/
|
| 989 |
+
extern __device__ __device_builtin__ long long int __double2ll_ru(double x);
|
| 990 |
+
/**
|
| 991 |
+
* \ingroup CUDA_MATH_INTRINSIC_CAST
|
| 992 |
+
* \brief Convert a double to a signed 64-bit int in round-down mode.
|
| 993 |
+
*
|
| 994 |
+
* Convert the double-precision floating-point value \p x to a
|
| 995 |
+
* signed 64-bit integer value in round-down (to negative infinity) mode.
|
| 996 |
+
* \return Returns converted value.
|
| 997 |
+
*/
|
| 998 |
+
extern __device__ __device_builtin__ long long int __double2ll_rd(double x);
|
| 999 |
+
/**
|
| 1000 |
+
* \ingroup CUDA_MATH_INTRINSIC_CAST
|
| 1001 |
+
* \brief Convert a double to an unsigned 64-bit int in round-to-nearest-even mode.
|
| 1002 |
+
*
|
| 1003 |
+
* Convert the double-precision floating-point value \p x to an
|
| 1004 |
+
* unsigned 64-bit integer value in round-to-nearest-even mode.
|
| 1005 |
+
* \return Returns converted value.
|
| 1006 |
+
*/
|
| 1007 |
+
extern __device__ __device_builtin__ unsigned long long int __double2ull_rn(double x);
|
| 1008 |
+
/**
|
| 1009 |
+
* \ingroup CUDA_MATH_INTRINSIC_CAST
|
| 1010 |
+
* \brief Convert a double to an unsigned 64-bit int in round-up mode.
|
| 1011 |
+
*
|
| 1012 |
+
* Convert the double-precision floating-point value \p x to an
|
| 1013 |
+
* unsigned 64-bit integer value in round-up (to positive infinity) mode.
|
| 1014 |
+
* \return Returns converted value.
|
| 1015 |
+
*/
|
| 1016 |
+
extern __device__ __device_builtin__ unsigned long long int __double2ull_ru(double x);
|
| 1017 |
+
/**
|
| 1018 |
+
* \ingroup CUDA_MATH_INTRINSIC_CAST
|
| 1019 |
+
* \brief Convert a double to an unsigned 64-bit int in round-down mode.
|
| 1020 |
+
*
|
| 1021 |
+
* Convert the double-precision floating-point value \p x to an
|
| 1022 |
+
* unsigned 64-bit integer value in round-down (to negative infinity) mode.
|
| 1023 |
+
* \return Returns converted value.
|
| 1024 |
+
*/
|
| 1025 |
+
extern __device__ __device_builtin__ unsigned long long int __double2ull_rd(double x);
|
| 1026 |
+
/**
|
| 1027 |
+
* \ingroup CUDA_MATH_INTRINSIC_CAST
|
| 1028 |
+
* \brief Convert a signed int to a double.
|
| 1029 |
+
*
|
| 1030 |
+
* Convert the signed integer value \p x to a double-precision floating-point value.
|
| 1031 |
+
* \return Returns converted value.
|
| 1032 |
+
*/
|
| 1033 |
+
extern __device__ __device_builtin__ double __int2double_rn(int x);
|
| 1034 |
+
/**
|
| 1035 |
+
* \ingroup CUDA_MATH_INTRINSIC_CAST
|
| 1036 |
+
* \brief Convert an unsigned int to a double.
|
| 1037 |
+
*
|
| 1038 |
+
* Convert the unsigned integer value \p x to a double-precision floating-point value.
|
| 1039 |
+
* \return Returns converted value.
|
| 1040 |
+
*/
|
| 1041 |
+
extern __device__ __device_builtin__ double __uint2double_rn(unsigned int x);
|
| 1042 |
+
/**
|
| 1043 |
+
* \ingroup CUDA_MATH_INTRINSIC_CAST
|
| 1044 |
+
* \brief Convert a signed 64-bit int to a double in round-to-nearest-even mode.
|
| 1045 |
+
*
|
| 1046 |
+
* Convert the signed 64-bit integer value \p x to a double-precision floating-point
|
| 1047 |
+
* value in round-to-nearest-even mode.
|
| 1048 |
+
* \return Returns converted value.
|
| 1049 |
+
*/
|
| 1050 |
+
extern __device__ __device_builtin__ double __ll2double_rn(long long int x);
|
| 1051 |
+
/**
|
| 1052 |
+
* \ingroup CUDA_MATH_INTRINSIC_CAST
|
| 1053 |
+
* \brief Convert a signed 64-bit int to a double in round-towards-zero mode.
|
| 1054 |
+
*
|
| 1055 |
+
* Convert the signed 64-bit integer value \p x to a double-precision floating-point
|
| 1056 |
+
* value in round-towards-zero mode.
|
| 1057 |
+
* \return Returns converted value.
|
| 1058 |
+
*/
|
| 1059 |
+
extern __device__ __device_builtin__ double __ll2double_rz(long long int x);
|
| 1060 |
+
/**
|
| 1061 |
+
* \ingroup CUDA_MATH_INTRINSIC_CAST
|
| 1062 |
+
* \brief Convert a signed 64-bit int to a double in round-up mode.
|
| 1063 |
+
*
|
| 1064 |
+
* Convert the signed 64-bit integer value \p x to a double-precision floating-point
|
| 1065 |
+
* value in round-up (to positive infinity) mode.
|
| 1066 |
+
* \return Returns converted value.
|
| 1067 |
+
*/
|
| 1068 |
+
extern __device__ __device_builtin__ double __ll2double_ru(long long int x);
|
| 1069 |
+
/**
|
| 1070 |
+
* \ingroup CUDA_MATH_INTRINSIC_CAST
|
| 1071 |
+
* \brief Convert a signed 64-bit int to a double in round-down mode.
|
| 1072 |
+
*
|
| 1073 |
+
* Convert the signed 64-bit integer value \p x to a double-precision floating-point
|
| 1074 |
+
* value in round-down (to negative infinity) mode.
|
| 1075 |
+
* \return Returns converted value.
|
| 1076 |
+
*/
|
| 1077 |
+
extern __device__ __device_builtin__ double __ll2double_rd(long long int x);
|
| 1078 |
+
/**
|
| 1079 |
+
* \ingroup CUDA_MATH_INTRINSIC_CAST
|
| 1080 |
+
* \brief Convert an unsigned 64-bit int to a double in round-to-nearest-even mode.
|
| 1081 |
+
*
|
| 1082 |
+
* Convert the unsigned 64-bit integer value \p x to a double-precision floating-point
|
| 1083 |
+
* value in round-to-nearest-even mode.
|
| 1084 |
+
* \return Returns converted value.
|
| 1085 |
+
*/
|
| 1086 |
+
extern __device__ __device_builtin__ double __ull2double_rn(unsigned long long int x);
|
| 1087 |
+
/**
|
| 1088 |
+
* \ingroup CUDA_MATH_INTRINSIC_CAST
|
| 1089 |
+
* \brief Convert an unsigned 64-bit int to a double in round-towards-zero mode.
|
| 1090 |
+
*
|
| 1091 |
+
* Convert the unsigned 64-bit integer value \p x to a double-precision floating-point
|
| 1092 |
+
* value in round-towards-zero mode.
|
| 1093 |
+
* \return Returns converted value.
|
| 1094 |
+
*/
|
| 1095 |
+
extern __device__ __device_builtin__ double __ull2double_rz(unsigned long long int x);
|
| 1096 |
+
/**
|
| 1097 |
+
* \ingroup CUDA_MATH_INTRINSIC_CAST
|
| 1098 |
+
* \brief Convert an unsigned 64-bit int to a double in round-up mode.
|
| 1099 |
+
*
|
| 1100 |
+
* Convert the unsigned 64-bit integer value \p x to a double-precision floating-point
|
| 1101 |
+
* value in round-up (to positive infinity) mode.
|
| 1102 |
+
* \return Returns converted value.
|
| 1103 |
+
*/
|
| 1104 |
+
extern __device__ __device_builtin__ double __ull2double_ru(unsigned long long int x);
|
| 1105 |
+
/**
|
| 1106 |
+
* \ingroup CUDA_MATH_INTRINSIC_CAST
|
| 1107 |
+
* \brief Convert an unsigned 64-bit int to a double in round-down mode.
|
| 1108 |
+
*
|
| 1109 |
+
* Convert the unsigned 64-bit integer value \p x to a double-precision floating-point
|
| 1110 |
+
* value in round-down (to negative infinity) mode.
|
| 1111 |
+
* \return Returns converted value.
|
| 1112 |
+
*/
|
| 1113 |
+
extern __device__ __device_builtin__ double __ull2double_rd(unsigned long long int x);
|
| 1114 |
+
/**
|
| 1115 |
+
* \ingroup CUDA_MATH_INTRINSIC_CAST
|
| 1116 |
+
* \brief Reinterpret high 32 bits in a double as a signed integer.
|
| 1117 |
+
*
|
| 1118 |
+
* Reinterpret the high 32 bits in the double-precision floating-point value \p x
|
| 1119 |
+
* as a signed integer.
|
| 1120 |
+
* \return Returns reinterpreted value.
|
| 1121 |
+
*/
|
| 1122 |
+
extern __device__ __device_builtin__ int __double2hiint(double x);
|
| 1123 |
+
/**
|
| 1124 |
+
* \ingroup CUDA_MATH_INTRINSIC_CAST
|
| 1125 |
+
* \brief Reinterpret low 32 bits in a double as a signed integer.
|
| 1126 |
+
*
|
| 1127 |
+
* Reinterpret the low 32 bits in the double-precision floating-point value \p x
|
| 1128 |
+
* as a signed integer.
|
| 1129 |
+
* \return Returns reinterpreted value.
|
| 1130 |
+
*/
|
| 1131 |
+
extern __device__ __device_builtin__ int __double2loint(double x);
|
| 1132 |
+
/**
|
| 1133 |
+
* \ingroup CUDA_MATH_INTRINSIC_CAST
|
| 1134 |
+
* \brief Reinterpret high and low 32-bit integer values as a double.
|
| 1135 |
+
*
|
| 1136 |
+
* Reinterpret the integer value of \p hi as the high 32 bits of a
|
| 1137 |
+
* double-precision floating-point value and the integer value of \p lo
|
| 1138 |
+
* as the low 32 bits of the same double-precision floating-point value.
|
| 1139 |
+
* \return Returns reinterpreted value.
|
| 1140 |
+
*/
|
| 1141 |
+
extern __device__ __device_builtin__ double __hiloint2double(int hi, int lo);
|
| 1142 |
+
}
|
| 1143 |
+
|
| 1144 |
+
/*******************************************************************************
|
| 1145 |
+
* *
|
| 1146 |
+
* *
|
| 1147 |
+
* *
|
| 1148 |
+
*******************************************************************************/
|
| 1149 |
+
|
| 1150 |
+
__DEVICE_DOUBLE_FUNCTIONS_DECL__ double fma(double a, double b, double c, enum cudaRoundMode mode);
|
| 1151 |
+
|
| 1152 |
+
#undef EXCLUDE_FROM_RTC
|
| 1153 |
+
|
| 1154 |
+
__DEVICE_DOUBLE_FUNCTIONS_DECL__ double dmul(double a, double b, enum cudaRoundMode mode = cudaRoundNearest);
|
| 1155 |
+
|
| 1156 |
+
__DEVICE_DOUBLE_FUNCTIONS_DECL__ double dadd(double a, double b, enum cudaRoundMode mode = cudaRoundNearest);
|
| 1157 |
+
|
| 1158 |
+
__DEVICE_DOUBLE_FUNCTIONS_DECL__ double dsub(double a, double b, enum cudaRoundMode mode = cudaRoundNearest);
|
| 1159 |
+
|
| 1160 |
+
__DEVICE_DOUBLE_FUNCTIONS_DECL__ int double2int(double a, enum cudaRoundMode mode = cudaRoundZero);
|
| 1161 |
+
|
| 1162 |
+
__DEVICE_DOUBLE_FUNCTIONS_DECL__ unsigned int double2uint(double a, enum cudaRoundMode mode = cudaRoundZero);
|
| 1163 |
+
|
| 1164 |
+
__DEVICE_DOUBLE_FUNCTIONS_DECL__ long long int double2ll(double a, enum cudaRoundMode mode = cudaRoundZero);
|
| 1165 |
+
|
| 1166 |
+
__DEVICE_DOUBLE_FUNCTIONS_DECL__ unsigned long long int double2ull(double a, enum cudaRoundMode mode = cudaRoundZero);
|
| 1167 |
+
|
| 1168 |
+
__DEVICE_DOUBLE_FUNCTIONS_DECL__ double ll2double(long long int a, enum cudaRoundMode mode = cudaRoundNearest);
|
| 1169 |
+
|
| 1170 |
+
__DEVICE_DOUBLE_FUNCTIONS_DECL__ double ull2double(unsigned long long int a, enum cudaRoundMode mode = cudaRoundNearest);
|
| 1171 |
+
|
| 1172 |
+
__DEVICE_DOUBLE_FUNCTIONS_DECL__ double int2double(int a, enum cudaRoundMode mode = cudaRoundNearest);
|
| 1173 |
+
|
| 1174 |
+
__DEVICE_DOUBLE_FUNCTIONS_DECL__ double uint2double(unsigned int a, enum cudaRoundMode mode = cudaRoundNearest);
|
| 1175 |
+
|
| 1176 |
+
__DEVICE_DOUBLE_FUNCTIONS_DECL__ double float2double(float a, enum cudaRoundMode mode = cudaRoundNearest);
|
| 1177 |
+
|
| 1178 |
+
#undef __DEVICE_DOUBLE_FUNCTIONS_DECL__
|
| 1179 |
+
|
| 1180 |
+
|
| 1181 |
+
#endif /* __cplusplus && __CUDACC__ */
|
| 1182 |
+
|
| 1183 |
+
#if !defined(__CUDACC_RTC__)
|
| 1184 |
+
#include "device_double_functions.hpp"
|
| 1185 |
+
#endif /* !__CUDACC_RTC__ */
|
| 1186 |
+
|
| 1187 |
+
#endif /* !__DEVICE_DOUBLE_FUNCTIONS_H__ */
|
| 1188 |
+
|
| 1189 |
+
#if defined(__UNDEF_CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS_DEVICE_DOUBLE_FUNCTIONS_H__)
|
| 1190 |
+
#undef __CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS__
|
| 1191 |
+
#undef __UNDEF_CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS_DEVICE_DOUBLE_FUNCTIONS_H__
|
| 1192 |
+
#endif
|
data/miniconda3/pkgs/cuda-crt-dev_linux-64-12.8.93-h06a4308_3/targets/x86_64-linux/include/crt/device_double_functions.hpp
ADDED
|
@@ -0,0 +1,197 @@
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
* Copyright 1993-2017 NVIDIA Corporation. All rights reserved.
|
| 3 |
+
*
|
| 4 |
+
* NOTICE TO LICENSEE:
|
| 5 |
+
*
|
| 6 |
+
* This source code and/or documentation ("Licensed Deliverables") are
|
| 7 |
+
* subject to NVIDIA intellectual property rights under U.S. and
|
| 8 |
+
* international Copyright laws.
|
| 9 |
+
*
|
| 10 |
+
* These Licensed Deliverables contained herein is PROPRIETARY and
|
| 11 |
+
* CONFIDENTIAL to NVIDIA and is being provided under the terms and
|
| 12 |
+
* conditions of a form of NVIDIA software license agreement by and
|
| 13 |
+
* between NVIDIA and Licensee ("License Agreement") or electronically
|
| 14 |
+
* accepted by Licensee. Notwithstanding any terms or conditions to
|
| 15 |
+
* the contrary in the License Agreement, reproduction or disclosure
|
| 16 |
+
* of the Licensed Deliverables to any third party without the express
|
| 17 |
+
* written consent of NVIDIA is prohibited.
|
| 18 |
+
*
|
| 19 |
+
* NOTWITHSTANDING ANY TERMS OR CONDITIONS TO THE CONTRARY IN THE
|
| 20 |
+
* LICENSE AGREEMENT, NVIDIA MAKES NO REPRESENTATION ABOUT THE
|
| 21 |
+
* SUITABILITY OF THESE LICENSED DELIVERABLES FOR ANY PURPOSE. IT IS
|
| 22 |
+
* PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY OF ANY KIND.
|
| 23 |
+
* NVIDIA DISCLAIMS ALL WARRANTIES WITH REGARD TO THESE LICENSED
|
| 24 |
+
* DELIVERABLES, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY,
|
| 25 |
+
* NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE.
|
| 26 |
+
* NOTWITHSTANDING ANY TERMS OR CONDITIONS TO THE CONTRARY IN THE
|
| 27 |
+
* LICENSE AGREEMENT, IN NO EVENT SHALL NVIDIA BE LIABLE FOR ANY
|
| 28 |
+
* SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, OR ANY
|
| 29 |
+
* DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
|
| 30 |
+
* WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
|
| 31 |
+
* ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
|
| 32 |
+
* OF THESE LICENSED DELIVERABLES.
|
| 33 |
+
*
|
| 34 |
+
* U.S. Government End Users. These Licensed Deliverables are a
|
| 35 |
+
* "commercial item" as that term is defined at 48 C.F.R. 2.101 (OCT
|
| 36 |
+
* 1995), consisting of "commercial computer software" and "commercial
|
| 37 |
+
* computer software documentation" as such terms are used in 48
|
| 38 |
+
* C.F.R. 12.212 (SEPT 1995) and is provided to the U.S. Government
|
| 39 |
+
* only as a commercial end item. Consistent with 48 C.F.R.12.212 and
|
| 40 |
+
* 48 C.F.R. 227.7202-1 through 227.7202-4 (JUNE 1995), all
|
| 41 |
+
* U.S. Government End Users acquire the Licensed Deliverables with
|
| 42 |
+
* only those rights set forth herein.
|
| 43 |
+
*
|
| 44 |
+
* Any use of the Licensed Deliverables in individual and commercial
|
| 45 |
+
* software must include, in the user documentation and internal
|
| 46 |
+
* comments to the code, the above Disclaimer and U.S. Government End
|
| 47 |
+
* Users Notice.
|
| 48 |
+
*/
|
| 49 |
+
|
| 50 |
+
#if !defined(__CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS__)
|
| 51 |
+
#if defined(_MSC_VER)
|
| 52 |
+
#pragma message("crt/device_double_functions.hpp is an internal header file and must not be used directly. Please use cuda_runtime_api.h or cuda_runtime.h instead.")
|
| 53 |
+
#else
|
| 54 |
+
#warning "crt/device_double_functions.hpp is an internal header file and must not be used directly. Please use cuda_runtime_api.h or cuda_runtime.h instead."
|
| 55 |
+
#endif
|
| 56 |
+
#define __CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS__
|
| 57 |
+
#define __UNDEF_CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS_DEVICE_DOUBLE_FUNCTIONS_HPP__
|
| 58 |
+
#endif
|
| 59 |
+
|
| 60 |
+
#if !defined(__DEVICE_DOUBLE_FUNCTIONS_HPP__)
|
| 61 |
+
#define __DEVICE_DOUBLE_FUNCTIONS_HPP__
|
| 62 |
+
|
| 63 |
+
/*******************************************************************************
|
| 64 |
+
* *
|
| 65 |
+
* *
|
| 66 |
+
* *
|
| 67 |
+
*******************************************************************************/
|
| 68 |
+
|
| 69 |
+
#if defined(__cplusplus) && defined(__CUDACC__)
|
| 70 |
+
|
| 71 |
+
/*******************************************************************************
|
| 72 |
+
* *
|
| 73 |
+
* *
|
| 74 |
+
* *
|
| 75 |
+
*******************************************************************************/
|
| 76 |
+
|
| 77 |
+
#if defined(__CUDACC_RTC__)
|
| 78 |
+
#define __DEVICE_DOUBLE_FUNCTIONS_DECL__ __device__
|
| 79 |
+
#else
|
| 80 |
+
#define __DEVICE_DOUBLE_FUNCTIONS_DECL__ static __inline__ __device__
|
| 81 |
+
#endif /* __CUDACC_RTC__ */
|
| 82 |
+
|
| 83 |
+
#include "builtin_types.h"
|
| 84 |
+
#include "device_types.h"
|
| 85 |
+
#include "host_defines.h"
|
| 86 |
+
|
| 87 |
+
/*******************************************************************************
|
| 88 |
+
* *
|
| 89 |
+
* *
|
| 90 |
+
* *
|
| 91 |
+
*******************************************************************************/
|
| 92 |
+
|
| 93 |
+
__DEVICE_DOUBLE_FUNCTIONS_DECL__ double fma(double a, double b, double c, enum cudaRoundMode mode)
|
| 94 |
+
{
|
| 95 |
+
return mode == cudaRoundZero ? __fma_rz(a, b, c) :
|
| 96 |
+
mode == cudaRoundPosInf ? __fma_ru(a, b, c) :
|
| 97 |
+
mode == cudaRoundMinInf ? __fma_rd(a, b, c) :
|
| 98 |
+
__fma_rn(a, b, c);
|
| 99 |
+
}
|
| 100 |
+
|
| 101 |
+
__DEVICE_DOUBLE_FUNCTIONS_DECL__ double dmul(double a, double b, enum cudaRoundMode mode)
|
| 102 |
+
{
|
| 103 |
+
return mode == cudaRoundZero ? __dmul_rz(a, b) :
|
| 104 |
+
mode == cudaRoundPosInf ? __dmul_ru(a, b) :
|
| 105 |
+
mode == cudaRoundMinInf ? __dmul_rd(a, b) :
|
| 106 |
+
__dmul_rn(a, b);
|
| 107 |
+
}
|
| 108 |
+
|
| 109 |
+
__DEVICE_DOUBLE_FUNCTIONS_DECL__ double dadd(double a, double b, enum cudaRoundMode mode)
|
| 110 |
+
{
|
| 111 |
+
return mode == cudaRoundZero ? __dadd_rz(a, b) :
|
| 112 |
+
mode == cudaRoundPosInf ? __dadd_ru(a, b) :
|
| 113 |
+
mode == cudaRoundMinInf ? __dadd_rd(a, b) :
|
| 114 |
+
__dadd_rn(a, b);
|
| 115 |
+
}
|
| 116 |
+
|
| 117 |
+
__DEVICE_DOUBLE_FUNCTIONS_DECL__ double dsub(double a, double b, enum cudaRoundMode mode)
|
| 118 |
+
{
|
| 119 |
+
return mode == cudaRoundZero ? __dsub_rz(a, b) :
|
| 120 |
+
mode == cudaRoundPosInf ? __dsub_ru(a, b) :
|
| 121 |
+
mode == cudaRoundMinInf ? __dsub_rd(a, b) :
|
| 122 |
+
__dsub_rn(a, b);
|
| 123 |
+
}
|
| 124 |
+
|
| 125 |
+
__DEVICE_DOUBLE_FUNCTIONS_DECL__ int double2int(double a, enum cudaRoundMode mode)
|
| 126 |
+
{
|
| 127 |
+
return mode == cudaRoundNearest ? __double2int_rn(a) :
|
| 128 |
+
mode == cudaRoundPosInf ? __double2int_ru(a) :
|
| 129 |
+
mode == cudaRoundMinInf ? __double2int_rd(a) :
|
| 130 |
+
__double2int_rz(a);
|
| 131 |
+
}
|
| 132 |
+
|
| 133 |
+
__DEVICE_DOUBLE_FUNCTIONS_DECL__ unsigned int double2uint(double a, enum cudaRoundMode mode)
|
| 134 |
+
{
|
| 135 |
+
return mode == cudaRoundNearest ? __double2uint_rn(a) :
|
| 136 |
+
mode == cudaRoundPosInf ? __double2uint_ru(a) :
|
| 137 |
+
mode == cudaRoundMinInf ? __double2uint_rd(a) :
|
| 138 |
+
__double2uint_rz(a);
|
| 139 |
+
}
|
| 140 |
+
|
| 141 |
+
__DEVICE_DOUBLE_FUNCTIONS_DECL__ long long int double2ll(double a, enum cudaRoundMode mode)
|
| 142 |
+
{
|
| 143 |
+
return mode == cudaRoundNearest ? __double2ll_rn(a) :
|
| 144 |
+
mode == cudaRoundPosInf ? __double2ll_ru(a) :
|
| 145 |
+
mode == cudaRoundMinInf ? __double2ll_rd(a) :
|
| 146 |
+
__double2ll_rz(a);
|
| 147 |
+
}
|
| 148 |
+
|
| 149 |
+
__DEVICE_DOUBLE_FUNCTIONS_DECL__ unsigned long long int double2ull(double a, enum cudaRoundMode mode)
|
| 150 |
+
{
|
| 151 |
+
return mode == cudaRoundNearest ? __double2ull_rn(a) :
|
| 152 |
+
mode == cudaRoundPosInf ? __double2ull_ru(a) :
|
| 153 |
+
mode == cudaRoundMinInf ? __double2ull_rd(a) :
|
| 154 |
+
__double2ull_rz(a);
|
| 155 |
+
}
|
| 156 |
+
|
| 157 |
+
__DEVICE_DOUBLE_FUNCTIONS_DECL__ double ll2double(long long int a, enum cudaRoundMode mode)
|
| 158 |
+
{
|
| 159 |
+
return mode == cudaRoundZero ? __ll2double_rz(a) :
|
| 160 |
+
mode == cudaRoundPosInf ? __ll2double_ru(a) :
|
| 161 |
+
mode == cudaRoundMinInf ? __ll2double_rd(a) :
|
| 162 |
+
__ll2double_rn(a);
|
| 163 |
+
}
|
| 164 |
+
|
| 165 |
+
__DEVICE_DOUBLE_FUNCTIONS_DECL__ double ull2double(unsigned long long int a, enum cudaRoundMode mode)
|
| 166 |
+
{
|
| 167 |
+
return mode == cudaRoundZero ? __ull2double_rz(a) :
|
| 168 |
+
mode == cudaRoundPosInf ? __ull2double_ru(a) :
|
| 169 |
+
mode == cudaRoundMinInf ? __ull2double_rd(a) :
|
| 170 |
+
__ull2double_rn(a);
|
| 171 |
+
}
|
| 172 |
+
|
| 173 |
+
__DEVICE_DOUBLE_FUNCTIONS_DECL__ double int2double(int a, enum cudaRoundMode mode)
|
| 174 |
+
{
|
| 175 |
+
return (double)a;
|
| 176 |
+
}
|
| 177 |
+
|
| 178 |
+
__DEVICE_DOUBLE_FUNCTIONS_DECL__ double uint2double(unsigned int a, enum cudaRoundMode mode)
|
| 179 |
+
{
|
| 180 |
+
return (double)a;
|
| 181 |
+
}
|
| 182 |
+
|
| 183 |
+
__DEVICE_DOUBLE_FUNCTIONS_DECL__ double float2double(float a, enum cudaRoundMode mode)
|
| 184 |
+
{
|
| 185 |
+
return (double)a;
|
| 186 |
+
}
|
| 187 |
+
|
| 188 |
+
#undef __DEVICE_DOUBLE_FUNCTIONS_DECL__
|
| 189 |
+
|
| 190 |
+
#endif /* __cplusplus && __CUDACC__ */
|
| 191 |
+
|
| 192 |
+
#endif /* !__DEVICE_DOUBLE_FUNCTIONS_HPP__ */
|
| 193 |
+
|
| 194 |
+
#if defined(__UNDEF_CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS_DEVICE_DOUBLE_FUNCTIONS_HPP__)
|
| 195 |
+
#undef __CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS__
|
| 196 |
+
#undef __UNDEF_CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS_DEVICE_DOUBLE_FUNCTIONS_HPP__
|
| 197 |
+
#endif
|
data/miniconda3/pkgs/cuda-crt-dev_linux-64-12.8.93-h06a4308_3/targets/x86_64-linux/include/crt/device_fp128_functions.h
ADDED
|
@@ -0,0 +1,1217 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
* Copyright 2024 NVIDIA Corporation. All rights reserved.
|
| 3 |
+
*
|
| 4 |
+
* NOTICE TO LICENSEE:
|
| 5 |
+
*
|
| 6 |
+
* This source code and/or documentation ("Licensed Deliverables") are
|
| 7 |
+
* subject to NVIDIA intellectual property rights under U.S. and
|
| 8 |
+
* international Copyright laws.
|
| 9 |
+
*
|
| 10 |
+
* These Licensed Deliverables contained herein is PROPRIETARY and
|
| 11 |
+
* CONFIDENTIAL to NVIDIA and is being provided under the terms and
|
| 12 |
+
* conditions of a form of NVIDIA software license agreement by and
|
| 13 |
+
* between NVIDIA and Licensee ("License Agreement") or electronically
|
| 14 |
+
* accepted by Licensee. Notwithstanding any terms or conditions to
|
| 15 |
+
* the contrary in the License Agreement, reproduction or disclosure
|
| 16 |
+
* of the Licensed Deliverables to any third party without the express
|
| 17 |
+
* written consent of NVIDIA is prohibited.
|
| 18 |
+
*
|
| 19 |
+
* NOTWITHSTANDING ANY TERMS OR CONDITIONS TO THE CONTRARY IN THE
|
| 20 |
+
* LICENSE AGREEMENT, NVIDIA MAKES NO REPRESENTATION ABOUT THE
|
| 21 |
+
* SUITABILITY OF THESE LICENSED DELIVERABLES FOR ANY PURPOSE. IT IS
|
| 22 |
+
* PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY OF ANY KIND.
|
| 23 |
+
* NVIDIA DISCLAIMS ALL WARRANTIES WITH REGARD TO THESE LICENSED
|
| 24 |
+
* DELIVERABLES, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY,
|
| 25 |
+
* NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE.
|
| 26 |
+
* NOTWITHSTANDING ANY TERMS OR CONDITIONS TO THE CONTRARY IN THE
|
| 27 |
+
* LICENSE AGREEMENT, IN NO EVENT SHALL NVIDIA BE LIABLE FOR ANY
|
| 28 |
+
* SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, OR ANY
|
| 29 |
+
* DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
|
| 30 |
+
* WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
|
| 31 |
+
* ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
|
| 32 |
+
* OF THESE LICENSED DELIVERABLES.
|
| 33 |
+
*
|
| 34 |
+
* U.S. Government End Users. These Licensed Deliverables are a
|
| 35 |
+
* "commercial item" as that term is defined at 48 C.F.R. 2.101 (OCT
|
| 36 |
+
* 1995), consisting of "commercial computer software" and "commercial
|
| 37 |
+
* computer software documentation" as such terms are used in 48
|
| 38 |
+
* C.F.R. 12.212 (SEPT 1995) and is provided to the U.S. Government
|
| 39 |
+
* only as a commercial end item. Consistent with 48 C.F.R.12.212 and
|
| 40 |
+
* 48 C.F.R. 227.7202-1 through 227.7202-4 (JUNE 1995), all
|
| 41 |
+
* U.S. Government End Users acquire the Licensed Deliverables with
|
| 42 |
+
* only those rights set forth herein.
|
| 43 |
+
*
|
| 44 |
+
* Any use of the Licensed Deliverables in individual and commercial
|
| 45 |
+
* software must include, in the user documentation and internal
|
| 46 |
+
* comments to the code, the above Disclaimer and U.S. Government End
|
| 47 |
+
* Users Notice.
|
| 48 |
+
*/
|
| 49 |
+
|
| 50 |
+
// to easily switch off fp128 device functions if needed
|
| 51 |
+
#ifndef __NV_DISABLE_DEVICE_FP128_FUNCTIONS__
|
| 52 |
+
|
| 53 |
+
#if !defined(__DEVICE_FP128_FUNCTIONS_H__)
|
| 54 |
+
#define __DEVICE_FP128_FUNCTIONS_H__
|
| 55 |
+
|
| 56 |
+
/*******************************************************************************
|
| 57 |
+
* *
|
| 58 |
+
* *
|
| 59 |
+
* *
|
| 60 |
+
*******************************************************************************/
|
| 61 |
+
|
| 62 |
+
#if defined(__cplusplus) && defined(__CUDACC__)
|
| 63 |
+
|
| 64 |
+
/*******************************************************************************
|
| 65 |
+
* *
|
| 66 |
+
* *
|
| 67 |
+
* *
|
| 68 |
+
*******************************************************************************/
|
| 69 |
+
|
| 70 |
+
#include "builtin_types.h"
|
| 71 |
+
#include "device_types.h"
|
| 72 |
+
|
| 73 |
+
#if !defined(__CUDA_ARCH__) && !defined(_NVHPC_CUDA)
|
| 74 |
+
#define __DEF_IF_HOST { }
|
| 75 |
+
#define __INLINE_IF_HOST__ __inline__
|
| 76 |
+
#else /* !__CUDA_ARCH__ */
|
| 77 |
+
#define __DEF_IF_HOST ;
|
| 78 |
+
#define __INLINE_IF_HOST__
|
| 79 |
+
#endif /* __CUDA_ARCH__ */
|
| 80 |
+
|
| 81 |
+
#define __DEVICE_FP128_FUNCTIONS_DECL__ __device__ __cudart_builtin__ __INLINE_IF_HOST__
|
| 82 |
+
|
| 83 |
+
/*******************************************************************************
|
| 84 |
+
* *
|
| 85 |
+
* Support for __float128 on: *
|
| 86 |
+
* - NVRTC on Linux *
|
| 87 |
+
* - GCC version 4.1 or later on x86_64/amd64 *
|
| 88 |
+
* - Clang version 3.9 or later on x86_64/amd64 *
|
| 89 |
+
* - NVHPC version 21.1 or later on x86_64/amd64 *
|
| 90 |
+
* *
|
| 91 |
+
*******************************************************************************/
|
| 92 |
+
#if defined(__CUDACC_RTC__)
|
| 93 |
+
#if !_WIN64
|
| 94 |
+
#define __FLOAT128_CPP_SPELLING_ENABLED__
|
| 95 |
+
#endif
|
| 96 |
+
#else /* !__CUDACC_RTC__ */
|
| 97 |
+
|
| 98 |
+
#if (defined __NVCOMPILER_MAJOR__)
|
| 99 |
+
#if (defined(__x86_64__) || defined(__amd64__)) && \
|
| 100 |
+
((__NVCOMPILER_MAJOR__ > 21) || \
|
| 101 |
+
(__NVCOMPILER_MAJOR__ == 21 && __NVCOMPILER_MINOR__ >= 1))
|
| 102 |
+
#define __FLOAT128_CPP_SPELLING_ENABLED__
|
| 103 |
+
#endif
|
| 104 |
+
#elif defined(__clang__)
|
| 105 |
+
#if (defined(__x86_64__) || defined(__amd64__)) && \
|
| 106 |
+
((__clang_major__ > 3) || \
|
| 107 |
+
(__clang_major__ == 3 && __clang_minor__ >= 9))
|
| 108 |
+
#define __FLOAT128_CPP_SPELLING_ENABLED__
|
| 109 |
+
#endif
|
| 110 |
+
#elif defined(__GNUC__)
|
| 111 |
+
// check gcc version if no other host compiler is used
|
| 112 |
+
#if (defined(__x86_64__) || defined(__amd64__)) && \
|
| 113 |
+
((__GNUC__ > 4) || \
|
| 114 |
+
(__GNUC__ == 4 && __GNUC_MINOR__ >= 1))
|
| 115 |
+
#define __FLOAT128_CPP_SPELLING_ENABLED__
|
| 116 |
+
#endif
|
| 117 |
+
#endif /* (defined __NVCOMPILER_MAJOR__) */
|
| 118 |
+
|
| 119 |
+
#endif /* !__CUDACC_RTC__ */
|
| 120 |
+
|
| 121 |
+
/*******************************************************************************
|
| 122 |
+
* *
|
| 123 |
+
* Support for _Float128 on: *
|
| 124 |
+
* - GCC version 13.1 or later on x86_64/amd64/aarch64 *
|
| 125 |
+
* *
|
| 126 |
+
*******************************************************************************/
|
| 127 |
+
#if defined(__GNUC__) && !defined(__clang__) && !defined(__NVCOMPILER_MAJOR__)
|
| 128 |
+
// check gcc version if no other host compiler is used
|
| 129 |
+
#if (defined(__x86_64__) || defined(__amd64__) || defined(__aarch64__)) && \
|
| 130 |
+
((__GNUC__ > 13) || \
|
| 131 |
+
(__GNUC__ == 13 && __GNUC_MINOR__ >= 1))
|
| 132 |
+
#define __FLOAT128_C_SPELLING_ENABLED__
|
| 133 |
+
#endif
|
| 134 |
+
#endif /* defined(__GNUC__) && !defined(__clang__) && !defined(__NVCOMPILER_MAJOR__) */
|
| 135 |
+
|
| 136 |
+
/**
|
| 137 |
+
* \defgroup CUDA_MATH_QUAD FP128 Quad Precision Mathematical Functions
|
| 138 |
+
* This section describes quad precision mathematical functions.
|
| 139 |
+
* To use these functions, include the header file \p device_fp128_functions.h in your program.
|
| 140 |
+
*
|
| 141 |
+
* Functions declared here have \p __nv_fp128_ prefix to distinguish them
|
| 142 |
+
* from other global namespace symbols.
|
| 143 |
+
*
|
| 144 |
+
* Note that FP128 CUDA Math functions are only available to device programs
|
| 145 |
+
* on platforms where host compiler supports the basic quad precision datatype
|
| 146 |
+
* \p __float128 or \p _Float128.
|
| 147 |
+
*
|
| 148 |
+
* Every FP128 CUDA Math function name is overloaded to support either of these
|
| 149 |
+
* host-compiler-specific types, whenever the types are available. See for example:
|
| 150 |
+
* \code
|
| 151 |
+
* #ifdef __FLOAT128_CPP_SPELLING_ENABLED__
|
| 152 |
+
* __float128 __nv_fp128_sqrt(__float128 x);
|
| 153 |
+
* #endif
|
| 154 |
+
* #ifdef __FLOAT128_C_SPELLING_ENABLED__
|
| 155 |
+
* _Float128 __nv_fp128_sqrt(_Float128 x);
|
| 156 |
+
* #endif
|
| 157 |
+
* \endcode
|
| 158 |
+
*
|
| 159 |
+
* \note_fp128_target_arch
|
| 160 |
+
*/
|
| 161 |
+
|
| 162 |
+
#ifdef __FLOAT128_CPP_SPELLING_ENABLED__
|
| 163 |
+
/**
|
| 164 |
+
* \ingroup CUDA_MATH_QUAD
|
| 165 |
+
* \brief Calculate \cuda_math_formula \sqrt{x} \end_cuda_math_formula, the square root of the input argument.
|
| 166 |
+
*
|
| 167 |
+
* \return
|
| 168 |
+
* \cuda_math_formula \sqrt{x} \end_cuda_math_formula.
|
| 169 |
+
* - __nv_fp128_sqrt(
|
| 170 |
+
* \cuda_math_formula \pm 0 \end_cuda_math_formula
|
| 171 |
+
* ) returns
|
| 172 |
+
* \cuda_math_formula \pm 0 \end_cuda_math_formula.
|
| 173 |
+
* - __nv_fp128_sqrt(
|
| 174 |
+
* \cuda_math_formula +\infty \end_cuda_math_formula
|
| 175 |
+
* ) returns
|
| 176 |
+
* \cuda_math_formula +\infty \end_cuda_math_formula.
|
| 177 |
+
* - __nv_fp128_sqrt(\p x) returns NaN if \p x is less than 0.
|
| 178 |
+
* - __nv_fp128_sqrt(NaN) returns NaN.
|
| 179 |
+
*
|
| 180 |
+
* \note_accuracy_quad
|
| 181 |
+
* \note_fp128_target_arch
|
| 182 |
+
*/
|
| 183 |
+
__DEVICE_FP128_FUNCTIONS_DECL__ __float128 __nv_fp128_sqrt(__float128 x) __DEF_IF_HOST
|
| 184 |
+
/**
|
| 185 |
+
* \ingroup CUDA_MATH_QUAD
|
| 186 |
+
* \brief Calculate \cuda_math_formula \sin{x} \end_cuda_math_formula, the sine of input argument (measured in radians).
|
| 187 |
+
*
|
| 188 |
+
* \return
|
| 189 |
+
* \cuda_math_formula \sin{x} \end_cuda_math_formula.
|
| 190 |
+
* - __nv_fp128_sin(
|
| 191 |
+
* \cuda_math_formula \pm 0 \end_cuda_math_formula
|
| 192 |
+
* ) returns
|
| 193 |
+
* \cuda_math_formula \pm 0 \end_cuda_math_formula.
|
| 194 |
+
* - __nv_fp128_sin(
|
| 195 |
+
* \cuda_math_formula \pm \infty \end_cuda_math_formula
|
| 196 |
+
* ) returns NaN.
|
| 197 |
+
* - __nv_fp128_sin(NaN) returns NaN.
|
| 198 |
+
*
|
| 199 |
+
* \note_accuracy_quad
|
| 200 |
+
* \note_fp128_target_arch
|
| 201 |
+
*/
|
| 202 |
+
__DEVICE_FP128_FUNCTIONS_DECL__ __float128 __nv_fp128_sin(__float128 x) __DEF_IF_HOST
|
| 203 |
+
/**
|
| 204 |
+
* \ingroup CUDA_MATH_QUAD
|
| 205 |
+
* \brief Calculate \cuda_math_formula \cos{x} \end_cuda_math_formula, the cosine of input argument (measured in radians).
|
| 206 |
+
*
|
| 207 |
+
* \return
|
| 208 |
+
* \cuda_math_formula \cos{x} \end_cuda_math_formula.
|
| 209 |
+
* - __nv_fp128_cos(
|
| 210 |
+
* \cuda_math_formula \pm 0 \end_cuda_math_formula
|
| 211 |
+
* ) returns
|
| 212 |
+
* \cuda_math_formula 1 \end_cuda_math_formula.
|
| 213 |
+
* - __nv_fp128_cos(
|
| 214 |
+
* \cuda_math_formula \pm \infty \end_cuda_math_formula
|
| 215 |
+
* ) returns NaN.
|
| 216 |
+
* - __nv_fp128_cos(NaN) returns NaN.
|
| 217 |
+
*
|
| 218 |
+
* \note_accuracy_quad
|
| 219 |
+
* \note_fp128_target_arch
|
| 220 |
+
*/
|
| 221 |
+
__DEVICE_FP128_FUNCTIONS_DECL__ __float128 __nv_fp128_cos(__float128 x) __DEF_IF_HOST
|
| 222 |
+
/**
|
| 223 |
+
* \ingroup CUDA_MATH_QUAD
|
| 224 |
+
* \brief Calculate \cuda_math_formula \tan{x} \end_cuda_math_formula, the tangent of input argument (measured in radians).
|
| 225 |
+
*
|
| 226 |
+
* \return
|
| 227 |
+
* \cuda_math_formula \tan{x} \end_cuda_math_formula.
|
| 228 |
+
* - __nv_fp128_tan(
|
| 229 |
+
* \cuda_math_formula \pm 0 \end_cuda_math_formula
|
| 230 |
+
* ) returns
|
| 231 |
+
* \cuda_math_formula \pm 0 \end_cuda_math_formula.
|
| 232 |
+
* - __nv_fp128_tan(
|
| 233 |
+
* \cuda_math_formula \pm \infty \end_cuda_math_formula
|
| 234 |
+
* ) returns NaN.
|
| 235 |
+
* - __nv_fp128_tan(NaN) returns NaN.
|
| 236 |
+
*
|
| 237 |
+
* \note_accuracy_quad
|
| 238 |
+
* \note_fp128_target_arch
|
| 239 |
+
*/
|
| 240 |
+
__DEVICE_FP128_FUNCTIONS_DECL__ __float128 __nv_fp128_tan(__float128 x) __DEF_IF_HOST
|
| 241 |
+
/**
|
| 242 |
+
* \ingroup CUDA_MATH_QUAD
|
| 243 |
+
* \brief Calculate \cuda_math_formula \sin^{-1}{x} \end_cuda_math_formula, the arc sine of input argument.
|
| 244 |
+
*
|
| 245 |
+
* \return
|
| 246 |
+
* The principal value of the arc sine of the input argument \p x.
|
| 247 |
+
* Result will be in radians, in the interval [-
|
| 248 |
+
* \cuda_math_formula \pi/2 \end_cuda_math_formula
|
| 249 |
+
* , +
|
| 250 |
+
* \cuda_math_formula \pi/2 \end_cuda_math_formula
|
| 251 |
+
* ] for \p x inside [-1, +1].
|
| 252 |
+
* - __nv_fp128_asin(
|
| 253 |
+
* \cuda_math_formula \pm 0 \end_cuda_math_formula
|
| 254 |
+
* ) returns
|
| 255 |
+
* \cuda_math_formula \pm 0 \end_cuda_math_formula.
|
| 256 |
+
* - __nv_fp128_asin(\p x) returns NaN for \p x outside [-1, +1].
|
| 257 |
+
* - __nv_fp128_asin(NaN) returns NaN.
|
| 258 |
+
*
|
| 259 |
+
* \note_accuracy_quad
|
| 260 |
+
* \note_fp128_target_arch
|
| 261 |
+
*/
|
| 262 |
+
__DEVICE_FP128_FUNCTIONS_DECL__ __float128 __nv_fp128_asin(__float128 x) __DEF_IF_HOST
|
| 263 |
+
/**
|
| 264 |
+
* \ingroup CUDA_MATH_QUAD
|
| 265 |
+
* \brief Calculate \cuda_math_formula \cos^{-1}{x} \end_cuda_math_formula, the arc cosine of input argument.
|
| 266 |
+
*
|
| 267 |
+
* \return
|
| 268 |
+
* The principal value of the arc cosine of the input argument \p x.
|
| 269 |
+
* Result will be in radians, in the interval [0,
|
| 270 |
+
* \cuda_math_formula \pi \end_cuda_math_formula
|
| 271 |
+
* ] for \p x inside [-1, +1].
|
| 272 |
+
* - __nv_fp128_acos(1) returns +0.
|
| 273 |
+
* - __nv_fp128_acos(\p x) returns NaN for \p x outside [-1, +1].
|
| 274 |
+
* - __nv_fp128_acos(NaN) returns NaN.
|
| 275 |
+
*
|
| 276 |
+
* \note_accuracy_quad
|
| 277 |
+
* \note_fp128_target_arch
|
| 278 |
+
*/
|
| 279 |
+
__DEVICE_FP128_FUNCTIONS_DECL__ __float128 __nv_fp128_acos(__float128 x) __DEF_IF_HOST
|
| 280 |
+
/**
|
| 281 |
+
* \ingroup CUDA_MATH_QUAD
|
| 282 |
+
* \brief Calculate \cuda_math_formula \tan^{-1}{x} \end_cuda_math_formula, the arc tangent of input argument.
|
| 283 |
+
*
|
| 284 |
+
* \return
|
| 285 |
+
* The principal value of the arc tangent of the input argument \p x.
|
| 286 |
+
* Result will be in radians, in the interval [-
|
| 287 |
+
* \cuda_math_formula \pi/2 \end_cuda_math_formula
|
| 288 |
+
* , +
|
| 289 |
+
* \cuda_math_formula \pi/2 \end_cuda_math_formula
|
| 290 |
+
* ].
|
| 291 |
+
* - __nv_fp128_atan(
|
| 292 |
+
* \cuda_math_formula \pm 0 \end_cuda_math_formula
|
| 293 |
+
* ) returns
|
| 294 |
+
* \cuda_math_formula \pm 0 \end_cuda_math_formula.
|
| 295 |
+
* - __nv_fp128_atan(
|
| 296 |
+
* \cuda_math_formula \pm \infty \end_cuda_math_formula
|
| 297 |
+
* ) returns
|
| 298 |
+
* \cuda_math_formula \pm \pi \end_cuda_math_formula
|
| 299 |
+
* /2.
|
| 300 |
+
* - __nv_fp128_atan(NaN) returns NaN.
|
| 301 |
+
*
|
| 302 |
+
* \note_accuracy_quad
|
| 303 |
+
* \note_fp128_target_arch
|
| 304 |
+
*/
|
| 305 |
+
__DEVICE_FP128_FUNCTIONS_DECL__ __float128 __nv_fp128_atan(__float128 x) __DEF_IF_HOST
|
| 306 |
+
/**
|
| 307 |
+
* \ingroup CUDA_MATH_QUAD
|
| 308 |
+
* \brief Calculate \cuda_math_formula e^x \end_cuda_math_formula, the base
|
| 309 |
+
* \cuda_math_formula e \end_cuda_math_formula
|
| 310 |
+
* exponential of the input argument.
|
| 311 |
+
*
|
| 312 |
+
* \return
|
| 313 |
+
* - __nv_fp128_exp(
|
| 314 |
+
* \cuda_math_formula \pm 0 \end_cuda_math_formula
|
| 315 |
+
* ) returns 1.
|
| 316 |
+
* - __nv_fp128_exp(
|
| 317 |
+
* \cuda_math_formula -\infty \end_cuda_math_formula
|
| 318 |
+
* ) returns +0.
|
| 319 |
+
* - __nv_fp128_exp(
|
| 320 |
+
* \cuda_math_formula +\infty \end_cuda_math_formula
|
| 321 |
+
* ) returns
|
| 322 |
+
* \cuda_math_formula +\infty \end_cuda_math_formula.
|
| 323 |
+
* - __nv_fp128_exp(NaN) returns NaN.
|
| 324 |
+
*
|
| 325 |
+
* \note_accuracy_quad
|
| 326 |
+
* \note_fp128_target_arch
|
| 327 |
+
*/
|
| 328 |
+
__DEVICE_FP128_FUNCTIONS_DECL__ __float128 __nv_fp128_exp(__float128 x) __DEF_IF_HOST
|
| 329 |
+
/**
|
| 330 |
+
* \ingroup CUDA_MATH_QUAD
|
| 331 |
+
* \brief Calculate \cuda_math_formula 2^x \end_cuda_math_formula, the base 2 exponential of the input argument.
|
| 332 |
+
*
|
| 333 |
+
* \return
|
| 334 |
+
* - __nv_fp128_exp2(
|
| 335 |
+
* \cuda_math_formula \pm 0 \end_cuda_math_formula
|
| 336 |
+
* ) returns 1.
|
| 337 |
+
* - ex__nv_fp128_exp2p2f(
|
| 338 |
+
* \cuda_math_formula -\infty \end_cuda_math_formula
|
| 339 |
+
* ) returns +0.
|
| 340 |
+
* - __nv_fp128_exp2(
|
| 341 |
+
* \cuda_math_formula +\infty \end_cuda_math_formula
|
| 342 |
+
* ) returns
|
| 343 |
+
* \cuda_math_formula +\infty \end_cuda_math_formula.
|
| 344 |
+
* - __nv_fp128_exp2(NaN) returns NaN.
|
| 345 |
+
*
|
| 346 |
+
* \note_accuracy_quad
|
| 347 |
+
* \note_fp128_target_arch
|
| 348 |
+
*/
|
| 349 |
+
__DEVICE_FP128_FUNCTIONS_DECL__ __float128 __nv_fp128_exp2(__float128 x) __DEF_IF_HOST
|
| 350 |
+
/**
|
| 351 |
+
* \ingroup CUDA_MATH_QUAD
|
| 352 |
+
* \brief Calculate \cuda_math_formula 10^x \end_cuda_math_formula, the base 10 exponential of the input argument.
|
| 353 |
+
*
|
| 354 |
+
* \return
|
| 355 |
+
* - __nv_fp128_exp10(
|
| 356 |
+
* \cuda_math_formula \pm 0 \end_cuda_math_formula
|
| 357 |
+
* ) returns 1.
|
| 358 |
+
* - __nv_fp128_exp10(
|
| 359 |
+
* \cuda_math_formula -\infty \end_cuda_math_formula
|
| 360 |
+
* ) returns +0.
|
| 361 |
+
* - __nv_fp128_exp10(
|
| 362 |
+
* \cuda_math_formula +\infty \end_cuda_math_formula
|
| 363 |
+
* ) returns
|
| 364 |
+
* \cuda_math_formula +\infty \end_cuda_math_formula.
|
| 365 |
+
* - __nv_fp128_exp10(NaN) returns NaN.
|
| 366 |
+
*
|
| 367 |
+
* \note_accuracy_quad
|
| 368 |
+
* \note_fp128_target_arch
|
| 369 |
+
*/
|
| 370 |
+
__DEVICE_FP128_FUNCTIONS_DECL__ __float128 __nv_fp128_exp10(__float128 x) __DEF_IF_HOST
|
| 371 |
+
/**
|
| 372 |
+
* \ingroup CUDA_MATH_QUAD
|
| 373 |
+
* \brief Calculate
|
| 374 |
+
* \cuda_math_formula e^x - 1 \end_cuda_math_formula,
|
| 375 |
+
* the base e exponential of the input argument, minus 1.
|
| 376 |
+
*
|
| 377 |
+
* \return
|
| 378 |
+
* - __nv_fp128_expm1(
|
| 379 |
+
* \cuda_math_formula \pm 0 \end_cuda_math_formula
|
| 380 |
+
* ) returns
|
| 381 |
+
* \cuda_math_formula \pm 0 \end_cuda_math_formula.
|
| 382 |
+
* - __nv_fp128_expm1(
|
| 383 |
+
* \cuda_math_formula -\infty \end_cuda_math_formula
|
| 384 |
+
* ) returns -1.
|
| 385 |
+
* - __nv_fp128_expm1(
|
| 386 |
+
* \cuda_math_formula +\infty \end_cuda_math_formula
|
| 387 |
+
* ) returns
|
| 388 |
+
* \cuda_math_formula +\infty \end_cuda_math_formula.
|
| 389 |
+
* - __nv_fp128_expm1(NaN) returns NaN.
|
| 390 |
+
*
|
| 391 |
+
* \note_accuracy_quad
|
| 392 |
+
* \note_fp128_target_arch
|
| 393 |
+
*/
|
| 394 |
+
__DEVICE_FP128_FUNCTIONS_DECL__ __float128 __nv_fp128_expm1(__float128 x) __DEF_IF_HOST
|
| 395 |
+
/**
|
| 396 |
+
* \ingroup CUDA_MATH_QUAD
|
| 397 |
+
* \brief Calculate \cuda_math_formula \log_{e}{x} \end_cuda_math_formula, the base
|
| 398 |
+
* \cuda_math_formula e \end_cuda_math_formula
|
| 399 |
+
* logarithm of the input argument.
|
| 400 |
+
*
|
| 401 |
+
* \return
|
| 402 |
+
* - __nv_fp128_log(
|
| 403 |
+
* \cuda_math_formula \pm 0 \end_cuda_math_formula
|
| 404 |
+
* ) returns
|
| 405 |
+
* \cuda_math_formula -\infty \end_cuda_math_formula.
|
| 406 |
+
* - __nv_fp128_log(1) returns +0.
|
| 407 |
+
* - __nv_fp128_log(\p x) returns NaN for \p x < 0.
|
| 408 |
+
* - __nv_fp128_log(
|
| 409 |
+
* \cuda_math_formula +\infty \end_cuda_math_formula
|
| 410 |
+
* ) returns
|
| 411 |
+
* \cuda_math_formula +\infty \end_cuda_math_formula.
|
| 412 |
+
* - __nv_fp128_log(NaN) returns NaN.
|
| 413 |
+
*
|
| 414 |
+
* \note_accuracy_quad
|
| 415 |
+
* \note_fp128_target_arch
|
| 416 |
+
*/
|
| 417 |
+
__DEVICE_FP128_FUNCTIONS_DECL__ __float128 __nv_fp128_log(__float128 x) __DEF_IF_HOST
|
| 418 |
+
/**
|
| 419 |
+
* \ingroup CUDA_MATH_QUAD
|
| 420 |
+
* \brief Calculate \cuda_math_formula \log_{2}{x} \end_cuda_math_formula, the base 2 logarithm of the input argument.
|
| 421 |
+
*
|
| 422 |
+
* \return
|
| 423 |
+
* - __nv_fp128_log2(
|
| 424 |
+
* \cuda_math_formula \pm 0 \end_cuda_math_formula
|
| 425 |
+
* ) returns
|
| 426 |
+
* \cuda_math_formula -\infty \end_cuda_math_formula.
|
| 427 |
+
* - __nv_fp128_log2(1) returns +0.
|
| 428 |
+
* - __nv_fp128_log2(\p x) returns NaN for \p x < 0.
|
| 429 |
+
* - __nv_fp128_log2(
|
| 430 |
+
* \cuda_math_formula +\infty \end_cuda_math_formula
|
| 431 |
+
* ) returns
|
| 432 |
+
* \cuda_math_formula +\infty \end_cuda_math_formula.
|
| 433 |
+
* - __nv_fp128_log2(NaN) returns NaN.
|
| 434 |
+
*
|
| 435 |
+
* \note_accuracy_quad
|
| 436 |
+
* \note_fp128_target_arch
|
| 437 |
+
*/
|
| 438 |
+
__DEVICE_FP128_FUNCTIONS_DECL__ __float128 __nv_fp128_log2(__float128 x) __DEF_IF_HOST
|
| 439 |
+
/**
|
| 440 |
+
* \ingroup CUDA_MATH_QUAD
|
| 441 |
+
* \brief Calculate \cuda_math_formula \log_{10}{x} \end_cuda_math_formula, the base 10 logarithm of the input argument.
|
| 442 |
+
*
|
| 443 |
+
* \return
|
| 444 |
+
* - __nv_fp128_log10(
|
| 445 |
+
* \cuda_math_formula \pm 0 \end_cuda_math_formula
|
| 446 |
+
* ) returns
|
| 447 |
+
* \cuda_math_formula -\infty \end_cuda_math_formula.
|
| 448 |
+
* - __nv_fp128_log10(1) returns +0.
|
| 449 |
+
* - __nv_fp128_log10(\p x) returns NaN for \p x < 0.
|
| 450 |
+
* - __nv_fp128_log10(
|
| 451 |
+
* \cuda_math_formula +\infty \end_cuda_math_formula
|
| 452 |
+
* ) returns
|
| 453 |
+
* \cuda_math_formula +\infty \end_cuda_math_formula.
|
| 454 |
+
* - __nv_fp128_log10(NaN) returns NaN.
|
| 455 |
+
*
|
| 456 |
+
* \note_accuracy_quad
|
| 457 |
+
* \note_fp128_target_arch
|
| 458 |
+
*/
|
| 459 |
+
__DEVICE_FP128_FUNCTIONS_DECL__ __float128 __nv_fp128_log10(__float128 x) __DEF_IF_HOST
|
| 460 |
+
/**
|
| 461 |
+
* \ingroup CUDA_MATH_QUAD
|
| 462 |
+
* \brief Calculate the value of
|
| 463 |
+
* \cuda_math_formula \log_{e}(1+x) \end_cuda_math_formula.
|
| 464 |
+
*
|
| 465 |
+
* \return
|
| 466 |
+
* - __nv_fp128_log1p(
|
| 467 |
+
* \cuda_math_formula \pm 0 \end_cuda_math_formula
|
| 468 |
+
* ) returns
|
| 469 |
+
* \cuda_math_formula \pm 0 \end_cuda_math_formula.
|
| 470 |
+
* - __nv_fp128_log1p(-1) returns
|
| 471 |
+
* \cuda_math_formula -\infty \end_cuda_math_formula.
|
| 472 |
+
* - __nv_fp128_log1p(\p x) returns NaN for \p x < -1.
|
| 473 |
+
* - __nv_fp128_log1p(
|
| 474 |
+
* \cuda_math_formula +\infty \end_cuda_math_formula
|
| 475 |
+
* ) returns
|
| 476 |
+
* \cuda_math_formula +\infty \end_cuda_math_formula.
|
| 477 |
+
* - __nv_fp128_log1p(NaN) returns NaN.
|
| 478 |
+
*
|
| 479 |
+
* \note_accuracy_quad
|
| 480 |
+
* \note_fp128_target_arch
|
| 481 |
+
*/
|
| 482 |
+
__DEVICE_FP128_FUNCTIONS_DECL__ __float128 __nv_fp128_log1p(__float128 x) __DEF_IF_HOST
|
| 483 |
+
/**
|
| 484 |
+
* \ingroup CUDA_MATH_QUAD
|
| 485 |
+
* \brief Calculate the value of \cuda_math_formula x^{y} \end_cuda_math_formula, first argument to the power of second argument.
|
| 486 |
+
*
|
| 487 |
+
* \return
|
| 488 |
+
* - __nv_fp128_pow(
|
| 489 |
+
* \cuda_math_formula \pm 0 \end_cuda_math_formula
|
| 490 |
+
* , \p y) returns
|
| 491 |
+
* \cuda_math_formula \pm \infty \end_cuda_math_formula
|
| 492 |
+
* for \p y an odd integer less than 0.
|
| 493 |
+
* - __nv_fp128_pow(
|
| 494 |
+
* \cuda_math_formula \pm 0 \end_cuda_math_formula
|
| 495 |
+
* , \p y) returns
|
| 496 |
+
* \cuda_math_formula +\infty \end_cuda_math_formula
|
| 497 |
+
* for \p y less than 0 and not an odd integer.
|
| 498 |
+
* - __nv_fp128_pow(
|
| 499 |
+
* \cuda_math_formula \pm 0 \end_cuda_math_formula
|
| 500 |
+
* , \p y) returns
|
| 501 |
+
* \cuda_math_formula \pm 0 \end_cuda_math_formula
|
| 502 |
+
* for \p y an odd integer greater than 0.
|
| 503 |
+
* - __nv_fp128_pow(
|
| 504 |
+
* \cuda_math_formula \pm 0 \end_cuda_math_formula
|
| 505 |
+
* , \p y) returns +0 for \p y > 0 and not an odd integer.
|
| 506 |
+
* - __nv_fp128_pow(-1,
|
| 507 |
+
* \cuda_math_formula \pm \infty \end_cuda_math_formula
|
| 508 |
+
* ) returns 1.
|
| 509 |
+
* - __nv_fp128_pow(+1, \p y) returns 1 for any \p y, even a NaN.
|
| 510 |
+
* - __nv_fp128_pow(\p x,
|
| 511 |
+
* \cuda_math_formula \pm 0 \end_cuda_math_formula
|
| 512 |
+
* ) returns 1 for any \p x, even a NaN.
|
| 513 |
+
* - __nv_fp128_pow(\p x, \p y) returns a NaN for finite \p x < 0 and finite non-integer \p y.
|
| 514 |
+
* - __nv_fp128_pow(\p x,
|
| 515 |
+
* \cuda_math_formula -\infty \end_cuda_math_formula
|
| 516 |
+
* ) returns
|
| 517 |
+
* \cuda_math_formula +\infty \end_cuda_math_formula
|
| 518 |
+
* for
|
| 519 |
+
* \cuda_math_formula | x | < 1 \end_cuda_math_formula.
|
| 520 |
+
* - __nv_fp128_pow(\p x,
|
| 521 |
+
* \cuda_math_formula -\infty \end_cuda_math_formula
|
| 522 |
+
* ) returns +0 for
|
| 523 |
+
* \cuda_math_formula | x | > 1 \end_cuda_math_formula.
|
| 524 |
+
* - __nv_fp128_pow(\p x,
|
| 525 |
+
* \cuda_math_formula +\infty \end_cuda_math_formula
|
| 526 |
+
* ) returns +0 for
|
| 527 |
+
* \cuda_math_formula | x | < 1 \end_cuda_math_formula.
|
| 528 |
+
* - __nv_fp128_pow(\p x,
|
| 529 |
+
* \cuda_math_formula +\infty \end_cuda_math_formula
|
| 530 |
+
* ) returns
|
| 531 |
+
* \cuda_math_formula +\infty \end_cuda_math_formula
|
| 532 |
+
* for
|
| 533 |
+
* \cuda_math_formula | x | > 1 \end_cuda_math_formula.
|
| 534 |
+
* - __nv_fp128_pow(
|
| 535 |
+
* \cuda_math_formula -\infty \end_cuda_math_formula
|
| 536 |
+
* , \p y) returns -0 for \p y an odd integer less than 0.
|
| 537 |
+
* - __nv_fp128_pow(
|
| 538 |
+
* \cuda_math_formula -\infty \end_cuda_math_formula
|
| 539 |
+
* , \p y) returns +0 for \p y < 0 and not an odd integer.
|
| 540 |
+
* - __nv_fp128_pow(
|
| 541 |
+
* \cuda_math_formula -\infty \end_cuda_math_formula
|
| 542 |
+
* , \p y) returns
|
| 543 |
+
* \cuda_math_formula -\infty \end_cuda_math_formula
|
| 544 |
+
* for \p y an odd integer greater than 0.
|
| 545 |
+
* - __nv_fp128_pow(
|
| 546 |
+
* \cuda_math_formula -\infty \end_cuda_math_formula
|
| 547 |
+
* , \p y) returns
|
| 548 |
+
* \cuda_math_formula +\infty \end_cuda_math_formula
|
| 549 |
+
* for \p y > 0 and not an odd integer.
|
| 550 |
+
* - __nv_fp128_pow(
|
| 551 |
+
* \cuda_math_formula +\infty \end_cuda_math_formula
|
| 552 |
+
* , \p y) returns +0 for \p y < 0.
|
| 553 |
+
* - __nv_fp128_pow(
|
| 554 |
+
* \cuda_math_formula +\infty \end_cuda_math_formula
|
| 555 |
+
* , \p y) returns
|
| 556 |
+
* \cuda_math_formula +\infty \end_cuda_math_formula
|
| 557 |
+
* for \p y > 0.
|
| 558 |
+
* - __nv_fp128_pow(\p x, \p y) returns NaN if either \p x or \p y or both are NaN and \p x \cuda_math_formula \neq \end_cuda_math_formula +1 and \p y \cuda_math_formula \neq\pm 0 \end_cuda_math_formula.
|
| 559 |
+
*
|
| 560 |
+
* \note_accuracy_quad
|
| 561 |
+
* \note_fp128_target_arch
|
| 562 |
+
*/
|
| 563 |
+
__DEVICE_FP128_FUNCTIONS_DECL__ __float128 __nv_fp128_pow(__float128 x, __float128 y) __DEF_IF_HOST
|
| 564 |
+
/**
|
| 565 |
+
* \ingroup CUDA_MATH_QUAD
|
| 566 |
+
* \brief Calculate \cuda_math_formula \sinh{x} \end_cuda_math_formula, the hyperbolic sine of the input argument.
|
| 567 |
+
*
|
| 568 |
+
* Calculate \cuda_math_formula \sinh{x} \end_cuda_math_formula, the hyperbolic sine of the input argument \p x.
|
| 569 |
+
*
|
| 570 |
+
* \return
|
| 571 |
+
* - __nv_fp128_sinhinh(
|
| 572 |
+
* \cuda_math_formula \pm 0 \end_cuda_math_formula
|
| 573 |
+
* ) returns
|
| 574 |
+
* \cuda_math_formula \pm 0 \end_cuda_math_formula.
|
| 575 |
+
* - __nv_fp128_sinh(
|
| 576 |
+
* \cuda_math_formula \pm \infty \end_cuda_math_formula
|
| 577 |
+
* ) returns
|
| 578 |
+
* \cuda_math_formula \pm \infty \end_cuda_math_formula.
|
| 579 |
+
* - __nv_fp128_sinh(NaN) returns NaN.
|
| 580 |
+
*
|
| 581 |
+
* \note_accuracy_quad
|
| 582 |
+
* \note_fp128_target_arch
|
| 583 |
+
*/
|
| 584 |
+
__DEVICE_FP128_FUNCTIONS_DECL__ __float128 __nv_fp128_sinh(__float128 x) __DEF_IF_HOST
|
| 585 |
+
/**
|
| 586 |
+
* \ingroup CUDA_MATH_QUAD
|
| 587 |
+
* \brief Calculate \cuda_math_formula \cosh{x} \end_cuda_math_formula, the hyperbolic cosine of the input argument.
|
| 588 |
+
*
|
| 589 |
+
* \return
|
| 590 |
+
* - __nv_fp128_cosh(
|
| 591 |
+
* \cuda_math_formula \pm 0 \end_cuda_math_formula
|
| 592 |
+
* ) returns 1.
|
| 593 |
+
* - __nv_fp128_cosh(
|
| 594 |
+
* \cuda_math_formula \pm \infty \end_cuda_math_formula
|
| 595 |
+
* ) returns
|
| 596 |
+
* \cuda_math_formula +\infty \end_cuda_math_formula.
|
| 597 |
+
* - __nv_fp128_cosh(NaN) returns NaN.
|
| 598 |
+
*
|
| 599 |
+
* \note_accuracy_quad
|
| 600 |
+
* \note_fp128_target_arch
|
| 601 |
+
*/
|
| 602 |
+
__DEVICE_FP128_FUNCTIONS_DECL__ __float128 __nv_fp128_cosh(__float128 x) __DEF_IF_HOST
|
| 603 |
+
/**
|
| 604 |
+
* \ingroup CUDA_MATH_QUAD
|
| 605 |
+
* \brief Calculate \cuda_math_formula \tanh{x} \end_cuda_math_formula, the hyperbolic tangent of the input argument.
|
| 606 |
+
*
|
| 607 |
+
* \return
|
| 608 |
+
* - __nv_fp128_tanh(
|
| 609 |
+
* \cuda_math_formula \pm 0 \end_cuda_math_formula
|
| 610 |
+
* ) returns
|
| 611 |
+
* \cuda_math_formula \pm 0 \end_cuda_math_formula.
|
| 612 |
+
* - __nv_fp128_tanh(
|
| 613 |
+
* \cuda_math_formula \pm \infty \end_cuda_math_formula
|
| 614 |
+
* ) returns
|
| 615 |
+
* \cuda_math_formula \pm 1 \end_cuda_math_formula.
|
| 616 |
+
* - __nv_fp128_tanh(NaN) returns NaN.
|
| 617 |
+
*
|
| 618 |
+
* \note_accuracy_quad
|
| 619 |
+
* \note_fp128_target_arch
|
| 620 |
+
*/
|
| 621 |
+
__DEVICE_FP128_FUNCTIONS_DECL__ __float128 __nv_fp128_tanh(__float128 x) __DEF_IF_HOST
|
| 622 |
+
/**
|
| 623 |
+
* \ingroup CUDA_MATH_QUAD
|
| 624 |
+
* \brief Calculate \cuda_math_formula \sinh^{-1}{x} \end_cuda_math_formula, the inverse hyperbolic sine of the input argument.
|
| 625 |
+
*
|
| 626 |
+
* \return
|
| 627 |
+
* - __nv_fp128_asinh(
|
| 628 |
+
* \cuda_math_formula \pm 0 \end_cuda_math_formula
|
| 629 |
+
* ) returns
|
| 630 |
+
* \cuda_math_formula \pm 0 \end_cuda_math_formula.
|
| 631 |
+
* - __nv_fp128_asinh(
|
| 632 |
+
* \cuda_math_formula \pm \infty \end_cuda_math_formula
|
| 633 |
+
* ) returns
|
| 634 |
+
* \cuda_math_formula \pm \infty \end_cuda_math_formula.
|
| 635 |
+
* - __nv_fp128_asinh(NaN) returns NaN.
|
| 636 |
+
*
|
| 637 |
+
* \note_accuracy_quad
|
| 638 |
+
* \note_fp128_target_arch
|
| 639 |
+
*/
|
| 640 |
+
__DEVICE_FP128_FUNCTIONS_DECL__ __float128 __nv_fp128_asinh(__float128 x) __DEF_IF_HOST
|
| 641 |
+
/**
|
| 642 |
+
* \ingroup CUDA_MATH_QUAD
|
| 643 |
+
* \brief Calculate \cuda_math_formula \cosh^{-1}{x} \end_cuda_math_formula, the nonnegative inverse hyperbolic cosine of the input argument.
|
| 644 |
+
*
|
| 645 |
+
* \return
|
| 646 |
+
* Result will be in the interval [0,
|
| 647 |
+
* \cuda_math_formula +\infty \end_cuda_math_formula
|
| 648 |
+
* ].
|
| 649 |
+
* - __nv_fp128_acosh(1) returns 0.
|
| 650 |
+
* - __nv_fp128_acosh(\p x) returns NaN for \p x in the interval [
|
| 651 |
+
* \cuda_math_formula -\infty \end_cuda_math_formula
|
| 652 |
+
* , 1).
|
| 653 |
+
* - __nv_fp128_acosh(
|
| 654 |
+
* \cuda_math_formula +\infty \end_cuda_math_formula
|
| 655 |
+
* ) returns
|
| 656 |
+
* \cuda_math_formula +\infty \end_cuda_math_formula.
|
| 657 |
+
* - __nv_fp128_acosh(NaN) returns NaN.
|
| 658 |
+
*
|
| 659 |
+
* \note_accuracy_quad
|
| 660 |
+
* \note_fp128_target_arch
|
| 661 |
+
*/
|
| 662 |
+
__DEVICE_FP128_FUNCTIONS_DECL__ __float128 __nv_fp128_acosh(__float128 x) __DEF_IF_HOST
|
| 663 |
+
/**
|
| 664 |
+
* \ingroup CUDA_MATH_QUAD
|
| 665 |
+
* \brief Calculate \cuda_math_formula \tanh^{-1}{x} \end_cuda_math_formula, the inverse hyperbolic tangent of the input argument.
|
| 666 |
+
*
|
| 667 |
+
* \return
|
| 668 |
+
* - __nv_fp128_atanh(
|
| 669 |
+
* \cuda_math_formula \pm 0 \end_cuda_math_formula
|
| 670 |
+
* ) returns
|
| 671 |
+
* \cuda_math_formula \pm 0 \end_cuda_math_formula.
|
| 672 |
+
* - __nv_fp128_atanh(
|
| 673 |
+
* \cuda_math_formula \pm 1 \end_cuda_math_formula
|
| 674 |
+
* ) returns
|
| 675 |
+
* \cuda_math_formula \pm \infty \end_cuda_math_formula.
|
| 676 |
+
* - __nv_fp128_atanh(\p x) returns NaN for \p x outside interval [-1, 1].
|
| 677 |
+
* - __nv_fp128_atanh(NaN) returns NaN.
|
| 678 |
+
*
|
| 679 |
+
* \note_accuracy_quad
|
| 680 |
+
* \note_fp128_target_arch
|
| 681 |
+
*/
|
| 682 |
+
__DEVICE_FP128_FUNCTIONS_DECL__ __float128 __nv_fp128_atanh(__float128 x) __DEF_IF_HOST
|
| 683 |
+
/**
|
| 684 |
+
* \ingroup CUDA_MATH_QUAD
|
| 685 |
+
* \brief Truncate input argument to the integral part.
|
| 686 |
+
*
|
| 687 |
+
* \return
|
| 688 |
+
* Rounded \p x to the nearest integer value in floating-point format, that does not exceed \p x in
|
| 689 |
+
* magnitude.
|
| 690 |
+
* - __nv_fp128_trunc(
|
| 691 |
+
* \cuda_math_formula \pm 0 \end_cuda_math_formula
|
| 692 |
+
* ) returns
|
| 693 |
+
* \cuda_math_formula \pm 0 \end_cuda_math_formula.
|
| 694 |
+
* - __nv_fp128_trunc(
|
| 695 |
+
* \cuda_math_formula \pm \infty \end_cuda_math_formula
|
| 696 |
+
* ) returns
|
| 697 |
+
* \cuda_math_formula \pm \infty \end_cuda_math_formula.
|
| 698 |
+
* - __nv_fp128_trunc(NaN) returns NaN.
|
| 699 |
+
*
|
| 700 |
+
* \note_accuracy_quad
|
| 701 |
+
* \note_fp128_target_arch
|
| 702 |
+
*/
|
| 703 |
+
__DEVICE_FP128_FUNCTIONS_DECL__ __float128 __nv_fp128_trunc(__float128 x) __DEF_IF_HOST
|
| 704 |
+
/**
|
| 705 |
+
* \ingroup CUDA_MATH_QUAD
|
| 706 |
+
* \brief Calculate \cuda_math_formula \lfloor x \rfloor \end_cuda_math_formula, the largest integer less than or equal to \p x.
|
| 707 |
+
*
|
| 708 |
+
* \return
|
| 709 |
+
* \cuda_math_formula \lfloor x \rfloor \end_cuda_math_formula
|
| 710 |
+
* expressed as a floating-point number.
|
| 711 |
+
* - __nv_fp128_floor(
|
| 712 |
+
* \cuda_math_formula \pm \infty \end_cuda_math_formula
|
| 713 |
+
* ) returns
|
| 714 |
+
* \cuda_math_formula \pm \infty \end_cuda_math_formula.
|
| 715 |
+
* - __nv_fp128_floor(
|
| 716 |
+
* \cuda_math_formula \pm 0 \end_cuda_math_formula
|
| 717 |
+
* ) returns
|
| 718 |
+
* \cuda_math_formula \pm 0 \end_cuda_math_formula.
|
| 719 |
+
* - __nv_fp128_floor(NaN) returns NaN.
|
| 720 |
+
*
|
| 721 |
+
* \note_accuracy_quad
|
| 722 |
+
* \note_fp128_target_arch
|
| 723 |
+
*/
|
| 724 |
+
__DEVICE_FP128_FUNCTIONS_DECL__ __float128 __nv_fp128_floor(__float128 x) __DEF_IF_HOST
|
| 725 |
+
/**
|
| 726 |
+
* \ingroup CUDA_MATH_QUAD
|
| 727 |
+
* \brief Calculate \cuda_math_formula \lceil x \rceil \end_cuda_math_formula, the smallest integer greater than or equal to \p x.
|
| 728 |
+
*
|
| 729 |
+
* \return
|
| 730 |
+
* \cuda_math_formula \lceil x \rceil \end_cuda_math_formula
|
| 731 |
+
* expressed as a floating-point number.
|
| 732 |
+
* - __nv_fp128_ceil(
|
| 733 |
+
* \cuda_math_formula \pm \infty \end_cuda_math_formula
|
| 734 |
+
* ) returns
|
| 735 |
+
* \cuda_math_formula \pm \infty \end_cuda_math_formula.
|
| 736 |
+
* - __nv_fp128_ceil(
|
| 737 |
+
* \cuda_math_formula \pm 0 \end_cuda_math_formula
|
| 738 |
+
* ) returns
|
| 739 |
+
* \cuda_math_formula \pm 0 \end_cuda_math_formula.
|
| 740 |
+
* - __nv_fp128_ceil(NaN) returns NaN.
|
| 741 |
+
*
|
| 742 |
+
* \note_accuracy_quad
|
| 743 |
+
* \note_fp128_target_arch
|
| 744 |
+
*/
|
| 745 |
+
__DEVICE_FP128_FUNCTIONS_DECL__ __float128 __nv_fp128_ceil(__float128 x) __DEF_IF_HOST
|
| 746 |
+
/**
|
| 747 |
+
* \ingroup CUDA_MATH_QUAD
|
| 748 |
+
* \brief Round to nearest integer value in floating-point format,
|
| 749 |
+
* with halfway cases rounded away from zero.
|
| 750 |
+
*
|
| 751 |
+
* \return
|
| 752 |
+
* - __nv_fp128_round(
|
| 753 |
+
* \cuda_math_formula \pm 0 \end_cuda_math_formula
|
| 754 |
+
* ) returns
|
| 755 |
+
* \cuda_math_formula \pm 0 \end_cuda_math_formula.
|
| 756 |
+
* - __nv_fp128_round(
|
| 757 |
+
* \cuda_math_formula \pm \infty \end_cuda_math_formula
|
| 758 |
+
* ) returns
|
| 759 |
+
* \cuda_math_formula \pm \infty \end_cuda_math_formula.
|
| 760 |
+
* - __nv_fp128_round(NaN) returns NaN.
|
| 761 |
+
*
|
| 762 |
+
* \note_accuracy_quad
|
| 763 |
+
* \note_fp128_target_arch
|
| 764 |
+
*/
|
| 765 |
+
__DEVICE_FP128_FUNCTIONS_DECL__ __float128 __nv_fp128_round(__float128 x) __DEF_IF_HOST
|
| 766 |
+
/**
|
| 767 |
+
* \ingroup CUDA_MATH_QUAD
|
| 768 |
+
* \brief Round to nearest integer value in floating-point format,
|
| 769 |
+
* with halfway cases rounded to the nearest even integer value.
|
| 770 |
+
*
|
| 771 |
+
* \return
|
| 772 |
+
* - __nv_fp128_rint(
|
| 773 |
+
* \cuda_math_formula \pm 0 \end_cuda_math_formula
|
| 774 |
+
* ) returns
|
| 775 |
+
* \cuda_math_formula \pm 0 \end_cuda_math_formula.
|
| 776 |
+
* - __nv_fp128_rint(
|
| 777 |
+
* \cuda_math_formula \pm \infty \end_cuda_math_formula
|
| 778 |
+
* ) returns
|
| 779 |
+
* \cuda_math_formula \pm \infty \end_cuda_math_formula.
|
| 780 |
+
* - __nv_fp128_rint(NaN) returns NaN.
|
| 781 |
+
*
|
| 782 |
+
* \note_accuracy_quad
|
| 783 |
+
* \note_fp128_target_arch
|
| 784 |
+
*/
|
| 785 |
+
__DEVICE_FP128_FUNCTIONS_DECL__ __float128 __nv_fp128_rint(__float128 x) __DEF_IF_HOST
|
| 786 |
+
/**
|
| 787 |
+
* \ingroup CUDA_MATH_QUAD
|
| 788 |
+
* \brief Calculate \cuda_math_formula |x| \end_cuda_math_formula, the absolute value of the input argument.
|
| 789 |
+
*
|
| 790 |
+
* \return
|
| 791 |
+
* - __nv_fp128_fabs(
|
| 792 |
+
* \cuda_math_formula \pm \infty \end_cuda_math_formula
|
| 793 |
+
* ) returns
|
| 794 |
+
* \cuda_math_formula +\infty \end_cuda_math_formula.
|
| 795 |
+
* - __nv_fp128_fabs(
|
| 796 |
+
* \cuda_math_formula \pm 0 \end_cuda_math_formula
|
| 797 |
+
* ) returns +0.
|
| 798 |
+
* - __nv_fp128_fabs(NaN) returns an unspecified NaN.
|
| 799 |
+
*
|
| 800 |
+
* \note_accuracy_quad
|
| 801 |
+
* \note_fp128_target_arch
|
| 802 |
+
*/
|
| 803 |
+
__DEVICE_FP128_FUNCTIONS_DECL__ __float128 __nv_fp128_fabs(__float128 x) __DEF_IF_HOST
|
| 804 |
+
/**
|
| 805 |
+
* \ingroup CUDA_MATH_QUAD
|
| 806 |
+
* \brief Create value with the magnitude of the first agument \p x, and the sign of the second argument \p y.
|
| 807 |
+
*
|
| 808 |
+
* \return
|
| 809 |
+
* - copysign(\p NaN, \p y) returns a \p NaN with the sign of \p y.
|
| 810 |
+
*
|
| 811 |
+
* \note_accuracy_quad
|
| 812 |
+
* \note_fp128_target_arch
|
| 813 |
+
*/
|
| 814 |
+
__DEVICE_FP128_FUNCTIONS_DECL__ __float128 __nv_fp128_copysign(__float128 x, __float128 y) __DEF_IF_HOST
|
| 815 |
+
/**
|
| 816 |
+
* \ingroup CUDA_MATH_QUAD
|
| 817 |
+
* \brief Determine the maximum numeric value of the arguments.
|
| 818 |
+
*
|
| 819 |
+
* \return
|
| 820 |
+
* The maximum numeric value of the arguments \p x and \p y. Treats NaN
|
| 821 |
+
* arguments as missing data.
|
| 822 |
+
* - If both arguments are NaN, returns NaN.
|
| 823 |
+
* - If one argument is NaN, returns the numeric argument.
|
| 824 |
+
*
|
| 825 |
+
* \note_accuracy_quad
|
| 826 |
+
* \note_fp128_target_arch
|
| 827 |
+
*/
|
| 828 |
+
__DEVICE_FP128_FUNCTIONS_DECL__ __float128 __nv_fp128_fmax(__float128 x, __float128 y) __DEF_IF_HOST
|
| 829 |
+
/**
|
| 830 |
+
* \ingroup CUDA_MATH_QUAD
|
| 831 |
+
* \brief Determine the minimum numeric value of the arguments.
|
| 832 |
+
*
|
| 833 |
+
* \return
|
| 834 |
+
* The minimum numeric value of the arguments \p x and \p y. Treats NaN
|
| 835 |
+
* arguments as missing data.
|
| 836 |
+
* - If both arguments are NaN, returns NaN.
|
| 837 |
+
* - If one argument is NaN, returns the numeric argument.
|
| 838 |
+
*
|
| 839 |
+
* \note_accuracy_quad
|
| 840 |
+
* \note_fp128_target_arch
|
| 841 |
+
*/
|
| 842 |
+
__DEVICE_FP128_FUNCTIONS_DECL__ __float128 __nv_fp128_fmin(__float128 x, __float128 y) __DEF_IF_HOST
|
| 843 |
+
/**
|
| 844 |
+
* \ingroup CUDA_MATH_QUAD
|
| 845 |
+
* \brief Compute the positive difference between \p x and \p y.
|
| 846 |
+
*
|
| 847 |
+
* \return
|
| 848 |
+
* - __nv_fp128_fdim(\p x, \p y) returns \p x - \p y if \cuda_math_formula x > y \end_cuda_math_formula.
|
| 849 |
+
* - __nv_fp128_fdim(\p x, \p y) returns +0 if \cuda_math_formula x \leq y \end_cuda_math_formula.
|
| 850 |
+
* - If either argument is NaN, NaN is returned.
|
| 851 |
+
*
|
| 852 |
+
* \note_accuracy_quad
|
| 853 |
+
* \note_fp128_target_arch
|
| 854 |
+
*/
|
| 855 |
+
__DEVICE_FP128_FUNCTIONS_DECL__ __float128 __nv_fp128_fdim(__float128 x, __float128 y) __DEF_IF_HOST
|
| 856 |
+
/**
|
| 857 |
+
* \ingroup CUDA_MATH_QUAD
|
| 858 |
+
* \brief Calculate the floating-point remainder of \p x / \p y.
|
| 859 |
+
*
|
| 860 |
+
* \return
|
| 861 |
+
* The floating-point remainder of the division operation \p x / \p y calculated
|
| 862 |
+
* by this function is exactly the value <tt>x - n*y</tt>, where \p n is \p x / \p y with its fractional part truncated.
|
| 863 |
+
* - The computed value will have the same sign as \p x, and its magnitude will be less than the magnitude of \p y.
|
| 864 |
+
* - __nv_fp128_fmod(
|
| 865 |
+
* \cuda_math_formula \pm 0 \end_cuda_math_formula
|
| 866 |
+
* , \p y) returns
|
| 867 |
+
* \cuda_math_formula \pm 0 \end_cuda_math_formula
|
| 868 |
+
* if \p y is not zero.
|
| 869 |
+
* - __nv_fp128_fmod(\p x,
|
| 870 |
+
* \cuda_math_formula \pm \infty \end_cuda_math_formula
|
| 871 |
+
* ) returns \p x if \p x is finite.
|
| 872 |
+
* - __nv_fp128_fmod(\p x, \p y) returns NaN if \p x is
|
| 873 |
+
* \cuda_math_formula \pm\infty \end_cuda_math_formula
|
| 874 |
+
* or \p y is zero.
|
| 875 |
+
* - If either argument is NaN, NaN is returned.
|
| 876 |
+
*
|
| 877 |
+
* \note_accuracy_quad
|
| 878 |
+
* \note_fp128_target_arch
|
| 879 |
+
*/
|
| 880 |
+
__DEVICE_FP128_FUNCTIONS_DECL__ __float128 __nv_fp128_fmod(__float128 x, __float128 y) __DEF_IF_HOST
|
| 881 |
+
/**
|
| 882 |
+
* \ingroup CUDA_MATH_QUAD
|
| 883 |
+
* \brief Compute the floating-point remainder function.
|
| 884 |
+
*
|
| 885 |
+
* \return
|
| 886 |
+
* The floating-point remainder \p r of dividing
|
| 887 |
+
* \p x by \p y for nonzero \p y is defined as
|
| 888 |
+
* \cuda_math_formula r = x - n y \end_cuda_math_formula.
|
| 889 |
+
* The value \p n is the integer value nearest
|
| 890 |
+
* \cuda_math_formula \frac{x}{y} \end_cuda_math_formula.
|
| 891 |
+
* In the halfway cases when
|
| 892 |
+
* \cuda_math_formula | n -\frac{x}{y} | = \frac{1}{2} \end_cuda_math_formula
|
| 893 |
+
* , the
|
| 894 |
+
* even \p n value is chosen.
|
| 895 |
+
* - __nv_fp128_remainder(\p x,
|
| 896 |
+
* \cuda_math_formula \pm 0 \end_cuda_math_formula
|
| 897 |
+
* ) returns NaN.
|
| 898 |
+
* - __nv_fp128_remainder(
|
| 899 |
+
* \cuda_math_formula \pm \infty \end_cuda_math_formula
|
| 900 |
+
* , \p y) returns NaN.
|
| 901 |
+
* - __nv_fp128_remainder(\p x,
|
| 902 |
+
* \cuda_math_formula \pm \infty \end_cuda_math_formula
|
| 903 |
+
* ) returns \p x for finite \p x.
|
| 904 |
+
* - If either argument is NaN, NaN is returned.
|
| 905 |
+
*
|
| 906 |
+
* \note_accuracy_quad
|
| 907 |
+
* \note_fp128_target_arch
|
| 908 |
+
*/
|
| 909 |
+
__DEVICE_FP128_FUNCTIONS_DECL__ __float128 __nv_fp128_remainder(__float128 x, __float128 y) __DEF_IF_HOST
|
| 910 |
+
/**
|
| 911 |
+
* \ingroup CUDA_MATH_QUAD
|
| 912 |
+
* \brief Extract mantissa and exponent of the floating-point input argument.
|
| 913 |
+
*
|
| 914 |
+
* Decompose the floating-point value \p x into a component \p m for the
|
| 915 |
+
* normalized fraction element and an integral term \p n for the exponent.
|
| 916 |
+
* The absolute value of \p m will be greater than or equal to 0.5 and
|
| 917 |
+
* less than 1.0 or it will be equal to 0;
|
| 918 |
+
* \cuda_math_formula x = m\cdot 2^n \end_cuda_math_formula.
|
| 919 |
+
* The integer exponent \p n will be stored in the location to which \p nptr points.
|
| 920 |
+
*
|
| 921 |
+
* \return
|
| 922 |
+
* The fractional component \p m.
|
| 923 |
+
* - __nv_fp128_frexp(
|
| 924 |
+
* \cuda_math_formula \pm 0 \end_cuda_math_formula
|
| 925 |
+
* , \p nptr) returns
|
| 926 |
+
* \cuda_math_formula \pm 0 \end_cuda_math_formula
|
| 927 |
+
* and stores zero in the location pointed to by \p nptr.
|
| 928 |
+
* - __nv_fp128_frexp(
|
| 929 |
+
* \cuda_math_formula \pm \infty \end_cuda_math_formula
|
| 930 |
+
* , \p nptr) returns
|
| 931 |
+
* \cuda_math_formula \pm \infty \end_cuda_math_formula
|
| 932 |
+
* and stores an unspecified value in the
|
| 933 |
+
* location to which \p nptr points.
|
| 934 |
+
* - __nv_fp128_frexp(NaN, \p y) returns a NaN and stores an unspecified value in the location to which \p nptr points.
|
| 935 |
+
*
|
| 936 |
+
* \note_accuracy_quad
|
| 937 |
+
* \note_fp128_target_arch
|
| 938 |
+
*/
|
| 939 |
+
__DEVICE_FP128_FUNCTIONS_DECL__ __float128 __nv_fp128_frexp(__float128 x, int* nptr) __DEF_IF_HOST
|
| 940 |
+
/**
|
| 941 |
+
* \ingroup CUDA_MATH_QUAD
|
| 942 |
+
* \brief Break down the input argument into fractional and integral parts.
|
| 943 |
+
*
|
| 944 |
+
* Break down the argument \p x into fractional and integral parts. The
|
| 945 |
+
* integral part is stored in floating-point format in the location to which \p iptr points.
|
| 946 |
+
* Fractional and integral parts are given the same sign as the argument \p x.
|
| 947 |
+
*
|
| 948 |
+
* \return
|
| 949 |
+
* - __nv_fp128_modf(
|
| 950 |
+
* \cuda_math_formula \pm x \end_cuda_math_formula
|
| 951 |
+
* , \p iptr) returns a result with the same sign as \p x.
|
| 952 |
+
* - __nv_fp128_modf(
|
| 953 |
+
* \cuda_math_formula \pm \infty \end_cuda_math_formula
|
| 954 |
+
* , \p iptr) returns
|
| 955 |
+
* \cuda_math_formula \pm 0 \end_cuda_math_formula
|
| 956 |
+
* and stores
|
| 957 |
+
* \cuda_math_formula \pm \infty \end_cuda_math_formula
|
| 958 |
+
* in the object pointed to by \p iptr.
|
| 959 |
+
* - __nv_fp128_modf(NaN, \p iptr) stores a NaN in the object pointed to by \p iptr and returns a NaN.
|
| 960 |
+
*
|
| 961 |
+
* \note_accuracy_quad
|
| 962 |
+
* \note_fp128_target_arch
|
| 963 |
+
*/
|
| 964 |
+
__DEVICE_FP128_FUNCTIONS_DECL__ __float128 __nv_fp128_modf(__float128 x, __float128* iptr) __DEF_IF_HOST
|
| 965 |
+
/**
|
| 966 |
+
* \ingroup CUDA_MATH_QUAD
|
| 967 |
+
* \brief Calculate \cuda_math_formula \sqrt{x^2+y^2} \end_cuda_math_formula, the square root of the sum of squares of two arguments.
|
| 968 |
+
*
|
| 969 |
+
* \return
|
| 970 |
+
* The length of the hypotenuse of a right triangle whose two sides have lengths
|
| 971 |
+
* \cuda_math_formula |x| \end_cuda_math_formula and \cuda_math_formula |y| \end_cuda_math_formula without undue overflow or underflow.
|
| 972 |
+
* - __nv_fp128_hypot(\p x,\p y), __nv_fp128_hypot(\p y,\p x), and __nv_fp128_hypot(\p x, \p -y) are equivalent.
|
| 973 |
+
* - __nv_fp128_hypot(\p x,
|
| 974 |
+
* \cuda_math_formula \pm 0 \end_cuda_math_formula
|
| 975 |
+
* ) is equivalent to __nv_fp128_fabs(\p x).
|
| 976 |
+
* - __nv_fp128_hypot(
|
| 977 |
+
* \cuda_math_formula \pm \infty \end_cuda_math_formula
|
| 978 |
+
* ,\p y) returns
|
| 979 |
+
* \cuda_math_formula +\infty \end_cuda_math_formula,
|
| 980 |
+
* even if \p y is a NaN.
|
| 981 |
+
* - __nv_fp128_hypot(NaN, \p y) returns NaN, when \p y is not \cuda_math_formula \pm\infty \end_cuda_math_formula.
|
| 982 |
+
*
|
| 983 |
+
* \note_accuracy_quad
|
| 984 |
+
* \note_fp128_target_arch
|
| 985 |
+
*/
|
| 986 |
+
__DEVICE_FP128_FUNCTIONS_DECL__ __float128 __nv_fp128_hypot(__float128 x, __float128 y) __DEF_IF_HOST
|
| 987 |
+
/**
|
| 988 |
+
* \ingroup CUDA_MATH_QUAD
|
| 989 |
+
* \brief Compute
|
| 990 |
+
* \cuda_math_formula x \times y + z \end_cuda_math_formula
|
| 991 |
+
* as a single operation using round-to-nearest-even rounding mode.
|
| 992 |
+
*
|
| 993 |
+
* \return
|
| 994 |
+
* The value of
|
| 995 |
+
* \cuda_math_formula x \times y + z \end_cuda_math_formula
|
| 996 |
+
* as a single ternary operation, rounded once using round-to-nearest,
|
| 997 |
+
* ties-to-even rounding mode.
|
| 998 |
+
* - __nv_fp128_fma(
|
| 999 |
+
* \cuda_math_formula \pm \infty \end_cuda_math_formula
|
| 1000 |
+
* ,
|
| 1001 |
+
* \cuda_math_formula \pm 0 \end_cuda_math_formula
|
| 1002 |
+
* , \p z) returns NaN.
|
| 1003 |
+
* - __nv_fp128_fma(
|
| 1004 |
+
* \cuda_math_formula \pm 0 \end_cuda_math_formula
|
| 1005 |
+
* ,
|
| 1006 |
+
* \cuda_math_formula \pm \infty \end_cuda_math_formula
|
| 1007 |
+
* , \p z) returns NaN.
|
| 1008 |
+
* - __nv_fp128_fma(\p x, \p y,
|
| 1009 |
+
* \cuda_math_formula -\infty \end_cuda_math_formula
|
| 1010 |
+
* ) returns NaN if
|
| 1011 |
+
* \cuda_math_formula x \times y \end_cuda_math_formula
|
| 1012 |
+
* is an exact
|
| 1013 |
+
* \cuda_math_formula +\infty \end_cuda_math_formula.
|
| 1014 |
+
* - __nv_fp128_fma(\p x, \p y,
|
| 1015 |
+
* \cuda_math_formula +\infty \end_cuda_math_formula
|
| 1016 |
+
* ) returns NaN if
|
| 1017 |
+
* \cuda_math_formula x \times y \end_cuda_math_formula
|
| 1018 |
+
* is an exact
|
| 1019 |
+
* \cuda_math_formula -\infty \end_cuda_math_formula.
|
| 1020 |
+
* - __nv_fp128_fma(\p x, \p y, \cuda_math_formula \pm 0 \end_cuda_math_formula) returns \cuda_math_formula \pm 0 \end_cuda_math_formula if \cuda_math_formula x \times y \end_cuda_math_formula is exact \cuda_math_formula \pm 0 \end_cuda_math_formula.
|
| 1021 |
+
* - __nv_fp128_fma(\p x, \p y, \cuda_math_formula \mp 0 \end_cuda_math_formula) returns \cuda_math_formula +0 \end_cuda_math_formula if \cuda_math_formula x \times y \end_cuda_math_formula is exact \cuda_math_formula \pm 0 \end_cuda_math_formula.
|
| 1022 |
+
* - __nv_fp128_fma(\p x, \p y, \p z) returns \cuda_math_formula +0 \end_cuda_math_formula if \cuda_math_formula x \times y + z \end_cuda_math_formula is exactly zero and \cuda_math_formula z \neq 0 \end_cuda_math_formula.
|
| 1023 |
+
* - If either argument is NaN, NaN is returned.
|
| 1024 |
+
*
|
| 1025 |
+
* \note_accuracy_quad
|
| 1026 |
+
* \note_fp128_target_arch
|
| 1027 |
+
*/
|
| 1028 |
+
__DEVICE_FP128_FUNCTIONS_DECL__ __float128 __nv_fp128_fma(__float128 x, __float128 y, __float128 c) __DEF_IF_HOST
|
| 1029 |
+
/**
|
| 1030 |
+
* \ingroup CUDA_MATH_QUAD
|
| 1031 |
+
* \brief Calculate the value of
|
| 1032 |
+
* \cuda_math_formula x\cdot 2^{exp} \end_cuda_math_formula.
|
| 1033 |
+
*
|
| 1034 |
+
* \return
|
| 1035 |
+
* - __nv_fp128_ldexp(
|
| 1036 |
+
* \cuda_math_formula \pm 0 \end_cuda_math_formula
|
| 1037 |
+
* , \p exp) returns
|
| 1038 |
+
* \cuda_math_formula \pm 0 \end_cuda_math_formula.
|
| 1039 |
+
* - __nv_fp128_ldexp(\p x, 0) returns \p x.
|
| 1040 |
+
* - __nv_fp128_ldexp(
|
| 1041 |
+
* \cuda_math_formula \pm \infty \end_cuda_math_formula
|
| 1042 |
+
* , \p exp) returns
|
| 1043 |
+
* \cuda_math_formula \pm \infty \end_cuda_math_formula.
|
| 1044 |
+
* - __nv_fp128_ldexp(NaN, \p exp) returns NaN.
|
| 1045 |
+
*
|
| 1046 |
+
* \note_accuracy_quad
|
| 1047 |
+
* \note_fp128_target_arch
|
| 1048 |
+
*/
|
| 1049 |
+
__DEVICE_FP128_FUNCTIONS_DECL__ __float128 __nv_fp128_ldexp(__float128 x, int exp) __DEF_IF_HOST
|
| 1050 |
+
/**
|
| 1051 |
+
* \ingroup CUDA_MATH_QUAD
|
| 1052 |
+
* \brief Compute the unbiased integer exponent of the input argument.
|
| 1053 |
+
*
|
| 1054 |
+
* \return
|
| 1055 |
+
* - If successful, returns the unbiased exponent of the argument.
|
| 1056 |
+
* - __nv_fp128_ilogb(
|
| 1057 |
+
* \cuda_math_formula \pm 0 \end_cuda_math_formula
|
| 1058 |
+
* ) returns <tt>INT_MIN</tt>.
|
| 1059 |
+
* - __nv_fp128_ilogb(NaN) returns <tt>INT_MIN</tt>.
|
| 1060 |
+
* - __nv_fp128_ilogb(
|
| 1061 |
+
* \cuda_math_formula \pm \infty \end_cuda_math_formula
|
| 1062 |
+
* ) returns <tt>INT_MAX</tt>.
|
| 1063 |
+
* - Note: above behavior does not take into account <tt>FP_ILOGB0</tt> nor <tt>FP_ILOGBNAN</tt>.
|
| 1064 |
+
*
|
| 1065 |
+
* \note_accuracy_quad
|
| 1066 |
+
* \note_fp128_target_arch
|
| 1067 |
+
*/
|
| 1068 |
+
__DEVICE_FP128_FUNCTIONS_DECL__ int __nv_fp128_ilogb(__float128 x) __DEF_IF_HOST
|
| 1069 |
+
/**
|
| 1070 |
+
* \ingroup CUDA_MATH_QUAD
|
| 1071 |
+
* \brief Compute \cuda_math_formula x \cdot y \end_cuda_math_formula, the product of the two floating-point inputs using round-to-nearest-even rounding mode.
|
| 1072 |
+
*
|
| 1073 |
+
* \return Returns \p x * \p y.
|
| 1074 |
+
* - sign of the product \p x * \p y is XOR of the signs of \p x and \p y when neither inputs nor result are NaN.
|
| 1075 |
+
* - __nv_fp128_mul(\p x, \p y) is equivalent to __nv_fp128_mul(\p y, \p x).
|
| 1076 |
+
* - __nv_fp128_mul(\p x, \cuda_math_formula \pm\infty \end_cuda_math_formula) returns \cuda_math_formula \infty \end_cuda_math_formula of appropriate sign for \p x \cuda_math_formula \neq 0 \end_cuda_math_formula.
|
| 1077 |
+
* - __nv_fp128_mul(\cuda_math_formula \pm 0 \end_cuda_math_formula, \cuda_math_formula \pm\infty \end_cuda_math_formula) returns NaN.
|
| 1078 |
+
* - __nv_fp128_mul(\cuda_math_formula \pm 0 \end_cuda_math_formula, \p y) returns \cuda_math_formula 0 \end_cuda_math_formula of appropriate sign for finite \p y.
|
| 1079 |
+
* - If either argument is NaN, NaN is returned.
|
| 1080 |
+
*
|
| 1081 |
+
* \note_accuracy_quad
|
| 1082 |
+
* \note_fp128_target_arch
|
| 1083 |
+
*/
|
| 1084 |
+
__DEVICE_FP128_FUNCTIONS_DECL__ __float128 __nv_fp128_mul(__float128 x, __float128 y) __DEF_IF_HOST
|
| 1085 |
+
/**
|
| 1086 |
+
* \ingroup CUDA_MATH_QUAD
|
| 1087 |
+
* \brief Compute \cuda_math_formula x + y \end_cuda_math_formula, the sum of the two floating-point inputs using round-to-nearest-even rounding mode.
|
| 1088 |
+
*
|
| 1089 |
+
* \return Returns \p x + \p y.
|
| 1090 |
+
* - __nv_fp128_add(\p x, \p y) is equivalent to __nv_fp128_add(\p y, \p x).
|
| 1091 |
+
* - __nv_fp128_add(\p x, \cuda_math_formula \pm\infty \end_cuda_math_formula) returns \cuda_math_formula \pm\infty \end_cuda_math_formula for finite \p x.
|
| 1092 |
+
* - __nv_fp128_add(\cuda_math_formula \pm\infty \end_cuda_math_formula, \cuda_math_formula \pm\infty \end_cuda_math_formula) returns \cuda_math_formula \pm\infty \end_cuda_math_formula.
|
| 1093 |
+
* - __nv_fp128_add(\cuda_math_formula \pm\infty \end_cuda_math_formula, \cuda_math_formula \mp\infty \end_cuda_math_formula) returns NaN.
|
| 1094 |
+
* - __nv_fp128_add(\cuda_math_formula \pm 0 \end_cuda_math_formula, \cuda_math_formula \pm 0 \end_cuda_math_formula) returns \cuda_math_formula \pm 0 \end_cuda_math_formula.
|
| 1095 |
+
* - __nv_fp128_add(\p x, \p -x) returns \cuda_math_formula +0 \end_cuda_math_formula for finite \p x, including \cuda_math_formula \pm 0 \end_cuda_math_formula.
|
| 1096 |
+
* - If either argument is NaN, NaN is returned.
|
| 1097 |
+
*
|
| 1098 |
+
* \note_accuracy_quad
|
| 1099 |
+
* \note_fp128_target_arch
|
| 1100 |
+
*/
|
| 1101 |
+
__DEVICE_FP128_FUNCTIONS_DECL__ __float128 __nv_fp128_add(__float128 x, __float128 y) __DEF_IF_HOST
|
| 1102 |
+
/**
|
| 1103 |
+
* \ingroup CUDA_MATH_QUAD
|
| 1104 |
+
* \brief Compute \cuda_math_formula x - y \end_cuda_math_formula, the difference of the two floating-point inputs using round-to-nearest-even rounding mode.
|
| 1105 |
+
*
|
| 1106 |
+
* \return Returns \p x - \p y.
|
| 1107 |
+
* - __nv_fp128_sub(\cuda_math_formula \pm\infty \end_cuda_math_formula, \p y) returns \cuda_math_formula \pm\infty \end_cuda_math_formula for finite \p y.
|
| 1108 |
+
* - __nv_fp128_sub(\p x, \cuda_math_formula \pm\infty \end_cuda_math_formula) returns \cuda_math_formula \mp\infty \end_cuda_math_formula for finite \p x.
|
| 1109 |
+
* - __nv_fp128_sub(\cuda_math_formula \pm\infty \end_cuda_math_formula, \cuda_math_formula \pm\infty \end_cuda_math_formula) returns NaN.
|
| 1110 |
+
* - __nv_fp128_sub(\cuda_math_formula \pm\infty \end_cuda_math_formula, \cuda_math_formula \mp\infty \end_cuda_math_formula) returns \cuda_math_formula \pm\infty \end_cuda_math_formula.
|
| 1111 |
+
* - __nv_fp128_sub(\cuda_math_formula \pm 0 \end_cuda_math_formula, \cuda_math_formula \mp 0 \end_cuda_math_formula) returns \cuda_math_formula \pm 0 \end_cuda_math_formula.
|
| 1112 |
+
* - __nv_fp128_sub(\p x, \p x) returns \cuda_math_formula +0 \end_cuda_math_formula for finite \p x, including \cuda_math_formula \pm 0 \end_cuda_math_formula.
|
| 1113 |
+
* - If either argument is NaN, NaN is returned.
|
| 1114 |
+
*
|
| 1115 |
+
* \note_accuracy_quad
|
| 1116 |
+
* \note_fp128_target_arch
|
| 1117 |
+
*/
|
| 1118 |
+
__DEVICE_FP128_FUNCTIONS_DECL__ __float128 __nv_fp128_sub(__float128 x, __float128 y) __DEF_IF_HOST
|
| 1119 |
+
/**
|
| 1120 |
+
* \ingroup CUDA_MATH_QUAD
|
| 1121 |
+
* \brief Compute \cuda_math_formula \frac{x}{y} \end_cuda_math_formula, the quotient of the two floating-point inputs using round-to-nearest-even rounding mode.
|
| 1122 |
+
*
|
| 1123 |
+
* \return
|
| 1124 |
+
* - sign of the quotient \p x / \p y is XOR of the signs of \p x and \p y when neither inputs nor result are NaN.
|
| 1125 |
+
* - __nv_fp128_div(\cuda_math_formula \pm 0 \end_cuda_math_formula, \cuda_math_formula \pm 0 \end_cuda_math_formula) returns NaN.
|
| 1126 |
+
* - __nv_fp128_div(\cuda_math_formula \pm\infty \end_cuda_math_formula, \cuda_math_formula \pm\infty \end_cuda_math_formula) returns NaN.
|
| 1127 |
+
* - __nv_fp128_div(\p x, \cuda_math_formula \pm\infty \end_cuda_math_formula) returns \cuda_math_formula 0 \end_cuda_math_formula of appropriate sign for finite \p x.
|
| 1128 |
+
* - __nv_fp128_div(\cuda_math_formula \pm\infty \end_cuda_math_formula, \p y) returns \cuda_math_formula \infty \end_cuda_math_formula of appropriate sign for finite \p y.
|
| 1129 |
+
* - __nv_fp128_div(\p x, \cuda_math_formula \pm 0 \end_cuda_math_formula) returns \cuda_math_formula \infty \end_cuda_math_formula of appropriate sign for \p x \cuda_math_formula \neq 0 \end_cuda_math_formula.
|
| 1130 |
+
* - __nv_fp128_div(\cuda_math_formula \pm 0 \end_cuda_math_formula, \p y) returns \cuda_math_formula 0 \end_cuda_math_formula of appropriate sign for \p y \cuda_math_formula \neq 0 \end_cuda_math_formula.
|
| 1131 |
+
* - If either argument is NaN, NaN is returned.
|
| 1132 |
+
*
|
| 1133 |
+
* \note_accuracy_quad
|
| 1134 |
+
* \note_fp128_target_arch
|
| 1135 |
+
*/
|
| 1136 |
+
__DEVICE_FP128_FUNCTIONS_DECL__ __float128 __nv_fp128_div(__float128 x, __float128 y) __DEF_IF_HOST
|
| 1137 |
+
/**
|
| 1138 |
+
* \ingroup CUDA_MATH_QUAD
|
| 1139 |
+
* \brief Determine whether the input argument is a NaN.
|
| 1140 |
+
*
|
| 1141 |
+
* \return
|
| 1142 |
+
* A nonzero value if and only if \p x is a NaN value.
|
| 1143 |
+
*
|
| 1144 |
+
* \note_fp128_target_arch
|
| 1145 |
+
*/
|
| 1146 |
+
__DEVICE_FP128_FUNCTIONS_DECL__ int __nv_fp128_isnan(__float128 x) __DEF_IF_HOST
|
| 1147 |
+
/**
|
| 1148 |
+
* \ingroup CUDA_MATH_QUAD
|
| 1149 |
+
* \brief Determine whether the pair of inputs is unordered.
|
| 1150 |
+
*
|
| 1151 |
+
* \return
|
| 1152 |
+
* - nonzero value if at least one of input values is a NaN.
|
| 1153 |
+
* - zero otherwise
|
| 1154 |
+
*
|
| 1155 |
+
* \note_fp128_target_arch
|
| 1156 |
+
*/
|
| 1157 |
+
__DEVICE_FP128_FUNCTIONS_DECL__ int __nv_fp128_isunordered(__float128 x, __float128 y) __DEF_IF_HOST
|
| 1158 |
+
#endif /* __FLOAT128_CPP_SPELLING_ENABLED__ */
|
| 1159 |
+
|
| 1160 |
+
|
| 1161 |
+
#ifdef __FLOAT128_C_SPELLING_ENABLED__
|
| 1162 |
+
__DEVICE_FP128_FUNCTIONS_DECL__ _Float128 __nv_fp128_sqrt(_Float128 x) __DEF_IF_HOST
|
| 1163 |
+
__DEVICE_FP128_FUNCTIONS_DECL__ _Float128 __nv_fp128_sin(_Float128 x) __DEF_IF_HOST
|
| 1164 |
+
__DEVICE_FP128_FUNCTIONS_DECL__ _Float128 __nv_fp128_cos(_Float128 x) __DEF_IF_HOST
|
| 1165 |
+
__DEVICE_FP128_FUNCTIONS_DECL__ _Float128 __nv_fp128_tan(_Float128 x) __DEF_IF_HOST
|
| 1166 |
+
__DEVICE_FP128_FUNCTIONS_DECL__ _Float128 __nv_fp128_asin(_Float128 x) __DEF_IF_HOST
|
| 1167 |
+
__DEVICE_FP128_FUNCTIONS_DECL__ _Float128 __nv_fp128_acos(_Float128 x) __DEF_IF_HOST
|
| 1168 |
+
__DEVICE_FP128_FUNCTIONS_DECL__ _Float128 __nv_fp128_atan(_Float128 x) __DEF_IF_HOST
|
| 1169 |
+
__DEVICE_FP128_FUNCTIONS_DECL__ _Float128 __nv_fp128_exp(_Float128 x) __DEF_IF_HOST
|
| 1170 |
+
__DEVICE_FP128_FUNCTIONS_DECL__ _Float128 __nv_fp128_exp2(_Float128 x) __DEF_IF_HOST
|
| 1171 |
+
__DEVICE_FP128_FUNCTIONS_DECL__ _Float128 __nv_fp128_exp10(_Float128 x) __DEF_IF_HOST
|
| 1172 |
+
__DEVICE_FP128_FUNCTIONS_DECL__ _Float128 __nv_fp128_expm1(_Float128 x) __DEF_IF_HOST
|
| 1173 |
+
__DEVICE_FP128_FUNCTIONS_DECL__ _Float128 __nv_fp128_log(_Float128 x) __DEF_IF_HOST
|
| 1174 |
+
__DEVICE_FP128_FUNCTIONS_DECL__ _Float128 __nv_fp128_log2(_Float128 x) __DEF_IF_HOST
|
| 1175 |
+
__DEVICE_FP128_FUNCTIONS_DECL__ _Float128 __nv_fp128_log10(_Float128 x) __DEF_IF_HOST
|
| 1176 |
+
__DEVICE_FP128_FUNCTIONS_DECL__ _Float128 __nv_fp128_log1p(_Float128 x) __DEF_IF_HOST
|
| 1177 |
+
__DEVICE_FP128_FUNCTIONS_DECL__ _Float128 __nv_fp128_pow(_Float128 x, _Float128 y) __DEF_IF_HOST
|
| 1178 |
+
__DEVICE_FP128_FUNCTIONS_DECL__ _Float128 __nv_fp128_sinh(_Float128 x) __DEF_IF_HOST
|
| 1179 |
+
__DEVICE_FP128_FUNCTIONS_DECL__ _Float128 __nv_fp128_cosh(_Float128 x) __DEF_IF_HOST
|
| 1180 |
+
__DEVICE_FP128_FUNCTIONS_DECL__ _Float128 __nv_fp128_tanh(_Float128 x) __DEF_IF_HOST
|
| 1181 |
+
__DEVICE_FP128_FUNCTIONS_DECL__ _Float128 __nv_fp128_asinh(_Float128 x) __DEF_IF_HOST
|
| 1182 |
+
__DEVICE_FP128_FUNCTIONS_DECL__ _Float128 __nv_fp128_acosh(_Float128 x) __DEF_IF_HOST
|
| 1183 |
+
__DEVICE_FP128_FUNCTIONS_DECL__ _Float128 __nv_fp128_atanh(_Float128 x) __DEF_IF_HOST
|
| 1184 |
+
__DEVICE_FP128_FUNCTIONS_DECL__ _Float128 __nv_fp128_trunc(_Float128 x) __DEF_IF_HOST
|
| 1185 |
+
__DEVICE_FP128_FUNCTIONS_DECL__ _Float128 __nv_fp128_floor(_Float128 x) __DEF_IF_HOST
|
| 1186 |
+
__DEVICE_FP128_FUNCTIONS_DECL__ _Float128 __nv_fp128_ceil(_Float128 x) __DEF_IF_HOST
|
| 1187 |
+
__DEVICE_FP128_FUNCTIONS_DECL__ _Float128 __nv_fp128_round(_Float128 x) __DEF_IF_HOST
|
| 1188 |
+
__DEVICE_FP128_FUNCTIONS_DECL__ _Float128 __nv_fp128_rint(_Float128 x) __DEF_IF_HOST
|
| 1189 |
+
__DEVICE_FP128_FUNCTIONS_DECL__ _Float128 __nv_fp128_fabs(_Float128 x) __DEF_IF_HOST
|
| 1190 |
+
__DEVICE_FP128_FUNCTIONS_DECL__ _Float128 __nv_fp128_copysign(_Float128 x, _Float128 y) __DEF_IF_HOST
|
| 1191 |
+
__DEVICE_FP128_FUNCTIONS_DECL__ _Float128 __nv_fp128_fmax(_Float128 x, _Float128 y) __DEF_IF_HOST
|
| 1192 |
+
__DEVICE_FP128_FUNCTIONS_DECL__ _Float128 __nv_fp128_fmin(_Float128 x, _Float128 y) __DEF_IF_HOST
|
| 1193 |
+
__DEVICE_FP128_FUNCTIONS_DECL__ _Float128 __nv_fp128_fdim(_Float128 x, _Float128 y) __DEF_IF_HOST
|
| 1194 |
+
__DEVICE_FP128_FUNCTIONS_DECL__ _Float128 __nv_fp128_fmod(_Float128 x, _Float128 y) __DEF_IF_HOST
|
| 1195 |
+
__DEVICE_FP128_FUNCTIONS_DECL__ _Float128 __nv_fp128_remainder(_Float128 x, _Float128 y) __DEF_IF_HOST
|
| 1196 |
+
__DEVICE_FP128_FUNCTIONS_DECL__ _Float128 __nv_fp128_frexp(_Float128 x, int* nptr) __DEF_IF_HOST
|
| 1197 |
+
__DEVICE_FP128_FUNCTIONS_DECL__ _Float128 __nv_fp128_modf(_Float128 x, _Float128* iptr) __DEF_IF_HOST
|
| 1198 |
+
__DEVICE_FP128_FUNCTIONS_DECL__ _Float128 __nv_fp128_hypot(_Float128 x, _Float128 y) __DEF_IF_HOST
|
| 1199 |
+
__DEVICE_FP128_FUNCTIONS_DECL__ _Float128 __nv_fp128_fma(_Float128 x, _Float128 y, _Float128 c) __DEF_IF_HOST
|
| 1200 |
+
__DEVICE_FP128_FUNCTIONS_DECL__ _Float128 __nv_fp128_ldexp(_Float128 x, int exp) __DEF_IF_HOST
|
| 1201 |
+
__DEVICE_FP128_FUNCTIONS_DECL__ int __nv_fp128_ilogb(_Float128 x) __DEF_IF_HOST
|
| 1202 |
+
__DEVICE_FP128_FUNCTIONS_DECL__ _Float128 __nv_fp128_mul(_Float128 x, _Float128 y) __DEF_IF_HOST
|
| 1203 |
+
__DEVICE_FP128_FUNCTIONS_DECL__ _Float128 __nv_fp128_add(_Float128 x, _Float128 y) __DEF_IF_HOST
|
| 1204 |
+
__DEVICE_FP128_FUNCTIONS_DECL__ _Float128 __nv_fp128_sub(_Float128 x, _Float128 y) __DEF_IF_HOST
|
| 1205 |
+
__DEVICE_FP128_FUNCTIONS_DECL__ _Float128 __nv_fp128_div(_Float128 x, _Float128 y) __DEF_IF_HOST
|
| 1206 |
+
__DEVICE_FP128_FUNCTIONS_DECL__ int __nv_fp128_isnan(_Float128 x) __DEF_IF_HOST
|
| 1207 |
+
__DEVICE_FP128_FUNCTIONS_DECL__ int __nv_fp128_isunordered(_Float128 x, _Float128 y) __DEF_IF_HOST
|
| 1208 |
+
#endif /* __FLOAT_C_SPELLING_ENABLED */
|
| 1209 |
+
|
| 1210 |
+
|
| 1211 |
+
#undef __DEVICE_FP128_FUNCTIONS_DECL__
|
| 1212 |
+
|
| 1213 |
+
#endif /* __cplusplus && __CUDACC__ */
|
| 1214 |
+
|
| 1215 |
+
#endif /* !__DEVICE_FP128_FUNCTIONS_H__ */
|
| 1216 |
+
|
| 1217 |
+
#endif /* !__NV_DISABLE_DEVICE_FP128_FUNCTIONS__ */
|
data/miniconda3/pkgs/cuda-crt-dev_linux-64-12.8.93-h06a4308_3/targets/x86_64-linux/include/crt/device_functions.h
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
data/miniconda3/pkgs/cuda-crt-dev_linux-64-12.8.93-h06a4308_3/targets/x86_64-linux/include/crt/device_functions.hpp
ADDED
|
@@ -0,0 +1,1163 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
| 1 |
+
/*
|
| 2 |
+
* Copyright 1993-2024 NVIDIA Corporation. All rights reserved.
|
| 3 |
+
*
|
| 4 |
+
* NOTICE TO LICENSEE:
|
| 5 |
+
*
|
| 6 |
+
* This source code and/or documentation ("Licensed Deliverables") are
|
| 7 |
+
* subject to NVIDIA intellectual property rights under U.S. and
|
| 8 |
+
* international Copyright laws.
|
| 9 |
+
*
|
| 10 |
+
* These Licensed Deliverables contained herein is PROPRIETARY and
|
| 11 |
+
* CONFIDENTIAL to NVIDIA and is being provided under the terms and
|
| 12 |
+
* conditions of a form of NVIDIA software license agreement by and
|
| 13 |
+
* between NVIDIA and Licensee ("License Agreement") or electronically
|
| 14 |
+
* accepted by Licensee. Notwithstanding any terms or conditions to
|
| 15 |
+
* the contrary in the License Agreement, reproduction or disclosure
|
| 16 |
+
* of the Licensed Deliverables to any third party without the express
|
| 17 |
+
* written consent of NVIDIA is prohibited.
|
| 18 |
+
*
|
| 19 |
+
* NOTWITHSTANDING ANY TERMS OR CONDITIONS TO THE CONTRARY IN THE
|
| 20 |
+
* LICENSE AGREEMENT, NVIDIA MAKES NO REPRESENTATION ABOUT THE
|
| 21 |
+
* SUITABILITY OF THESE LICENSED DELIVERABLES FOR ANY PURPOSE. IT IS
|
| 22 |
+
* PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY OF ANY KIND.
|
| 23 |
+
* NVIDIA DISCLAIMS ALL WARRANTIES WITH REGARD TO THESE LICENSED
|
| 24 |
+
* DELIVERABLES, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY,
|
| 25 |
+
* NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE.
|
| 26 |
+
* NOTWITHSTANDING ANY TERMS OR CONDITIONS TO THE CONTRARY IN THE
|
| 27 |
+
* LICENSE AGREEMENT, IN NO EVENT SHALL NVIDIA BE LIABLE FOR ANY
|
| 28 |
+
* SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, OR ANY
|
| 29 |
+
* DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
|
| 30 |
+
* WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
|
| 31 |
+
* ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
|
| 32 |
+
* OF THESE LICENSED DELIVERABLES.
|
| 33 |
+
*
|
| 34 |
+
* U.S. Government End Users. These Licensed Deliverables are a
|
| 35 |
+
* "commercial item" as that term is defined at 48 C.F.R. 2.101 (OCT
|
| 36 |
+
* 1995), consisting of "commercial computer software" and "commercial
|
| 37 |
+
* computer software documentation" as such terms are used in 48
|
| 38 |
+
* C.F.R. 12.212 (SEPT 1995) and is provided to the U.S. Government
|
| 39 |
+
* only as a commercial end item. Consistent with 48 C.F.R.12.212 and
|
| 40 |
+
* 48 C.F.R. 227.7202-1 through 227.7202-4 (JUNE 1995), all
|
| 41 |
+
* U.S. Government End Users acquire the Licensed Deliverables with
|
| 42 |
+
* only those rights set forth herein.
|
| 43 |
+
*
|
| 44 |
+
* Any use of the Licensed Deliverables in individual and commercial
|
| 45 |
+
* software must include, in the user documentation and internal
|
| 46 |
+
* comments to the code, the above Disclaimer and U.S. Government End
|
| 47 |
+
* Users Notice.
|
| 48 |
+
*/
|
| 49 |
+
|
| 50 |
+
#if !defined(__CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS__)
|
| 51 |
+
#if defined(_MSC_VER)
|
| 52 |
+
#pragma message("crt/device_functions.hpp is an internal header file and must not be used directly. Please use cuda_runtime_api.h or cuda_runtime.h instead.")
|
| 53 |
+
#else
|
| 54 |
+
#warning "crt/device_functions.hpp is an internal header file and must not be used directly. Please use cuda_runtime_api.h or cuda_runtime.h instead."
|
| 55 |
+
#endif
|
| 56 |
+
#define __CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS__
|
| 57 |
+
#define __UNDEF_CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS_DEVICE_FUNCTIONS_HPP__
|
| 58 |
+
#endif
|
| 59 |
+
|
| 60 |
+
#if !defined(__DEVICE_FUNCTIONS_HPP__)
|
| 61 |
+
#define __DEVICE_FUNCTIONS_HPP__
|
| 62 |
+
|
| 63 |
+
/*******************************************************************************
|
| 64 |
+
* *
|
| 65 |
+
* *
|
| 66 |
+
* *
|
| 67 |
+
*******************************************************************************/
|
| 68 |
+
|
| 69 |
+
#if defined(__cplusplus) && defined(__CUDACC__)
|
| 70 |
+
|
| 71 |
+
#if defined(__CUDACC_RTC__)
|
| 72 |
+
#define __DEVICE_FUNCTIONS_DECL__ __device__
|
| 73 |
+
#define __DEVICE_FUNCTIONS_STATIC_DECL__ __device__
|
| 74 |
+
#define __DEVICE_HOST_FUNCTIONS_STATIC_DECL__ __device__ __host__ __cudart_builtin__
|
| 75 |
+
#else
|
| 76 |
+
#define __DEVICE_FUNCTIONS_DECL__ __device__
|
| 77 |
+
#define __DEVICE_FUNCTIONS_STATIC_DECL__ static __inline__ __device__
|
| 78 |
+
#define __DEVICE_HOST_FUNCTIONS_STATIC_DECL__ static __inline__ __device__ __host__ __cudart_builtin__
|
| 79 |
+
#endif /* __CUDACC_RTC__ */
|
| 80 |
+
|
| 81 |
+
#include "builtin_types.h"
|
| 82 |
+
#include "device_types.h"
|
| 83 |
+
#include "host_defines.h"
|
| 84 |
+
|
| 85 |
+
#undef __DEVICE_FUNCTIONS_DECL__
|
| 86 |
+
#undef __DEVICE_FUNCTIONS_STATIC_DECL__
|
| 87 |
+
|
| 88 |
+
#endif /* __cplusplus && __CUDACC__ */
|
| 89 |
+
|
| 90 |
+
/*******************************************************************************
|
| 91 |
+
* *
|
| 92 |
+
* *
|
| 93 |
+
* *
|
| 94 |
+
*******************************************************************************/
|
| 95 |
+
|
| 96 |
+
#ifdef __CUDACC__
|
| 97 |
+
# if defined(__CUDA_ARCH__) && (__CUDA_ARCH__ >= 900)
|
| 98 |
+
#define __CUDA_AND_AT_LEAST_SM_90__
|
| 99 |
+
#endif /* defined(__CUDA_ARCH__) && (__CUDA_ARCH__ >= 900) */
|
| 100 |
+
# if defined(__CUDA_ARCH__) && (__CUDA_ARCH__ >= 700)
|
| 101 |
+
#define __CUDA_AND_AT_LEAST_SM_70__
|
| 102 |
+
#endif /* defined(__CUDA_ARCH__) && (__CUDA_ARCH__ >= 700) */
|
| 103 |
+
# if defined(__CUDA_ARCH__) && (__CUDA_ARCH__ >= 750)
|
| 104 |
+
#define __CUDA_AND_AT_LEAST_SM_75__
|
| 105 |
+
#endif /* defined(__CUDA_ARCH__) && (__CUDA_ARCH__ >= 750) */
|
| 106 |
+
#endif /* __CUDACC__ */
|
| 107 |
+
|
| 108 |
+
/* C++ header for std::memcpy (used for type punning in host-side implementations).
|
| 109 |
+
* When compiling as a CUDA source file memcpy is provided implicitly.
|
| 110 |
+
* !defined(__CUDACC__) implies !defined(__CUDACC_RTC__).
|
| 111 |
+
*/
|
| 112 |
+
#if defined(__cplusplus) && !defined(__CUDACC__)
|
| 113 |
+
#include <cstring>
|
| 114 |
+
#endif /* defined(__cplusplus) && !defined(__CUDACC__) */
|
| 115 |
+
|
| 116 |
+
static __host__ __device__ short __internal_cast_u2s(unsigned short x)
|
| 117 |
+
{
|
| 118 |
+
short res;
|
| 119 |
+
#if defined(__CUDACC__)
|
| 120 |
+
(void)memcpy(&res, &x, sizeof(x));
|
| 121 |
+
#else
|
| 122 |
+
(void)std::memcpy(&res, &x, sizeof(x));
|
| 123 |
+
#endif
|
| 124 |
+
return res;
|
| 125 |
+
}
|
| 126 |
+
|
| 127 |
+
__DEVICE_HOST_FUNCTIONS_STATIC_DECL__ int __vimax_s32_relu(const int a, const int b){
|
| 128 |
+
#ifdef __CUDA_AND_AT_LEAST_SM_90__
|
| 129 |
+
int res;
|
| 130 |
+
asm("{max.s32.relu %0, %1, %2;}" : "=r"(res) : "r"(a), "r"(b));
|
| 131 |
+
return res;
|
| 132 |
+
#else
|
| 133 |
+
// Host and older architecture code
|
| 134 |
+
int ans = max(a, b);
|
| 135 |
+
|
| 136 |
+
return (ans > 0) ? ans : 0;
|
| 137 |
+
#endif
|
| 138 |
+
}
|
| 139 |
+
|
| 140 |
+
__DEVICE_HOST_FUNCTIONS_STATIC_DECL__ unsigned int __vimax_s16x2_relu(const unsigned int a, const unsigned int b){
|
| 141 |
+
unsigned int res;
|
| 142 |
+
#ifdef __CUDA_AND_AT_LEAST_SM_90__
|
| 143 |
+
asm("{max.s16x2.relu %0, %1, %2;}" : "=r"(res) : "r"(a), "r"(b));
|
| 144 |
+
#elif defined(__CUDA_ARCH__)
|
| 145 |
+
res = __vmaxs2(__vmaxs2(a, b), 0U);
|
| 146 |
+
#else
|
| 147 |
+
// Host and older architecture code
|
| 148 |
+
// Separate our high and low bit:
|
| 149 |
+
unsigned short aU_lo = (unsigned short)(a & 0xFFFFU);
|
| 150 |
+
unsigned short aU_hi = (unsigned short)(a >> 16);
|
| 151 |
+
|
| 152 |
+
unsigned short bU_lo = (unsigned short)(b & 0xFFFFU);
|
| 153 |
+
unsigned short bU_hi = (unsigned short)(b >> 16);
|
| 154 |
+
|
| 155 |
+
//cast to signed:
|
| 156 |
+
short aS_lo = __internal_cast_u2s(aU_lo);
|
| 157 |
+
short aS_hi = __internal_cast_u2s(aU_hi);
|
| 158 |
+
|
| 159 |
+
short bS_lo = __internal_cast_u2s(bU_lo);
|
| 160 |
+
short bS_hi = __internal_cast_u2s(bU_hi);
|
| 161 |
+
|
| 162 |
+
// Get answer
|
| 163 |
+
int ansI_lo = max(aS_lo, bS_lo);
|
| 164 |
+
int ansI_hi = max(aS_hi, bS_hi);
|
| 165 |
+
|
| 166 |
+
// relu
|
| 167 |
+
if(ansI_lo < 0){ ansI_lo = 0; }
|
| 168 |
+
if(ansI_hi < 0){ ansI_hi = 0; }
|
| 169 |
+
|
| 170 |
+
// Cast back to unsigned:
|
| 171 |
+
unsigned ansU_lo = (unsigned)ansI_lo;
|
| 172 |
+
unsigned ansU_hi = (unsigned)ansI_hi;
|
| 173 |
+
|
| 174 |
+
// Put answer back together:
|
| 175 |
+
res = ansU_lo | (ansU_hi << 16);
|
| 176 |
+
#endif
|
| 177 |
+
|
| 178 |
+
return res;
|
| 179 |
+
}
|
| 180 |
+
|
| 181 |
+
__DEVICE_HOST_FUNCTIONS_STATIC_DECL__ int __vimin_s32_relu(const int a, const int b){
|
| 182 |
+
#ifdef __CUDA_AND_AT_LEAST_SM_90__
|
| 183 |
+
int res;
|
| 184 |
+
asm("{min.s32.relu %0, %1, %2;}" : "=r"(res) : "r"(a), "r"(b));
|
| 185 |
+
return res;
|
| 186 |
+
#else
|
| 187 |
+
// Host and older architecture code
|
| 188 |
+
int ans = min(a, b);
|
| 189 |
+
|
| 190 |
+
return (ans > 0) ? ans : 0;
|
| 191 |
+
#endif
|
| 192 |
+
}
|
| 193 |
+
|
| 194 |
+
__DEVICE_HOST_FUNCTIONS_STATIC_DECL__ unsigned int __vimin_s16x2_relu(const unsigned int a, const unsigned int b){
|
| 195 |
+
unsigned int res;
|
| 196 |
+
#ifdef __CUDA_AND_AT_LEAST_SM_90__
|
| 197 |
+
asm("{min.s16x2.relu %0, %1, %2;}" : "=r"(res) : "r"(a), "r"(b));
|
| 198 |
+
#elif defined(__CUDA_ARCH__)
|
| 199 |
+
res = __vmaxs2(__vmins2(a, b), 0U);
|
| 200 |
+
#else
|
| 201 |
+
// Host and older architecture code
|
| 202 |
+
// Separate our high and low bit:
|
| 203 |
+
unsigned short aU_lo = (unsigned short)(a & 0xFFFFU);
|
| 204 |
+
unsigned short aU_hi = (unsigned short)(a >> 16);
|
| 205 |
+
|
| 206 |
+
unsigned short bU_lo = (unsigned short)(b & 0xFFFFU);
|
| 207 |
+
unsigned short bU_hi = (unsigned short)(b >> 16);
|
| 208 |
+
|
| 209 |
+
//cast to signed:
|
| 210 |
+
short aS_lo = __internal_cast_u2s(aU_lo);
|
| 211 |
+
short aS_hi = __internal_cast_u2s(aU_hi);
|
| 212 |
+
|
| 213 |
+
short bS_lo = __internal_cast_u2s(bU_lo);
|
| 214 |
+
short bS_hi = __internal_cast_u2s(bU_hi);
|
| 215 |
+
|
| 216 |
+
// Get answer
|
| 217 |
+
int ansI_lo = min(aS_lo, bS_lo);
|
| 218 |
+
int ansI_hi = min(aS_hi, bS_hi);
|
| 219 |
+
|
| 220 |
+
// relu
|
| 221 |
+
if(ansI_lo < 0){ ansI_lo = 0; }
|
| 222 |
+
if(ansI_hi < 0){ ansI_hi = 0; }
|
| 223 |
+
|
| 224 |
+
// Cast back to unsigned:
|
| 225 |
+
unsigned ansU_lo = (unsigned)ansI_lo;
|
| 226 |
+
unsigned ansU_hi = (unsigned)ansI_hi;
|
| 227 |
+
|
| 228 |
+
// Put answer back together:
|
| 229 |
+
res = ansU_lo | (ansU_hi << 16);
|
| 230 |
+
#endif
|
| 231 |
+
|
| 232 |
+
return res;
|
| 233 |
+
}
|
| 234 |
+
|
| 235 |
+
__DEVICE_HOST_FUNCTIONS_STATIC_DECL__ int __vimax3_s32(const int a, const int b, const int c){
|
| 236 |
+
#ifdef __CUDA_AND_AT_LEAST_SM_90__
|
| 237 |
+
int res;
|
| 238 |
+
asm ("{.reg .s32 t1; \n\t"
|
| 239 |
+
"max.s32 t1, %1, %2; \n\t"
|
| 240 |
+
"max.s32 %0, t1, %3;}\n\t"
|
| 241 |
+
: "=r"(res) : "r"(a), "r"(b), "r"(c));
|
| 242 |
+
return res;
|
| 243 |
+
#else
|
| 244 |
+
// Host and older architecture code
|
| 245 |
+
return max(max(a, b), c);
|
| 246 |
+
#endif
|
| 247 |
+
}
|
| 248 |
+
|
| 249 |
+
__DEVICE_HOST_FUNCTIONS_STATIC_DECL__ unsigned int __vimax3_s16x2(const unsigned int a, const unsigned int b, const unsigned int c){
|
| 250 |
+
unsigned int res;
|
| 251 |
+
#ifdef __CUDA_AND_AT_LEAST_SM_90__
|
| 252 |
+
// Future asm code (naming/syntax may change):
|
| 253 |
+
asm ("{.reg .b32 t1; \n\t"
|
| 254 |
+
"max.s16x2 t1, %1, %2; \n\t"
|
| 255 |
+
"max.s16x2 %0, t1, %3;}\n\t"
|
| 256 |
+
: "=r"(res) : "r"(a), "r"(b), "r"(c));
|
| 257 |
+
#elif defined(__CUDA_AND_AT_LEAST_SM_70__)
|
| 258 |
+
res = __vmaxs2(__vmaxs2(a, b), c);
|
| 259 |
+
#else
|
| 260 |
+
// Host and older architecture code
|
| 261 |
+
// Separate our high and low bit:
|
| 262 |
+
unsigned short aU_lo = (unsigned short)(a & 0xFFFFU);
|
| 263 |
+
unsigned short aU_hi = (unsigned short)(a >> 16);
|
| 264 |
+
|
| 265 |
+
unsigned short bU_lo = (unsigned short)(b & 0xFFFFU);
|
| 266 |
+
unsigned short bU_hi = (unsigned short)(b >> 16);
|
| 267 |
+
|
| 268 |
+
unsigned short cU_lo = (unsigned short)(c & 0xFFFFU);
|
| 269 |
+
unsigned short cU_hi = (unsigned short)(c >> 16);
|
| 270 |
+
|
| 271 |
+
//cast to signed:
|
| 272 |
+
short aS_lo = __internal_cast_u2s(aU_lo);
|
| 273 |
+
short aS_hi = __internal_cast_u2s(aU_hi);
|
| 274 |
+
|
| 275 |
+
short bS_lo = __internal_cast_u2s(bU_lo);
|
| 276 |
+
short bS_hi = __internal_cast_u2s(bU_hi);
|
| 277 |
+
|
| 278 |
+
short cS_lo = __internal_cast_u2s(cU_lo);
|
| 279 |
+
short cS_hi = __internal_cast_u2s(cU_hi);
|
| 280 |
+
|
| 281 |
+
// Get answer
|
| 282 |
+
unsigned int ansU_lo = (unsigned int)max(max(aS_lo, bS_lo), cS_lo);
|
| 283 |
+
unsigned int ansU_hi = (unsigned int)max(max(aS_hi, bS_hi), cS_hi);
|
| 284 |
+
|
| 285 |
+
// Put answer back together:
|
| 286 |
+
res = (ansU_lo & 0x0000FFFFU) | (ansU_hi << 16);
|
| 287 |
+
#endif
|
| 288 |
+
return res;
|
| 289 |
+
}
|
| 290 |
+
|
| 291 |
+
__DEVICE_HOST_FUNCTIONS_STATIC_DECL__ unsigned int __vimax3_u32(const unsigned int a, const unsigned int b, const unsigned int c){
|
| 292 |
+
#ifdef __CUDA_AND_AT_LEAST_SM_90__
|
| 293 |
+
int res;
|
| 294 |
+
asm ("{.reg .u32 t1; \n\t"
|
| 295 |
+
"max.u32 t1, %1, %2; \n\t"
|
| 296 |
+
"max.u32 %0, t1, %3;}\n\t"
|
| 297 |
+
: "=r"(res) : "r"(a), "r"(b), "r"(c));
|
| 298 |
+
return res;
|
| 299 |
+
#else
|
| 300 |
+
// Host and older architecture code
|
| 301 |
+
return max(max(a, b), c);
|
| 302 |
+
#endif
|
| 303 |
+
}
|
| 304 |
+
|
| 305 |
+
__DEVICE_HOST_FUNCTIONS_STATIC_DECL__ unsigned int __vimax3_u16x2(const unsigned int a, const unsigned int b, const unsigned int c){
|
| 306 |
+
unsigned int res;
|
| 307 |
+
#ifdef __CUDA_AND_AT_LEAST_SM_90__
|
| 308 |
+
asm ("{.reg .b32 t1; \n\t"
|
| 309 |
+
"max.u16x2 t1, %1, %2; \n\t"
|
| 310 |
+
"max.u16x2 %0, t1, %3;}\n\t"
|
| 311 |
+
: "=r"(res) : "r"(a), "r"(b), "r"(c));
|
| 312 |
+
#elif defined(__CUDA_ARCH__)
|
| 313 |
+
res = __vmaxu2(__vmaxu2(a, b), c);
|
| 314 |
+
#else
|
| 315 |
+
// Host and older architecture code
|
| 316 |
+
// Separate our high and low bit:
|
| 317 |
+
unsigned short aU_lo = (unsigned short)(a & 0xFFFFU);
|
| 318 |
+
unsigned short aU_hi = (unsigned short)(a >> 16);
|
| 319 |
+
|
| 320 |
+
unsigned short bU_lo = (unsigned short)(b & 0xFFFFU);
|
| 321 |
+
unsigned short bU_hi = (unsigned short)(b >> 16);
|
| 322 |
+
|
| 323 |
+
unsigned short cU_lo = (unsigned short)(c & 0xFFFFU);
|
| 324 |
+
unsigned short cU_hi = (unsigned short)(c >> 16);
|
| 325 |
+
|
| 326 |
+
// Get answer
|
| 327 |
+
unsigned short ansU_lo = (unsigned short)max(max(aU_lo, bU_lo), cU_lo);
|
| 328 |
+
unsigned short ansU_hi = (unsigned short)max(max(aU_hi, bU_hi), cU_hi);
|
| 329 |
+
|
| 330 |
+
// Put answer back together:
|
| 331 |
+
res = ((unsigned int) ansU_lo) | (((unsigned int) ansU_hi) << 16);
|
| 332 |
+
#endif
|
| 333 |
+
|
| 334 |
+
return res;
|
| 335 |
+
}
|
| 336 |
+
|
| 337 |
+
__DEVICE_HOST_FUNCTIONS_STATIC_DECL__ int __vimin3_s32(const int a, const int b, const int c){
|
| 338 |
+
#ifdef __CUDA_AND_AT_LEAST_SM_90__
|
| 339 |
+
int res;
|
| 340 |
+
asm ("{.reg .s32 t1; \n\t"
|
| 341 |
+
"min.s32 t1, %1, %2; \n\t"
|
| 342 |
+
"min.s32 %0, t1, %3;}\n\t"
|
| 343 |
+
: "=r"(res) : "r"(a), "r"(b), "r"(c));
|
| 344 |
+
return res;
|
| 345 |
+
#else
|
| 346 |
+
// Host and older architecture code
|
| 347 |
+
return min(min(a, b), c);
|
| 348 |
+
#endif
|
| 349 |
+
}
|
| 350 |
+
|
| 351 |
+
__DEVICE_HOST_FUNCTIONS_STATIC_DECL__ unsigned int __vimin3_s16x2(const unsigned int a, const unsigned int b, const unsigned int c){
|
| 352 |
+
unsigned int res;
|
| 353 |
+
#ifdef __CUDA_AND_AT_LEAST_SM_90__
|
| 354 |
+
asm ("{.reg .b32 t1; \n\t"
|
| 355 |
+
"min.s16x2 t1, %1, %2; \n\t"
|
| 356 |
+
"min.s16x2 %0, t1, %3;}\n\t"
|
| 357 |
+
: "=r"(res) : "r"(a), "r"(b), "r"(c));
|
| 358 |
+
#elif defined(__CUDA_AND_AT_LEAST_SM_70__)
|
| 359 |
+
res = __vmins2(__vmins2(a, b), c);
|
| 360 |
+
#else
|
| 361 |
+
// Host and older architecture code
|
| 362 |
+
// Separate our high and low bit:
|
| 363 |
+
unsigned short aU_lo = (unsigned short)(a & 0xFFFFU);
|
| 364 |
+
unsigned short aU_hi = (unsigned short)(a >> 16);
|
| 365 |
+
|
| 366 |
+
unsigned short bU_lo = (unsigned short)(b & 0xFFFFU);
|
| 367 |
+
unsigned short bU_hi = (unsigned short)(b >> 16);
|
| 368 |
+
|
| 369 |
+
unsigned short cU_lo = (unsigned short)(c & 0xFFFFU);
|
| 370 |
+
unsigned short cU_hi = (unsigned short)(c >> 16);
|
| 371 |
+
|
| 372 |
+
//cast to signed:
|
| 373 |
+
short aS_lo = __internal_cast_u2s(aU_lo);
|
| 374 |
+
short aS_hi = __internal_cast_u2s(aU_hi);
|
| 375 |
+
|
| 376 |
+
short bS_lo = __internal_cast_u2s(bU_lo);
|
| 377 |
+
short bS_hi = __internal_cast_u2s(bU_hi);
|
| 378 |
+
|
| 379 |
+
short cS_lo = __internal_cast_u2s(cU_lo);
|
| 380 |
+
short cS_hi = __internal_cast_u2s(cU_hi);
|
| 381 |
+
|
| 382 |
+
// Get answer
|
| 383 |
+
unsigned int ansU_lo = (unsigned int)min(min(aS_lo, bS_lo), cS_lo);
|
| 384 |
+
unsigned int ansU_hi = (unsigned int)min(min(aS_hi, bS_hi), cS_hi);
|
| 385 |
+
|
| 386 |
+
// Put answer back together:
|
| 387 |
+
res = (ansU_lo & 0x0000FFFFU) | (ansU_hi << 16);
|
| 388 |
+
#endif
|
| 389 |
+
|
| 390 |
+
return res;
|
| 391 |
+
}
|
| 392 |
+
|
| 393 |
+
__DEVICE_HOST_FUNCTIONS_STATIC_DECL__ unsigned int __vimin3_u32(const unsigned int a, const unsigned int b, const unsigned int c){
|
| 394 |
+
#ifdef __CUDA_AND_AT_LEAST_SM_90__
|
| 395 |
+
int res;
|
| 396 |
+
asm ("{.reg .u32 t1; \n\t"
|
| 397 |
+
"min.u32 t1, %1, %2; \n\t"
|
| 398 |
+
"min.u32 %0, t1, %3;}\n\t"
|
| 399 |
+
: "=r"(res) : "r"(a), "r"(b), "r"(c));
|
| 400 |
+
return res;
|
| 401 |
+
#else
|
| 402 |
+
// Host and older architecture code
|
| 403 |
+
return min(min(a, b), c);
|
| 404 |
+
#endif
|
| 405 |
+
}
|
| 406 |
+
|
| 407 |
+
__DEVICE_HOST_FUNCTIONS_STATIC_DECL__ unsigned int __vimin3_u16x2(const unsigned int a, const unsigned int b, const unsigned int c){
|
| 408 |
+
unsigned int res;
|
| 409 |
+
#ifdef __CUDA_AND_AT_LEAST_SM_90__
|
| 410 |
+
asm ("{.reg .b32 t1; \n\t"
|
| 411 |
+
"min.u16x2 t1, %1, %2; \n\t"
|
| 412 |
+
"min.u16x2 %0, t1, %3;}\n\t"
|
| 413 |
+
: "=r"(res) : "r"(a), "r"(b), "r"(c));
|
| 414 |
+
#elif defined(__CUDA_ARCH__)
|
| 415 |
+
res = __vminu2(__vminu2(a, b), c);
|
| 416 |
+
#else
|
| 417 |
+
// Host and older architecture code
|
| 418 |
+
// Separate our high and low bit:
|
| 419 |
+
unsigned short aU_lo = (unsigned short)(a & 0xFFFFU);
|
| 420 |
+
unsigned short aU_hi = (unsigned short)(a >> 16);
|
| 421 |
+
|
| 422 |
+
unsigned short bU_lo = (unsigned short)(b & 0xFFFFU);
|
| 423 |
+
unsigned short bU_hi = (unsigned short)(b >> 16);
|
| 424 |
+
|
| 425 |
+
unsigned short cU_lo = (unsigned short)(c & 0xFFFFU);
|
| 426 |
+
unsigned short cU_hi = (unsigned short)(c >> 16);
|
| 427 |
+
|
| 428 |
+
// Get answer
|
| 429 |
+
unsigned short ansU_lo = (unsigned short)min(min(aU_lo, bU_lo), cU_lo);
|
| 430 |
+
unsigned short ansU_hi = (unsigned short)min(min(aU_hi, bU_hi), cU_hi);
|
| 431 |
+
|
| 432 |
+
// Put answer back together:
|
| 433 |
+
res = ((unsigned int) ansU_lo) | (((unsigned int) ansU_hi) << 16);
|
| 434 |
+
#endif
|
| 435 |
+
|
| 436 |
+
return res;
|
| 437 |
+
}
|
| 438 |
+
|
| 439 |
+
__DEVICE_HOST_FUNCTIONS_STATIC_DECL__ int __vimax3_s32_relu(const int a, const int b, const int c){
|
| 440 |
+
#ifdef __CUDA_AND_AT_LEAST_SM_90__
|
| 441 |
+
int res;
|
| 442 |
+
asm ("{.reg .s32 t1; \n\t"
|
| 443 |
+
"max.s32.relu t1, %1, %2; \n\t"
|
| 444 |
+
"max.s32.relu %0, t1, %3;}\n\t"
|
| 445 |
+
: "=r"(res) : "r"(a), "r"(b), "r"(c));
|
| 446 |
+
return res;
|
| 447 |
+
#else
|
| 448 |
+
// Host and older architecture code
|
| 449 |
+
int ans = max(max(a, b), c);
|
| 450 |
+
|
| 451 |
+
return (ans > 0) ? ans : 0;
|
| 452 |
+
#endif
|
| 453 |
+
}
|
| 454 |
+
|
| 455 |
+
__DEVICE_HOST_FUNCTIONS_STATIC_DECL__ unsigned int __vimax3_s16x2_relu(const unsigned int a, const unsigned int b, const unsigned int c){
|
| 456 |
+
unsigned int res;
|
| 457 |
+
#ifdef __CUDA_AND_AT_LEAST_SM_90__
|
| 458 |
+
asm ("{.reg .b32 t1; \n\t"
|
| 459 |
+
"max.s16x2.relu t1, %1, %2; \n\t"
|
| 460 |
+
"max.s16x2.relu %0, t1, %3;}\n\t"
|
| 461 |
+
: "=r"(res) : "r"(a), "r"(b), "r"(c));
|
| 462 |
+
#elif defined(__CUDA_AND_AT_LEAST_SM_75__)
|
| 463 |
+
res = __vimax_s16x2_relu(__vmaxs2(a, b), c);
|
| 464 |
+
#else
|
| 465 |
+
// Host and older architecture code
|
| 466 |
+
// Separate our high and low bit:
|
| 467 |
+
unsigned short aU_lo = (unsigned short)(a & 0xFFFFU);
|
| 468 |
+
unsigned short aU_hi = (unsigned short)(a >> 16);
|
| 469 |
+
|
| 470 |
+
unsigned short bU_lo = (unsigned short)(b & 0xFFFFU);
|
| 471 |
+
unsigned short bU_hi = (unsigned short)(b >> 16);
|
| 472 |
+
|
| 473 |
+
unsigned short cU_lo = (unsigned short)(c & 0xFFFFU);
|
| 474 |
+
unsigned short cU_hi = (unsigned short)(c >> 16);
|
| 475 |
+
|
| 476 |
+
//cast to signed:
|
| 477 |
+
short aS_lo = __internal_cast_u2s(aU_lo);
|
| 478 |
+
short aS_hi = __internal_cast_u2s(aU_hi);
|
| 479 |
+
|
| 480 |
+
short bS_lo = __internal_cast_u2s(bU_lo);
|
| 481 |
+
short bS_hi = __internal_cast_u2s(bU_hi);
|
| 482 |
+
|
| 483 |
+
short cS_lo = __internal_cast_u2s(cU_lo);
|
| 484 |
+
short cS_hi = __internal_cast_u2s(cU_hi);
|
| 485 |
+
|
| 486 |
+
// Get answer
|
| 487 |
+
unsigned ansU_lo = (unsigned)max(0, max(max(aS_lo, bS_lo), cS_lo));
|
| 488 |
+
unsigned ansU_hi = (unsigned)max(0, max(max(aS_hi, bS_hi), cS_hi));
|
| 489 |
+
|
| 490 |
+
// Put answer back together:
|
| 491 |
+
res = ansU_lo | (ansU_hi << 16);
|
| 492 |
+
#endif
|
| 493 |
+
|
| 494 |
+
return res;
|
| 495 |
+
}
|
| 496 |
+
|
| 497 |
+
__DEVICE_HOST_FUNCTIONS_STATIC_DECL__ int __vimin3_s32_relu(const int a, const int b, const int c){
|
| 498 |
+
#ifdef __CUDA_AND_AT_LEAST_SM_90__
|
| 499 |
+
int res;
|
| 500 |
+
asm ("{.reg .s32 t1; \n\t"
|
| 501 |
+
"min.s32.relu t1, %1, %2; \n\t"
|
| 502 |
+
"min.s32.relu %0, t1, %3;}\n\t"
|
| 503 |
+
: "=r"(res) : "r"(a), "r"(b), "r"(c));
|
| 504 |
+
return res;
|
| 505 |
+
#else
|
| 506 |
+
// Host and older architecture code
|
| 507 |
+
int ans = min(min(a, b), c);
|
| 508 |
+
|
| 509 |
+
return (ans > 0) ? ans : 0;
|
| 510 |
+
#endif
|
| 511 |
+
}
|
| 512 |
+
|
| 513 |
+
__DEVICE_HOST_FUNCTIONS_STATIC_DECL__ unsigned int __vimin3_s16x2_relu(const unsigned int a, const unsigned int b, const unsigned int c){
|
| 514 |
+
unsigned res;
|
| 515 |
+
#ifdef __CUDA_AND_AT_LEAST_SM_90__
|
| 516 |
+
asm ("{.reg .b32 t1; \n\t"
|
| 517 |
+
"min.s16x2.relu t1, %1, %2; \n\t"
|
| 518 |
+
"min.s16x2.relu %0, t1, %3;}\n\t"
|
| 519 |
+
: "=r"(res) : "r"(a), "r"(b), "r"(c));
|
| 520 |
+
#elif defined(__CUDA_AND_AT_LEAST_SM_75__)
|
| 521 |
+
res = __vimin_s16x2_relu(__vmins2(a, b), c);
|
| 522 |
+
#else
|
| 523 |
+
// Host and older architecture code
|
| 524 |
+
// Separate our high and low bit:
|
| 525 |
+
unsigned short aU_lo = (unsigned short)(a & 0xFFFFU);
|
| 526 |
+
unsigned short aU_hi = (unsigned short)(a >> 16);
|
| 527 |
+
|
| 528 |
+
unsigned short bU_lo = (unsigned short)(b & 0xFFFFU);
|
| 529 |
+
unsigned short bU_hi = (unsigned short)(b >> 16);
|
| 530 |
+
|
| 531 |
+
unsigned short cU_lo = (unsigned short)(c & 0xFFFFU);
|
| 532 |
+
unsigned short cU_hi = (unsigned short)(c >> 16);
|
| 533 |
+
|
| 534 |
+
//cast to signed:
|
| 535 |
+
short aS_lo = __internal_cast_u2s(aU_lo);
|
| 536 |
+
short aS_hi = __internal_cast_u2s(aU_hi);
|
| 537 |
+
|
| 538 |
+
short bS_lo = __internal_cast_u2s(bU_lo);
|
| 539 |
+
short bS_hi = __internal_cast_u2s(bU_hi);
|
| 540 |
+
|
| 541 |
+
short cS_lo = __internal_cast_u2s(cU_lo);
|
| 542 |
+
short cS_hi = __internal_cast_u2s(cU_hi);
|
| 543 |
+
|
| 544 |
+
// Get answer
|
| 545 |
+
unsigned ansU_lo = (unsigned)max(0, min(min(aS_lo, bS_lo), cS_lo));
|
| 546 |
+
unsigned ansU_hi = (unsigned)max(0, min(min(aS_hi, bS_hi), cS_hi));
|
| 547 |
+
|
| 548 |
+
// Put answer back together:
|
| 549 |
+
res = ansU_lo | (ansU_hi << 16);
|
| 550 |
+
|
| 551 |
+
#endif
|
| 552 |
+
|
| 553 |
+
return res;
|
| 554 |
+
}
|
| 555 |
+
|
| 556 |
+
__DEVICE_HOST_FUNCTIONS_STATIC_DECL__ int __viaddmax_s32(const int a, const int b, const int c){
|
| 557 |
+
#ifdef __CUDA_AND_AT_LEAST_SM_90__
|
| 558 |
+
int res;
|
| 559 |
+
asm ("{.reg .s32 t1; \n\t"
|
| 560 |
+
"add.s32 t1, %1, %2; \n\t"
|
| 561 |
+
"max.s32 %0, t1, %3;}\n\t"
|
| 562 |
+
: "=r"(res) : "r"(a), "r"(b), "r"(c));
|
| 563 |
+
return res;
|
| 564 |
+
#else
|
| 565 |
+
// Host and older architecture code
|
| 566 |
+
return max(a + b, c);
|
| 567 |
+
#endif
|
| 568 |
+
}
|
| 569 |
+
|
| 570 |
+
__DEVICE_HOST_FUNCTIONS_STATIC_DECL__ unsigned int __viaddmax_s16x2(const unsigned int a, const unsigned int b, const unsigned int c){
|
| 571 |
+
unsigned int res;
|
| 572 |
+
#ifdef __CUDA_AND_AT_LEAST_SM_90__
|
| 573 |
+
asm ("{.reg .b32 t1; \n\t"
|
| 574 |
+
"add.s16x2 t1, %1, %2; \n\t"
|
| 575 |
+
"max.s16x2 %0, t1, %3;}\n\t"
|
| 576 |
+
: "=r"(res) : "r"(a), "r"(b), "r"(c));
|
| 577 |
+
#elif defined(__CUDA_ARCH__)
|
| 578 |
+
res = __vmaxs2(__vadd2(a, b), c);
|
| 579 |
+
#else
|
| 580 |
+
// Host and older architecture code
|
| 581 |
+
// Separate our high and low bit:
|
| 582 |
+
unsigned short aU_lo = (unsigned short)(a & 0xFFFFU);
|
| 583 |
+
unsigned short aU_hi = (unsigned short)(a >> 16);
|
| 584 |
+
|
| 585 |
+
unsigned short bU_lo = (unsigned short)(b & 0xFFFFU);
|
| 586 |
+
unsigned short bU_hi = (unsigned short)(b >> 16);
|
| 587 |
+
|
| 588 |
+
unsigned short cU_lo = (unsigned short)(c & 0xFFFFU);
|
| 589 |
+
unsigned short cU_hi = (unsigned short)(c >> 16);
|
| 590 |
+
|
| 591 |
+
aU_lo += bU_lo;
|
| 592 |
+
aU_hi += bU_hi;
|
| 593 |
+
|
| 594 |
+
//cast to signed:
|
| 595 |
+
short sS_lo = __internal_cast_u2s(aU_lo);
|
| 596 |
+
short sS_hi = __internal_cast_u2s(aU_hi);
|
| 597 |
+
|
| 598 |
+
short cS_lo = __internal_cast_u2s(cU_lo);
|
| 599 |
+
short cS_hi = __internal_cast_u2s(cU_hi);
|
| 600 |
+
|
| 601 |
+
// Get answer
|
| 602 |
+
unsigned ansU_lo = (unsigned)max(sS_lo, cS_lo);
|
| 603 |
+
unsigned ansU_hi = (unsigned)max(sS_hi, cS_hi);
|
| 604 |
+
|
| 605 |
+
// Put answer back together:
|
| 606 |
+
res = (ansU_lo & 0x0000FFFFU) | (ansU_hi << 16);
|
| 607 |
+
#endif
|
| 608 |
+
|
| 609 |
+
return res;
|
| 610 |
+
}
|
| 611 |
+
|
| 612 |
+
__DEVICE_HOST_FUNCTIONS_STATIC_DECL__ unsigned int __viaddmax_u32(const unsigned int a, const unsigned int b, const unsigned int c){
|
| 613 |
+
#ifdef __CUDA_AND_AT_LEAST_SM_90__
|
| 614 |
+
unsigned int res;
|
| 615 |
+
asm ("{.reg .u32 t1; \n\t"
|
| 616 |
+
"add.u32 t1, %1, %2; \n\t"
|
| 617 |
+
"max.u32 %0, t1, %3;}\n\t"
|
| 618 |
+
: "=r"(res) : "r"(a), "r"(b), "r"(c));
|
| 619 |
+
return res;
|
| 620 |
+
#else
|
| 621 |
+
// Host and older architecture code
|
| 622 |
+
return max(a + b, c);
|
| 623 |
+
#endif
|
| 624 |
+
}
|
| 625 |
+
|
| 626 |
+
__DEVICE_HOST_FUNCTIONS_STATIC_DECL__ unsigned int __viaddmax_u16x2(const unsigned int a, const unsigned int b, const unsigned int c){
|
| 627 |
+
unsigned int res;
|
| 628 |
+
#ifdef __CUDA_AND_AT_LEAST_SM_90__
|
| 629 |
+
asm ("{.reg .b32 t1; \n\t"
|
| 630 |
+
"add.u16x2 t1, %1, %2; \n\t"
|
| 631 |
+
"max.u16x2 %0, t1, %3;}\n\t"
|
| 632 |
+
: "=r"(res) : "r"(a), "r"(b), "r"(c));
|
| 633 |
+
#elif defined(__CUDA_ARCH__)
|
| 634 |
+
res = __vmaxu2(__vadd2(a, b), c);
|
| 635 |
+
#else
|
| 636 |
+
// Host and older architecture code
|
| 637 |
+
// Separate our high and low bit:
|
| 638 |
+
unsigned short aU_lo = (unsigned short)(a & 0xFFFFU);
|
| 639 |
+
unsigned short aU_hi = (unsigned short)(a >> 16);
|
| 640 |
+
|
| 641 |
+
unsigned short bU_lo = (unsigned short)(b & 0xFFFFU);
|
| 642 |
+
unsigned short bU_hi = (unsigned short)(b >> 16);
|
| 643 |
+
|
| 644 |
+
unsigned short cU_lo = (unsigned short)(c & 0xFFFFU);
|
| 645 |
+
unsigned short cU_hi = (unsigned short)(c >> 16);
|
| 646 |
+
|
| 647 |
+
// Get answer
|
| 648 |
+
unsigned short ansU_lo = (unsigned short)max((unsigned short)(aU_lo + bU_lo), cU_lo);
|
| 649 |
+
unsigned short ansU_hi = (unsigned short)max((unsigned short)(aU_hi + bU_hi), cU_hi);
|
| 650 |
+
|
| 651 |
+
// Put answer back together:
|
| 652 |
+
res = ((unsigned int) ansU_lo) | (((unsigned int) ansU_hi) << 16);
|
| 653 |
+
#endif
|
| 654 |
+
|
| 655 |
+
return res;
|
| 656 |
+
}
|
| 657 |
+
|
| 658 |
+
__DEVICE_HOST_FUNCTIONS_STATIC_DECL__ int __viaddmin_s32(const int a, const int b, const int c){
|
| 659 |
+
#ifdef __CUDA_AND_AT_LEAST_SM_90__
|
| 660 |
+
int res;
|
| 661 |
+
asm ("{.reg .s32 t1; \n\t"
|
| 662 |
+
"add.s32 t1, %1, %2; \n\t"
|
| 663 |
+
"min.s32 %0, t1, %3;}\n\t"
|
| 664 |
+
: "=r"(res) : "r"(a), "r"(b), "r"(c));
|
| 665 |
+
return res;
|
| 666 |
+
#else
|
| 667 |
+
// Host and older architecture code
|
| 668 |
+
return min(a + b, c);
|
| 669 |
+
#endif
|
| 670 |
+
}
|
| 671 |
+
|
| 672 |
+
__DEVICE_HOST_FUNCTIONS_STATIC_DECL__ unsigned int __viaddmin_s16x2(const unsigned int a, const unsigned int b, const unsigned int c){
|
| 673 |
+
unsigned int res;
|
| 674 |
+
#ifdef __CUDA_AND_AT_LEAST_SM_90__
|
| 675 |
+
asm ("{.reg .b32 t1; \n\t"
|
| 676 |
+
"add.s16x2 t1, %1, %2; \n\t"
|
| 677 |
+
"min.s16x2 %0, t1, %3;}\n\t"
|
| 678 |
+
: "=r"(res) : "r"(a), "r"(b), "r"(c));
|
| 679 |
+
#elif defined(__CUDA_ARCH__)
|
| 680 |
+
res = __vmins2(__vadd2(a, b), c);
|
| 681 |
+
#else
|
| 682 |
+
// Host and older architecture code
|
| 683 |
+
// Separate our high and low bit:
|
| 684 |
+
unsigned short aU_lo = (unsigned short)(a & 0xFFFFU);
|
| 685 |
+
unsigned short aU_hi = (unsigned short)(a >> 16);
|
| 686 |
+
|
| 687 |
+
unsigned short bU_lo = (unsigned short)(b & 0xFFFFU);
|
| 688 |
+
unsigned short bU_hi = (unsigned short)(b >> 16);
|
| 689 |
+
|
| 690 |
+
unsigned short cU_lo = (unsigned short)(c & 0xFFFFU);
|
| 691 |
+
unsigned short cU_hi = (unsigned short)(c >> 16);
|
| 692 |
+
|
| 693 |
+
aU_lo += bU_lo;
|
| 694 |
+
aU_hi += bU_hi;
|
| 695 |
+
|
| 696 |
+
//cast to signed:
|
| 697 |
+
short sS_lo = __internal_cast_u2s(aU_lo);
|
| 698 |
+
short sS_hi = __internal_cast_u2s(aU_hi);
|
| 699 |
+
|
| 700 |
+
short cS_lo = __internal_cast_u2s(cU_lo);
|
| 701 |
+
short cS_hi = __internal_cast_u2s(cU_hi);
|
| 702 |
+
|
| 703 |
+
// Get answer
|
| 704 |
+
unsigned ansU_lo = (unsigned)min(sS_lo, cS_lo);
|
| 705 |
+
unsigned ansU_hi = (unsigned)min(sS_hi, cS_hi);
|
| 706 |
+
|
| 707 |
+
// Put answer back together:
|
| 708 |
+
res = (ansU_lo & 0x0000FFFFU) | (ansU_hi << 16);
|
| 709 |
+
#endif
|
| 710 |
+
|
| 711 |
+
return res;
|
| 712 |
+
}
|
| 713 |
+
|
| 714 |
+
__DEVICE_HOST_FUNCTIONS_STATIC_DECL__ unsigned int __viaddmin_u32(const unsigned int a, const unsigned int b, const unsigned int c){
|
| 715 |
+
#ifdef __CUDA_AND_AT_LEAST_SM_90__
|
| 716 |
+
unsigned int res;
|
| 717 |
+
asm ("{.reg .u32 t1; \n\t"
|
| 718 |
+
"add.u32 t1, %1, %2; \n\t"
|
| 719 |
+
"min.u32 %0, t1, %3;}\n\t"
|
| 720 |
+
: "=r"(res) : "r"(a), "r"(b), "r"(c));
|
| 721 |
+
return res;
|
| 722 |
+
#else
|
| 723 |
+
// Host and older architecture code
|
| 724 |
+
return min(a + b, c);
|
| 725 |
+
#endif
|
| 726 |
+
}
|
| 727 |
+
|
| 728 |
+
__DEVICE_HOST_FUNCTIONS_STATIC_DECL__ unsigned int __viaddmin_u16x2(const unsigned int a, const unsigned int b, const unsigned int c){
|
| 729 |
+
unsigned int res;
|
| 730 |
+
#ifdef __CUDA_AND_AT_LEAST_SM_90__
|
| 731 |
+
asm ("{.reg .b32 t1; \n\t"
|
| 732 |
+
"add.u16x2 t1, %1, %2; \n\t"
|
| 733 |
+
"min.u16x2 %0, t1, %3;}\n\t"
|
| 734 |
+
: "=r"(res) : "r"(a), "r"(b), "r"(c));
|
| 735 |
+
#elif defined(__CUDA_ARCH__)
|
| 736 |
+
res = __vminu2(__vadd2(a, b), c);
|
| 737 |
+
#else
|
| 738 |
+
// Host and older architecture code
|
| 739 |
+
// Separate our high and low bit:
|
| 740 |
+
unsigned short aU_lo = (unsigned short)(a & 0xFFFFU);
|
| 741 |
+
unsigned short aU_hi = (unsigned short)(a >> 16);
|
| 742 |
+
|
| 743 |
+
unsigned short bU_lo = (unsigned short)(b & 0xFFFFU);
|
| 744 |
+
unsigned short bU_hi = (unsigned short)(b >> 16);
|
| 745 |
+
|
| 746 |
+
unsigned short cU_lo = (unsigned short)(c & 0xFFFFU);
|
| 747 |
+
unsigned short cU_hi = (unsigned short)(c >> 16);
|
| 748 |
+
|
| 749 |
+
// Get answer
|
| 750 |
+
unsigned short ansU_lo = (unsigned short)min((unsigned short)(aU_lo + bU_lo), cU_lo);
|
| 751 |
+
unsigned short ansU_hi = (unsigned short)min((unsigned short)(aU_hi + bU_hi), cU_hi);
|
| 752 |
+
|
| 753 |
+
// Put answer back together:
|
| 754 |
+
res = ((unsigned int) ansU_lo) | (((unsigned int) ansU_hi) << 16);
|
| 755 |
+
#endif
|
| 756 |
+
|
| 757 |
+
return res;
|
| 758 |
+
}
|
| 759 |
+
|
| 760 |
+
__DEVICE_HOST_FUNCTIONS_STATIC_DECL__ int __viaddmax_s32_relu(const int a, const int b, const int c){
|
| 761 |
+
#ifdef __CUDA_AND_AT_LEAST_SM_90__
|
| 762 |
+
int res;
|
| 763 |
+
asm ("{.reg .s32 t1; \n\t"
|
| 764 |
+
"add.s32 t1, %1, %2; \n\t"
|
| 765 |
+
"max.s32.relu %0, t1, %3;}\n\t"
|
| 766 |
+
: "=r"(res) : "r"(a), "r"(b), "r"(c));
|
| 767 |
+
return res;
|
| 768 |
+
#else
|
| 769 |
+
// Host and older architecture code
|
| 770 |
+
int ans = max(a + b, c);
|
| 771 |
+
|
| 772 |
+
return (ans > 0) ? ans : 0;
|
| 773 |
+
#endif
|
| 774 |
+
}
|
| 775 |
+
|
| 776 |
+
__DEVICE_HOST_FUNCTIONS_STATIC_DECL__ unsigned int __viaddmax_s16x2_relu(const unsigned int a, const unsigned int b, const unsigned int c){
|
| 777 |
+
unsigned int res;
|
| 778 |
+
#ifdef __CUDA_AND_AT_LEAST_SM_90__
|
| 779 |
+
asm ("{.reg .b32 t1; \n\t"
|
| 780 |
+
"add.s16x2 t1, %1, %2; \n\t"
|
| 781 |
+
"max.s16x2.relu %0, t1, %3;}\n\t"
|
| 782 |
+
: "=r"(res) : "r"(a), "r"(b), "r"(c));
|
| 783 |
+
#elif defined(__CUDA_ARCH__)
|
| 784 |
+
res = __vimax_s16x2_relu(__vadd2(a, b), c);
|
| 785 |
+
#else
|
| 786 |
+
// Host and older architecture code
|
| 787 |
+
// Separate our high and low bit:
|
| 788 |
+
unsigned short aU_lo = (unsigned short)(a & 0xFFFFU);
|
| 789 |
+
unsigned short aU_hi = (unsigned short)(a >> 16);
|
| 790 |
+
|
| 791 |
+
unsigned short bU_lo = (unsigned short)(b & 0xFFFFU);
|
| 792 |
+
unsigned short bU_hi = (unsigned short)(b >> 16);
|
| 793 |
+
|
| 794 |
+
unsigned short cU_lo = (unsigned short)(c & 0xFFFFU);
|
| 795 |
+
unsigned short cU_hi = (unsigned short)(c >> 16);
|
| 796 |
+
|
| 797 |
+
aU_lo += bU_lo;
|
| 798 |
+
aU_hi += bU_hi;
|
| 799 |
+
|
| 800 |
+
//cast to signed:
|
| 801 |
+
short sS_lo = __internal_cast_u2s(aU_lo);
|
| 802 |
+
short sS_hi = __internal_cast_u2s(aU_hi);
|
| 803 |
+
|
| 804 |
+
short cS_lo = __internal_cast_u2s(cU_lo);
|
| 805 |
+
short cS_hi = __internal_cast_u2s(cU_hi);
|
| 806 |
+
|
| 807 |
+
// Get answer
|
| 808 |
+
unsigned ansU_lo = (unsigned)max(0, max(sS_lo, cS_lo));
|
| 809 |
+
unsigned ansU_hi = (unsigned)max(0, max(sS_hi, cS_hi));
|
| 810 |
+
|
| 811 |
+
// Put answer back together:
|
| 812 |
+
res = ansU_lo | (ansU_hi << 16);
|
| 813 |
+
#endif
|
| 814 |
+
|
| 815 |
+
return res;
|
| 816 |
+
}
|
| 817 |
+
|
| 818 |
+
__DEVICE_HOST_FUNCTIONS_STATIC_DECL__ int __viaddmin_s32_relu(const int a, const int b, const int c){
|
| 819 |
+
#ifdef __CUDA_AND_AT_LEAST_SM_90__
|
| 820 |
+
int res;
|
| 821 |
+
asm ("{.reg .s32 t1; \n\t"
|
| 822 |
+
"add.s32 t1, %1, %2; \n\t"
|
| 823 |
+
"min.s32.relu %0, t1, %3;}\n\t"
|
| 824 |
+
: "=r"(res) : "r"(a), "r"(b), "r"(c));
|
| 825 |
+
return res;
|
| 826 |
+
#else
|
| 827 |
+
// Host and older architecture code
|
| 828 |
+
int ans = min(a + b, c);
|
| 829 |
+
|
| 830 |
+
return (ans > 0) ? ans : 0;
|
| 831 |
+
#endif
|
| 832 |
+
}
|
| 833 |
+
|
| 834 |
+
__DEVICE_HOST_FUNCTIONS_STATIC_DECL__ unsigned int __viaddmin_s16x2_relu(const unsigned int a, const unsigned int b, const unsigned int c){
|
| 835 |
+
unsigned int res;
|
| 836 |
+
#ifdef __CUDA_AND_AT_LEAST_SM_90__
|
| 837 |
+
asm ("{.reg .b32 t1; \n\t"
|
| 838 |
+
"add.s16x2 t1, %1, %2; \n\t"
|
| 839 |
+
"min.s16x2.relu %0, t1, %3;}\n\t"
|
| 840 |
+
: "=r"(res) : "r"(a), "r"(b), "r"(c));
|
| 841 |
+
#elif defined(__CUDA_ARCH__)
|
| 842 |
+
res = __vimin_s16x2_relu(__vadd2(a, b), c);
|
| 843 |
+
#else
|
| 844 |
+
// Host and older architecture code
|
| 845 |
+
// Separate our high and low bit:
|
| 846 |
+
unsigned short aU_lo = (unsigned short)(a & 0xFFFFU);
|
| 847 |
+
unsigned short aU_hi = (unsigned short)(a >> 16);
|
| 848 |
+
|
| 849 |
+
unsigned short bU_lo = (unsigned short)(b & 0xFFFFU);
|
| 850 |
+
unsigned short bU_hi = (unsigned short)(b >> 16);
|
| 851 |
+
|
| 852 |
+
unsigned short cU_lo = (unsigned short)(c & 0xFFFFU);
|
| 853 |
+
unsigned short cU_hi = (unsigned short)(c >> 16);
|
| 854 |
+
|
| 855 |
+
aU_lo += bU_lo;
|
| 856 |
+
aU_hi += bU_hi;
|
| 857 |
+
|
| 858 |
+
//cast to signed:
|
| 859 |
+
short sS_lo = __internal_cast_u2s(aU_lo);
|
| 860 |
+
short sS_hi = __internal_cast_u2s(aU_hi);
|
| 861 |
+
|
| 862 |
+
short cS_lo = __internal_cast_u2s(cU_lo);
|
| 863 |
+
short cS_hi = __internal_cast_u2s(cU_hi);
|
| 864 |
+
|
| 865 |
+
// Get answer
|
| 866 |
+
unsigned ansU_lo = (unsigned)max(0, min(sS_lo, cS_lo));
|
| 867 |
+
unsigned ansU_hi = (unsigned)max(0, min(sS_hi, cS_hi));
|
| 868 |
+
|
| 869 |
+
// Put answer back together:
|
| 870 |
+
res = ansU_lo | (ansU_hi << 16);
|
| 871 |
+
#endif
|
| 872 |
+
|
| 873 |
+
return res;
|
| 874 |
+
}
|
| 875 |
+
|
| 876 |
+
// vimax vimin with predicate
|
| 877 |
+
// *pred gets set to '(a >= b)'
|
| 878 |
+
__DEVICE_HOST_FUNCTIONS_STATIC_DECL__ int __vibmax_s32(const int a, const int b, bool* const pred){
|
| 879 |
+
#ifdef __CUDA_AND_AT_LEAST_SM_90__
|
| 880 |
+
int val;
|
| 881 |
+
unsigned int predicate_local;
|
| 882 |
+
asm ("{ .reg .pred __$temp1;\n\t"
|
| 883 |
+
" setp.ge.s32 __$temp1, %2, %3;\n\t"
|
| 884 |
+
" selp.s32 %0, %2, %3, __$temp1;\n\t"
|
| 885 |
+
" selp.s32 %1, 1, 0, __$temp1;}\n\t"
|
| 886 |
+
: "=r"(val), "=r"(predicate_local) : "r"(a), "r"(b));
|
| 887 |
+
|
| 888 |
+
*pred = (bool)predicate_local;
|
| 889 |
+
return val;
|
| 890 |
+
#else
|
| 891 |
+
// Host and older architecture code
|
| 892 |
+
int ans = max(a, b);
|
| 893 |
+
|
| 894 |
+
*pred = (a >= b);
|
| 895 |
+
return ans;
|
| 896 |
+
#endif
|
| 897 |
+
}
|
| 898 |
+
|
| 899 |
+
__DEVICE_HOST_FUNCTIONS_STATIC_DECL__ unsigned int __vibmax_u32(const unsigned int a, const unsigned int b, bool* const pred){
|
| 900 |
+
#ifdef __CUDA_AND_AT_LEAST_SM_90__
|
| 901 |
+
unsigned int val;
|
| 902 |
+
unsigned int predicate_local;
|
| 903 |
+
asm ("{ .reg .pred __$temp1;\n\t"
|
| 904 |
+
" setp.ge.u32 __$temp1, %2, %3;\n\t"
|
| 905 |
+
" selp.u32 %0, %2, %3, __$temp1;\n\t"
|
| 906 |
+
" selp.u32 %1, 1, 0, __$temp1;}\n\t"
|
| 907 |
+
: "=r"(val), "=r"(predicate_local) : "r"(a), "r"(b));
|
| 908 |
+
|
| 909 |
+
*pred = (bool)predicate_local;
|
| 910 |
+
return val;
|
| 911 |
+
#else
|
| 912 |
+
// Host and older architecture code
|
| 913 |
+
unsigned int ans = max(a, b);
|
| 914 |
+
|
| 915 |
+
*pred = (a >= b);
|
| 916 |
+
return ans;
|
| 917 |
+
#endif
|
| 918 |
+
}
|
| 919 |
+
|
| 920 |
+
// *pred gets set to '(a <= b)'
|
| 921 |
+
__DEVICE_HOST_FUNCTIONS_STATIC_DECL__ int __vibmin_s32(const int a, const int b, bool* const pred){
|
| 922 |
+
#ifdef __CUDA_AND_AT_LEAST_SM_90__
|
| 923 |
+
int val;
|
| 924 |
+
unsigned int predicate_local;
|
| 925 |
+
asm ("{ .reg .pred __$temp1;\n\t"
|
| 926 |
+
" setp.le.s32 __$temp1, %2, %3;\n\t"
|
| 927 |
+
" selp.s32 %0, %2, %3, __$temp1;\n\t"
|
| 928 |
+
" selp.s32 %1, 1, 0, __$temp1;}\n\t"
|
| 929 |
+
: "=r"(val), "=r"(predicate_local) : "r"(a), "r"(b));
|
| 930 |
+
|
| 931 |
+
*pred = (bool)predicate_local;
|
| 932 |
+
return val;
|
| 933 |
+
#else
|
| 934 |
+
// Host and older architecture code
|
| 935 |
+
int ans = min(a, b);
|
| 936 |
+
|
| 937 |
+
*pred = (a <= b);
|
| 938 |
+
return ans;
|
| 939 |
+
#endif
|
| 940 |
+
}
|
| 941 |
+
|
| 942 |
+
// *pred gets set to '(a <= b)'
|
| 943 |
+
__DEVICE_HOST_FUNCTIONS_STATIC_DECL__ unsigned int __vibmin_u32(const unsigned int a, const unsigned int b, bool* const pred){
|
| 944 |
+
#ifdef __CUDA_AND_AT_LEAST_SM_90__
|
| 945 |
+
unsigned int val;
|
| 946 |
+
unsigned int predicate_local;
|
| 947 |
+
asm ("{ .reg .pred __$temp1;\n\t"
|
| 948 |
+
" setp.le.u32 __$temp1, %2, %3;\n\t"
|
| 949 |
+
" selp.u32 %0, %2, %3, __$temp1;\n\t"
|
| 950 |
+
" selp.u32 %1, 1, 0, __$temp1;}\n\t"
|
| 951 |
+
: "=r"(val), "=r"(predicate_local) : "r"(a), "r"(b));
|
| 952 |
+
|
| 953 |
+
*pred = (bool)predicate_local;
|
| 954 |
+
return val;
|
| 955 |
+
#else
|
| 956 |
+
// Host and older architecture code
|
| 957 |
+
unsigned int ans = min(a, b);
|
| 958 |
+
|
| 959 |
+
*pred = (a <= b);
|
| 960 |
+
return ans;
|
| 961 |
+
#endif
|
| 962 |
+
}
|
| 963 |
+
|
| 964 |
+
__DEVICE_HOST_FUNCTIONS_STATIC_DECL__ unsigned int __vibmax_s16x2(const unsigned int a, const unsigned int b, bool* const pred_hi, bool* const pred_lo){
|
| 965 |
+
#ifdef __CUDA_AND_AT_LEAST_SM_90__
|
| 966 |
+
unsigned int val;
|
| 967 |
+
unsigned int predicate_local_hi;
|
| 968 |
+
unsigned int predicate_local_lo;
|
| 969 |
+
asm ("{.reg .pred pu, pv; \n\t"
|
| 970 |
+
".reg .s16 rs0, rs1, rs2, rs3; \n\t"
|
| 971 |
+
"max.s16x2 %0, %3, %4; \n\t"
|
| 972 |
+
"mov.b32 {rs0, rs1}, %0; \n\t"
|
| 973 |
+
"mov.b32 {rs2, rs3}, %3; \n\t"
|
| 974 |
+
"setp.eq.s16 pv, rs0, rs2; \n\t"
|
| 975 |
+
"setp.eq.s16 pu, rs1, rs3; \n\t"
|
| 976 |
+
"selp.b32 %1, 1, 0, pu; \n\t"
|
| 977 |
+
"selp.b32 %2, 1, 0, pv;} \n\t"
|
| 978 |
+
: "=r"(val), "=r"(predicate_local_hi),"=r"(predicate_local_lo) : "r"(a), "r"(b));
|
| 979 |
+
|
| 980 |
+
*pred_hi = (bool)predicate_local_hi;
|
| 981 |
+
*pred_lo = (bool)predicate_local_lo;
|
| 982 |
+
return val;
|
| 983 |
+
#else
|
| 984 |
+
// Host and older architecture code
|
| 985 |
+
// Separate our high and low bit:
|
| 986 |
+
unsigned short aU_lo = (unsigned short)(a & 0xFFFFU);
|
| 987 |
+
unsigned short aU_hi = (unsigned short)(a >> 16);
|
| 988 |
+
|
| 989 |
+
unsigned short bU_lo = (unsigned short)(b & 0xFFFFU);
|
| 990 |
+
unsigned short bU_hi = (unsigned short)(b >> 16);
|
| 991 |
+
|
| 992 |
+
//cast to signed:
|
| 993 |
+
short aS_lo = __internal_cast_u2s(aU_lo);
|
| 994 |
+
short aS_hi = __internal_cast_u2s(aU_hi);
|
| 995 |
+
|
| 996 |
+
short bS_lo = __internal_cast_u2s(bU_lo);
|
| 997 |
+
short bS_hi = __internal_cast_u2s(bU_hi);
|
| 998 |
+
|
| 999 |
+
// Get answer
|
| 1000 |
+
unsigned int ansU_lo = (unsigned int)max(aS_lo, bS_lo);
|
| 1001 |
+
unsigned int ansU_hi = (unsigned int)max(aS_hi, bS_hi);
|
| 1002 |
+
|
| 1003 |
+
*pred_hi = (aS_hi >= bS_hi);
|
| 1004 |
+
*pred_lo = (aS_lo >= bS_lo);
|
| 1005 |
+
|
| 1006 |
+
// Put answer back together:
|
| 1007 |
+
unsigned int ans = (ansU_lo & 0x0000FFFFU) | (ansU_hi << 16);
|
| 1008 |
+
|
| 1009 |
+
return ans;
|
| 1010 |
+
#endif
|
| 1011 |
+
}
|
| 1012 |
+
|
| 1013 |
+
__DEVICE_HOST_FUNCTIONS_STATIC_DECL__ unsigned int __vibmax_u16x2(const unsigned int a, const unsigned int b, bool* const pred_hi, bool* const pred_lo){
|
| 1014 |
+
#ifdef __CUDA_AND_AT_LEAST_SM_90__
|
| 1015 |
+
unsigned int val;
|
| 1016 |
+
unsigned int predicate_local_hi;
|
| 1017 |
+
unsigned int predicate_local_lo;
|
| 1018 |
+
asm ("{.reg .pred pu, pv; \n\t"
|
| 1019 |
+
".reg .u16 rs0, rs1, rs2, rs3; \n\t"
|
| 1020 |
+
"max.u16x2 %0, %3, %4; \n\t"
|
| 1021 |
+
"mov.b32 {rs0, rs1}, %0; \n\t"
|
| 1022 |
+
"mov.b32 {rs2, rs3}, %3; \n\t"
|
| 1023 |
+
"setp.eq.u16 pv, rs0, rs2; \n\t"
|
| 1024 |
+
"setp.eq.u16 pu, rs1, rs3; \n\t"
|
| 1025 |
+
"selp.b32 %1, 1, 0, pu; \n\t"
|
| 1026 |
+
"selp.b32 %2, 1, 0, pv;} \n\t"
|
| 1027 |
+
: "=r"(val), "=r"(predicate_local_hi),"=r"(predicate_local_lo) : "r"(a), "r"(b));
|
| 1028 |
+
|
| 1029 |
+
*pred_hi = (bool)predicate_local_hi;
|
| 1030 |
+
*pred_lo = (bool)predicate_local_lo;
|
| 1031 |
+
return val;
|
| 1032 |
+
#else
|
| 1033 |
+
// Host and older architecture code
|
| 1034 |
+
// Separate our high and low bit:
|
| 1035 |
+
unsigned short aU_lo = (unsigned short)(a & 0xFFFFU);
|
| 1036 |
+
unsigned short aU_hi = (unsigned short)(a >> 16);
|
| 1037 |
+
|
| 1038 |
+
unsigned short bU_lo = (unsigned short)(b & 0xFFFFU);
|
| 1039 |
+
unsigned short bU_hi = (unsigned short)(b >> 16);
|
| 1040 |
+
|
| 1041 |
+
// Get answer
|
| 1042 |
+
unsigned short ansU_lo = (unsigned short)max(aU_lo, bU_lo);
|
| 1043 |
+
unsigned short ansU_hi = (unsigned short)max(aU_hi, bU_hi);
|
| 1044 |
+
|
| 1045 |
+
*pred_hi = (aU_hi >= bU_hi);
|
| 1046 |
+
*pred_lo = (aU_lo >= bU_lo);
|
| 1047 |
+
|
| 1048 |
+
// Put answer back together:
|
| 1049 |
+
unsigned int ans = ((unsigned int) ansU_lo) | (((unsigned int) ansU_hi) << 16);
|
| 1050 |
+
|
| 1051 |
+
return ans;
|
| 1052 |
+
#endif
|
| 1053 |
+
}
|
| 1054 |
+
|
| 1055 |
+
__DEVICE_HOST_FUNCTIONS_STATIC_DECL__ unsigned int __vibmin_s16x2(const unsigned int a, const unsigned int b, bool* const pred_hi, bool* const pred_lo){
|
| 1056 |
+
#ifdef __CUDA_AND_AT_LEAST_SM_90__
|
| 1057 |
+
unsigned int val;
|
| 1058 |
+
unsigned int predicate_local_hi;
|
| 1059 |
+
unsigned int predicate_local_lo;
|
| 1060 |
+
asm ("{.reg .pred pu, pv; \n\t"
|
| 1061 |
+
".reg .u16 rs0, rs1, rs2, rs3; \n\t"
|
| 1062 |
+
"min.s16x2 %0, %3, %4; \n\t"
|
| 1063 |
+
"mov.b32 {rs0, rs1}, %0; \n\t"
|
| 1064 |
+
"mov.b32 {rs2, rs3}, %3; \n\t"
|
| 1065 |
+
"setp.eq.s16 pv, rs0, rs2; \n\t"
|
| 1066 |
+
"setp.eq.s16 pu, rs1, rs3; \n\t"
|
| 1067 |
+
"selp.b32 %1, 1, 0, pu; \n\t"
|
| 1068 |
+
"selp.b32 %2, 1, 0, pv;} \n\t"
|
| 1069 |
+
: "=r"(val), "=r"(predicate_local_hi),"=r"(predicate_local_lo) : "r"(a), "r"(b));
|
| 1070 |
+
|
| 1071 |
+
*pred_hi = (bool)predicate_local_hi;
|
| 1072 |
+
*pred_lo = (bool)predicate_local_lo;
|
| 1073 |
+
return val;
|
| 1074 |
+
#else
|
| 1075 |
+
// Host and older architecture code
|
| 1076 |
+
// Separate our high and low bit:
|
| 1077 |
+
unsigned short aU_lo = (unsigned short)(a & 0xFFFFU);
|
| 1078 |
+
unsigned short aU_hi = (unsigned short)(a >> 16);
|
| 1079 |
+
|
| 1080 |
+
unsigned short bU_lo = (unsigned short)(b & 0xFFFFU);
|
| 1081 |
+
unsigned short bU_hi = (unsigned short)(b >> 16);
|
| 1082 |
+
|
| 1083 |
+
//cast to signed:
|
| 1084 |
+
short aS_lo = __internal_cast_u2s(aU_lo);
|
| 1085 |
+
short aS_hi = __internal_cast_u2s(aU_hi);
|
| 1086 |
+
|
| 1087 |
+
short bS_lo = __internal_cast_u2s(bU_lo);
|
| 1088 |
+
short bS_hi = __internal_cast_u2s(bU_hi);
|
| 1089 |
+
|
| 1090 |
+
// Get answer
|
| 1091 |
+
unsigned int ansU_lo = (unsigned int)min(aS_lo, bS_lo);
|
| 1092 |
+
unsigned int ansU_hi = (unsigned int)min(aS_hi, bS_hi);
|
| 1093 |
+
|
| 1094 |
+
*pred_hi = (aS_hi <= bS_hi);
|
| 1095 |
+
*pred_lo = (aS_lo <= bS_lo);
|
| 1096 |
+
|
| 1097 |
+
// Put answer back together:
|
| 1098 |
+
unsigned int ans = (ansU_lo & 0x0000FFFFU) | (ansU_hi << 16);
|
| 1099 |
+
|
| 1100 |
+
return ans;
|
| 1101 |
+
#endif
|
| 1102 |
+
}
|
| 1103 |
+
|
| 1104 |
+
__DEVICE_HOST_FUNCTIONS_STATIC_DECL__ unsigned int __vibmin_u16x2(const unsigned int a, const unsigned int b, bool* const pred_hi, bool* const pred_lo){
|
| 1105 |
+
#ifdef __CUDA_AND_AT_LEAST_SM_90__
|
| 1106 |
+
unsigned int val;
|
| 1107 |
+
unsigned int predicate_local_hi;
|
| 1108 |
+
unsigned int predicate_local_lo;
|
| 1109 |
+
asm ("{.reg .pred pu, pv; \n\t"
|
| 1110 |
+
".reg .u16 rs0, rs1, rs2, rs3; \n\t"
|
| 1111 |
+
"min.u16x2 %0, %3, %4; \n\t"
|
| 1112 |
+
"mov.b32 {rs0, rs1}, %0; \n\t"
|
| 1113 |
+
"mov.b32 {rs2, rs3}, %3; \n\t"
|
| 1114 |
+
"setp.eq.u16 pv, rs0, rs2; \n\t"
|
| 1115 |
+
"setp.eq.u16 pu, rs1, rs3; \n\t"
|
| 1116 |
+
"selp.b32 %1, 1, 0, pu; \n\t"
|
| 1117 |
+
"selp.b32 %2, 1, 0, pv;} \n\t"
|
| 1118 |
+
: "=r"(val), "=r"(predicate_local_hi),"=r"(predicate_local_lo) : "r"(a), "r"(b));
|
| 1119 |
+
|
| 1120 |
+
*pred_hi = (bool)predicate_local_hi;
|
| 1121 |
+
*pred_lo = (bool)predicate_local_lo;
|
| 1122 |
+
return val;
|
| 1123 |
+
#else
|
| 1124 |
+
// Host and older architecture code
|
| 1125 |
+
// Separate our high and low bit:
|
| 1126 |
+
unsigned short aU_lo = (unsigned short)(a & 0xFFFFU);
|
| 1127 |
+
unsigned short aU_hi = (unsigned short)(a >> 16);
|
| 1128 |
+
|
| 1129 |
+
unsigned short bU_lo = (unsigned short)(b & 0xFFFFU);
|
| 1130 |
+
unsigned short bU_hi = (unsigned short)(b >> 16);
|
| 1131 |
+
|
| 1132 |
+
// Get answer
|
| 1133 |
+
unsigned short ansU_lo = (unsigned short)min(aU_lo, bU_lo);
|
| 1134 |
+
unsigned short ansU_hi = (unsigned short)min(aU_hi, bU_hi);
|
| 1135 |
+
|
| 1136 |
+
*pred_hi = (aU_hi <= bU_hi);
|
| 1137 |
+
*pred_lo = (aU_lo <= bU_lo);
|
| 1138 |
+
|
| 1139 |
+
// Put answer back together:
|
| 1140 |
+
unsigned int ans = ((unsigned int) ansU_lo) | (((unsigned int) ansU_hi) << 16);
|
| 1141 |
+
|
| 1142 |
+
return ans;
|
| 1143 |
+
#endif
|
| 1144 |
+
}
|
| 1145 |
+
|
| 1146 |
+
#ifdef __CUDA_AND_AT_LEAST_SM_90__
|
| 1147 |
+
#undef __CUDA_AND_AT_LEAST_SM_90__
|
| 1148 |
+
#endif
|
| 1149 |
+
|
| 1150 |
+
#undef __DEVICE_HOST_FUNCTIONS_STATIC_DECL__
|
| 1151 |
+
|
| 1152 |
+
/*******************************************************************************
|
| 1153 |
+
* *
|
| 1154 |
+
* *
|
| 1155 |
+
* *
|
| 1156 |
+
*******************************************************************************/
|
| 1157 |
+
|
| 1158 |
+
#endif /* !__DEVICE_FUNCTIONS_HPP__ */
|
| 1159 |
+
|
| 1160 |
+
#if defined(__UNDEF_CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS_DEVICE_FUNCTIONS_HPP__)
|
| 1161 |
+
#undef __CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS__
|
| 1162 |
+
#undef __UNDEF_CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS_DEVICE_FUNCTIONS_HPP__
|
| 1163 |
+
#endif
|
data/miniconda3/pkgs/cuda-crt-dev_linux-64-12.8.93-h06a4308_3/targets/x86_64-linux/include/crt/func_macro.h
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
* NVIDIA_COPYRIGHT_BEGIN
|
| 3 |
+
*
|
| 4 |
+
* Copyright (c) 2008-2018, NVIDIA CORPORATION. All rights reserved.
|
| 5 |
+
*
|
| 6 |
+
* NVIDIA CORPORATION and its licensors retain all intellectual property
|
| 7 |
+
* and proprietary rights in and to this software, related documentation
|
| 8 |
+
* and any modifications thereto. Any use, reproduction, disclosure or
|
| 9 |
+
* distribution of this software and related documentation without an express
|
| 10 |
+
* license agreement from NVIDIA CORPORATION is strictly prohibited.
|
| 11 |
+
*
|
| 12 |
+
* NVIDIA_COPYRIGHT_END
|
| 13 |
+
*/
|
| 14 |
+
|
| 15 |
+
#if !defined(__CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS__)
|
| 16 |
+
#if defined(_MSC_VER)
|
| 17 |
+
#pragma message("crt/func_macro.h is an internal header file and must not be used directly. Please use cuda_runtime_api.h or cuda_runtime.h instead.")
|
| 18 |
+
#else
|
| 19 |
+
#warning "crt/func_macro.h is an internal header file and must not be used directly. Please use cuda_runtime_api.h or cuda_runtime.h instead."
|
| 20 |
+
#endif
|
| 21 |
+
#define __CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS__
|
| 22 |
+
#define __UNDEF_CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS_FUNC_MACRO_H__
|
| 23 |
+
#endif
|
| 24 |
+
|
| 25 |
+
#if !defined(__FUNC_MACRO_H__)
|
| 26 |
+
#define __FUNC_MACRO_H__
|
| 27 |
+
|
| 28 |
+
#if !defined(__CUDA_INTERNAL_COMPILATION__)
|
| 29 |
+
|
| 30 |
+
#error -- incorrect inclusion of a cudart header file
|
| 31 |
+
|
| 32 |
+
#endif /* !__CUDA_INTERNAL_COMPILATION__ */
|
| 33 |
+
|
| 34 |
+
#if defined(__GNUC__)
|
| 35 |
+
|
| 36 |
+
#define __func__(decl) \
|
| 37 |
+
inline decl
|
| 38 |
+
|
| 39 |
+
#define __device_func__(decl) \
|
| 40 |
+
static __attribute__((__unused__)) decl
|
| 41 |
+
|
| 42 |
+
#elif defined(_WIN32)
|
| 43 |
+
|
| 44 |
+
#define __func__(decl) \
|
| 45 |
+
static inline decl
|
| 46 |
+
|
| 47 |
+
#define __device_func__(decl) \
|
| 48 |
+
static decl
|
| 49 |
+
|
| 50 |
+
#endif /* __GNUC__ */
|
| 51 |
+
|
| 52 |
+
#endif /* __FUNC_MACRO_H__ */
|
| 53 |
+
|
| 54 |
+
#if defined(__UNDEF_CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS_FUNC_MACRO_H__)
|
| 55 |
+
#undef __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
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
* Copyright 1993-2024 NVIDIA Corporation. All rights reserved.
|
| 3 |
+
*
|
| 4 |
+
* NOTICE TO LICENSEE:
|
| 5 |
+
*
|
| 6 |
+
* This source code and/or documentation ("Licensed Deliverables") are
|
| 7 |
+
* subject to NVIDIA intellectual property rights under U.S. and
|
| 8 |
+
* international Copyright laws.
|
| 9 |
+
*
|
| 10 |
+
* These Licensed Deliverables contained herein is PROPRIETARY and
|
| 11 |
+
* CONFIDENTIAL to NVIDIA and is being provided under the terms and
|
| 12 |
+
* conditions of a form of NVIDIA software license agreement by and
|
| 13 |
+
* between NVIDIA and Licensee ("License Agreement") or electronically
|
| 14 |
+
* accepted by Licensee. Notwithstanding any terms or conditions to
|
| 15 |
+
* the contrary in the License Agreement, reproduction or disclosure
|
| 16 |
+
* of the Licensed Deliverables to any third party without the express
|
| 17 |
+
* written consent of NVIDIA is prohibited.
|
| 18 |
+
*
|
| 19 |
+
* NOTWITHSTANDING ANY TERMS OR CONDITIONS TO THE CONTRARY IN THE
|
| 20 |
+
* LICENSE AGREEMENT, NVIDIA MAKES NO REPRESENTATION ABOUT THE
|
| 21 |
+
* SUITABILITY OF THESE LICENSED DELIVERABLES FOR ANY PURPOSE. IT IS
|
| 22 |
+
* PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY OF ANY KIND.
|
| 23 |
+
* NVIDIA DISCLAIMS ALL WARRANTIES WITH REGARD TO THESE LICENSED
|
| 24 |
+
* DELIVERABLES, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY,
|
| 25 |
+
* NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE.
|
| 26 |
+
* NOTWITHSTANDING ANY TERMS OR CONDITIONS TO THE CONTRARY IN THE
|
| 27 |
+
* LICENSE AGREEMENT, IN NO EVENT SHALL NVIDIA BE LIABLE FOR ANY
|
| 28 |
+
* SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, OR ANY
|
| 29 |
+
* DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
|
| 30 |
+
* WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
|
| 31 |
+
* ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
|
| 32 |
+
* OF THESE LICENSED DELIVERABLES.
|
| 33 |
+
*
|
| 34 |
+
* U.S. Government End Users. These Licensed Deliverables are a
|
| 35 |
+
* "commercial item" as that term is defined at 48 C.F.R. 2.101 (OCT
|
| 36 |
+
* 1995), consisting of "commercial computer software" and "commercial
|
| 37 |
+
* computer software documentation" as such terms are used in 48
|
| 38 |
+
* C.F.R. 12.212 (SEPT 1995) and is provided to the U.S. Government
|
| 39 |
+
* only as a commercial end item. Consistent with 48 C.F.R.12.212 and
|
| 40 |
+
* 48 C.F.R. 227.7202-1 through 227.7202-4 (JUNE 1995), all
|
| 41 |
+
* U.S. Government End Users acquire the Licensed Deliverables with
|
| 42 |
+
* only those rights set forth herein.
|
| 43 |
+
*
|
| 44 |
+
* Any use of the Licensed Deliverables in individual and commercial
|
| 45 |
+
* software must include, in the user documentation and internal
|
| 46 |
+
* comments to the code, the above Disclaimer and U.S. Government End
|
| 47 |
+
* Users Notice.
|
| 48 |
+
*/
|
| 49 |
+
|
| 50 |
+
#if !defined(__CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS__)
|
| 51 |
+
#if defined(_MSC_VER)
|
| 52 |
+
#pragma message("crt/host_config.h is an internal header file and must not be used directly. Please use cuda_runtime_api.h or cuda_runtime.h instead.")
|
| 53 |
+
#else
|
| 54 |
+
#warning "crt/host_config.h is an internal header file and must not be used directly. Please use cuda_runtime_api.h or cuda_runtime.h instead."
|
| 55 |
+
#endif
|
| 56 |
+
#define __CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS__
|
| 57 |
+
#define __UNDEF_CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS_HOST_CONFIG_H__
|
| 58 |
+
#endif
|
| 59 |
+
|
| 60 |
+
#if !defined(__HOST_CONFIG_H__)
|
| 61 |
+
#define __HOST_CONFIG_H__
|
| 62 |
+
|
| 63 |
+
/*******************************************************************************
|
| 64 |
+
* *
|
| 65 |
+
* *
|
| 66 |
+
* *
|
| 67 |
+
*******************************************************************************/
|
| 68 |
+
|
| 69 |
+
#if defined(__CUDACC__)
|
| 70 |
+
|
| 71 |
+
#if defined(__CUDACC_RTC__)
|
| 72 |
+
|
| 73 |
+
#define _CRTIMP
|
| 74 |
+
#define __THROW
|
| 75 |
+
|
| 76 |
+
#else /* __CUDACC_RTC__ */
|
| 77 |
+
|
| 78 |
+
/* check for host compilers that are compatible with nvcc */
|
| 79 |
+
#if !defined(__GNUC__) && !defined(_WIN32)
|
| 80 |
+
|
| 81 |
+
#error --- !!! UNSUPPORTED COMPILER !!! ---
|
| 82 |
+
|
| 83 |
+
#endif /* !__GNUC__ && !_WIN32 */
|
| 84 |
+
|
| 85 |
+
/* check invalid configurations */
|
| 86 |
+
#if defined(__PGIC__)
|
| 87 |
+
#if !defined(__GNUC__) || !defined(__LP64__) || !defined(__linux__)
|
| 88 |
+
#error -- unsupported pgc++ configuration! pgc++ is supported only on Linux x86_64!
|
| 89 |
+
#endif /* !defined(__GNUC__) || !defined(__LP64__) || !defined(__linux__) */
|
| 90 |
+
#endif /* defined(__PGIC__) */
|
| 91 |
+
|
| 92 |
+
#if defined(__powerpc__)
|
| 93 |
+
#if !defined(__powerpc64__) || !defined(__LITTLE_ENDIAN__)
|
| 94 |
+
#error -- unsupported PPC platform! Only 64-bit little endian PPC is supported!
|
| 95 |
+
#endif /* !__powerpc64__ || !__LITTLE_ENDIAN__ */
|
| 96 |
+
#endif /* __powerpc__ */
|
| 97 |
+
|
| 98 |
+
#if defined(__APPLE__) && defined(__MACH__) && !defined(__clang__)
|
| 99 |
+
#error -- clang and clang++ are the only supported host compilers on Mac OS X!
|
| 100 |
+
#endif /* __APPLE__ && __MACH__ && !__clang__ */
|
| 101 |
+
|
| 102 |
+
|
| 103 |
+
/* check host compiler version */
|
| 104 |
+
#if !__NV_NO_HOST_COMPILER_CHECK
|
| 105 |
+
|
| 106 |
+
#if defined(__ICC)
|
| 107 |
+
|
| 108 |
+
#if (__ICC != 1500 && __ICC != 1600 && __ICC != 1700 && __ICC != 1800 && !(__ICC >= 1900 && __ICC <= 2021)) || !defined(__GNUC__) || !defined(__LP64__)
|
| 109 |
+
|
| 110 |
+
#error -- unsupported ICC configuration! Only ICC 15.0, ICC 16.0, ICC 17.0, ICC 18.0, ICC 19.x and 20.x on Linux x86_64 are supported! The nvcc flag '-allow-unsupported-compiler' can be used to override this version check; however, using an unsupported host compiler may cause compilation failure or incorrect run time execution. Use at your own risk.
|
| 111 |
+
|
| 112 |
+
#endif /* (__ICC != 1500 && __ICC != 1600 && __ICC != 1700 && __ICC != 1800 && __ICC != 1900) || !__GNUC__ || !__LP64__ */
|
| 113 |
+
|
| 114 |
+
#endif /* __ICC */
|
| 115 |
+
|
| 116 |
+
#if defined(__GRCO_CLANG_COMPILER__)
|
| 117 |
+
#if (__GRCO_CLANG_COMPILER__ == 1) && ((__clang_major__ < 16) || (__clang_major__ > 19))
|
| 118 |
+
#error -- unsupported Grace clang version! The version must be 16.x to 19.x. The nvcc flag '-allow-unsupported-compiler' can be used to override this version check; however, using an unsupported host compiler may cause compilation failure or incorrect run time execution. Use at your own risk.
|
| 119 |
+
#endif /* (__GRCO_CLANG_COMPILER__ == 1) && ((__clang_major__ < 16) || (__clang_major__ > 19)) */
|
| 120 |
+
|
| 121 |
+
#endif /* __GRCO_CLANG_COMPILER__ */
|
| 122 |
+
|
| 123 |
+
#if defined(__INTEL_CLANG_COMPILER)
|
| 124 |
+
#error -- unsupported Intel ICX compiler! The nvcc flag '-allow-unsupported-compiler' can be used to override this version check; however, using an unsupported host compiler may cause compilation failure or incorrect run time execution. Use at your own risk.
|
| 125 |
+
#endif /* __INTEL_CLANG_COMPILER */
|
| 126 |
+
|
| 127 |
+
#if defined(__powerpc__)
|
| 128 |
+
|
| 129 |
+
#if defined(__ibmxl_vrm__) && !(__ibmxl_vrm__ >= 0x0d010000 && __ibmxl_vrm__ < 0x0d020000) && \
|
| 130 |
+
!(__ibmxl_vrm__ >= 0x10010000 && __ibmxl_vrm__ < 0x10020000)
|
| 131 |
+
|
| 132 |
+
#error -- unsupported xlC version! only xlC 13.1 and 16.1 are supported. The nvcc flag '-allow-unsupported-compiler' can be used to override this version check; however, using an unsupported host compiler may cause compilation failure or incorrect run time execution. Use at your own risk.
|
| 133 |
+
|
| 134 |
+
#endif /* __ibmxl_vrm__ && !(__ibmxl_vrm__ >= 0x0d010000 && __ibmxl_vrm__ < 0x0d020000) &&
|
| 135 |
+
!(__ibmxl_vrm__ >= 0x10010000 && __ibmxl_vrm__ < 0x10020000) */
|
| 136 |
+
|
| 137 |
+
#endif /* __powerpc__ */
|
| 138 |
+
|
| 139 |
+
#if defined(__GNUC__)
|
| 140 |
+
|
| 141 |
+
#if __GNUC__ > 14
|
| 142 |
+
|
| 143 |
+
#error -- unsupported GNU version! gcc versions later than 14 are not supported! The nvcc flag '-allow-unsupported-compiler' can be used to override this version check; however, using an unsupported host compiler may cause compilation failure or incorrect run time execution. Use at your own risk.
|
| 144 |
+
|
| 145 |
+
#endif /* __GNUC__ > 14 */
|
| 146 |
+
|
| 147 |
+
|
| 148 |
+
#if defined(__HORIZON__)
|
| 149 |
+
#if (__clang_major__ >= 20) || (__clang_major__ < 3) || ((__clang_major__ == 3) && (__clang_minor__ < 3))
|
| 150 |
+
#error -- unsupported HOS clang version! The version must be must be less than 20 and greater than 3.2 . The nvcc flag '-allow-unsupported-compiler' can be used to override this version check; however, using an unsupported host compiler may cause compilation failure or incorrect run time execution. Use at your own risk.
|
| 151 |
+
#endif /* (__clang_major__ >= 20) || (__clang_major__ < 3) || ((__clang_major__ == 3) && (__clang_minor__ < 3)) */
|
| 152 |
+
#endif /* __HORIZON__ */
|
| 153 |
+
|
| 154 |
+
#if defined(__clang__) && !defined(__ibmxl_vrm__) && !defined(__ICC) && !defined(__HORIZON__) && !defined(__APPLE__) && !defined(__GRCO_CLANG_COMPILER__)
|
| 155 |
+
|
| 156 |
+
#if (__clang_major__ >= 20) || (__clang_major__ < 3) || ((__clang_major__ == 3) && (__clang_minor__ < 3))
|
| 157 |
+
#error -- unsupported clang version! clang version must be less than 20 and greater than 3.2 . The nvcc flag '-allow-unsupported-compiler' can be used to override this version check; however, using an unsupported host compiler may cause compilation failure or incorrect run time execution. Use at your own risk.
|
| 158 |
+
|
| 159 |
+
#endif /* (__clang_major__ >= 20) || (__clang_major__ < 3) || ((__clang_major__ == 3) && (__clang_minor__ < 3)) */
|
| 160 |
+
|
| 161 |
+
#endif /* defined(__clang__) && !defined(__ibmxl_vrm__) && !defined(__ICC) && !defined(__HORIZON__) && !defined(__APPLE__) && !defined(__GRCO_CLANG_COMPILER__) */
|
| 162 |
+
|
| 163 |
+
|
| 164 |
+
#endif /* __GNUC__ */
|
| 165 |
+
|
| 166 |
+
#if defined(_WIN32)
|
| 167 |
+
|
| 168 |
+
#if _MSC_VER < 1910 || _MSC_VER >= 1950
|
| 169 |
+
|
| 170 |
+
#error -- unsupported Microsoft Visual Studio version! Only the versions between 2017 and 2022 (inclusive) are supported! The nvcc flag '-allow-unsupported-compiler' can be used to override this version check; however, using an unsupported host compiler may cause compilation failure or incorrect run time execution. Use at your own risk.
|
| 171 |
+
|
| 172 |
+
#elif _MSC_VER >= 1910 && _MSC_VER < 1910
|
| 173 |
+
|
| 174 |
+
#pragma message("support for this version of Microsoft Visual Studio has been deprecated! Only the versions between 2017 and 2022 (inclusive) are supported!")
|
| 175 |
+
|
| 176 |
+
#endif /* (_MSC_VER < 1910 || _MSC_VER >= 1950) || (_MSC_VER >= 1910 && _MSC_VER < 1910) */
|
| 177 |
+
|
| 178 |
+
#endif /* _WIN32 */
|
| 179 |
+
#endif /* !__NV_NO_HOST_COMPILER_CHECK */
|
| 180 |
+
|
| 181 |
+
|
| 182 |
+
/* configure host compiler */
|
| 183 |
+
#if defined(__APPLE__)
|
| 184 |
+
|
| 185 |
+
#define _CRTIMP
|
| 186 |
+
#define _ACRTIMP
|
| 187 |
+
#define __THROW
|
| 188 |
+
|
| 189 |
+
#if defined(__BLOCKS__) /* nvcc does not support closures */
|
| 190 |
+
|
| 191 |
+
#undef __BLOCKS__
|
| 192 |
+
|
| 193 |
+
#endif /* __BLOCKS__ */
|
| 194 |
+
|
| 195 |
+
#elif defined(__ANDROID__)
|
| 196 |
+
|
| 197 |
+
#define _CRTIMP
|
| 198 |
+
#define _ACRTIMP
|
| 199 |
+
#define __THROW
|
| 200 |
+
|
| 201 |
+
#elif defined(__QNX__)
|
| 202 |
+
|
| 203 |
+
#define _CRTIMP
|
| 204 |
+
#define _ACRTIMP
|
| 205 |
+
#define __THROW
|
| 206 |
+
|
| 207 |
+
#elif defined(__HORIZON__)
|
| 208 |
+
|
| 209 |
+
#define _CRTIMP
|
| 210 |
+
#define _ACRTIMP
|
| 211 |
+
#define __THROW
|
| 212 |
+
|
| 213 |
+
#elif defined(__GNUC__)
|
| 214 |
+
|
| 215 |
+
#define _CRTIMP
|
| 216 |
+
#define _ACRTIMP
|
| 217 |
+
|
| 218 |
+
#include <features.h> /* for __THROW */
|
| 219 |
+
|
| 220 |
+
#elif defined(_WIN32)
|
| 221 |
+
|
| 222 |
+
#if _MSC_VER >= 1500
|
| 223 |
+
|
| 224 |
+
#undef _USE_DECLSPECS_FOR_SAL
|
| 225 |
+
#define _USE_DECLSPECS_FOR_SAL \
|
| 226 |
+
1
|
| 227 |
+
|
| 228 |
+
#endif /* _MSC_VER >= 1500 */
|
| 229 |
+
|
| 230 |
+
#if !defined(_CRT_NONSTDC_NO_WARNINGS)
|
| 231 |
+
|
| 232 |
+
#define _CRT_NONSTDC_NO_WARNINGS /* to suppress warnings */
|
| 233 |
+
|
| 234 |
+
#endif /* !_CRT_NONSTDC_NO_WARNINGS */
|
| 235 |
+
|
| 236 |
+
#if !defined(_CRT_SECURE_NO_WARNINGS)
|
| 237 |
+
|
| 238 |
+
#define _CRT_SECURE_NO_WARNINGS /* to suppress warnings */
|
| 239 |
+
|
| 240 |
+
#endif /* !_CRT_SECURE_NO_WARNINGS */
|
| 241 |
+
|
| 242 |
+
#if !defined(NOMINMAX)
|
| 243 |
+
|
| 244 |
+
#define NOMINMAX /* min and max are part of cuda runtime */
|
| 245 |
+
|
| 246 |
+
#endif /* !NOMINMAX */
|
| 247 |
+
|
| 248 |
+
#include <crtdefs.h> /* for _CRTIMP */
|
| 249 |
+
#if _MSC_VER >= 1900
|
| 250 |
+
#include <corecrt.h> /* for _ACRTIMP */
|
| 251 |
+
#endif /* _MSC_VER >= 1900 */
|
| 252 |
+
|
| 253 |
+
#define __THROW
|
| 254 |
+
|
| 255 |
+
#endif /* __APPLE__ */
|
| 256 |
+
|
| 257 |
+
#endif /* __CUDACC_RTC__ */
|
| 258 |
+
|
| 259 |
+
|
| 260 |
+
#if defined(__cplusplus) && defined(__CUDA_ARCH__) && (defined(__PGIC__) || defined(__CUDACC_RTC__) || (defined(_WIN32) && defined(_MSC_VER)))
|
| 261 |
+
|
| 262 |
+
#if __CUDACC_RTC__
|
| 263 |
+
typedef char *va_list;
|
| 264 |
+
#else /* !__CUDACC_RTC__ */
|
| 265 |
+
#include <cstdarg>
|
| 266 |
+
#endif /* __CUDACC_RTC__ */
|
| 267 |
+
|
| 268 |
+
|
| 269 |
+
#undef va_start
|
| 270 |
+
#undef va_end
|
| 271 |
+
#undef va_arg
|
| 272 |
+
|
| 273 |
+
#ifdef __PGIC__
|
| 274 |
+
|
| 275 |
+
#undef __builtin_va_end
|
| 276 |
+
|
| 277 |
+
#define va_start(v,l) __builtin_alt_va_start(v,l)
|
| 278 |
+
#define va_end(v) __builtin_va_end(v)
|
| 279 |
+
#define va_arg(v,l) __builtin_alt_va_arg(v,l)
|
| 280 |
+
|
| 281 |
+
#if (__cplusplus >= 201103L)
|
| 282 |
+
#undef va_copy
|
| 283 |
+
#define va_copy(d,s) __builtin_va_copy(d,s)
|
| 284 |
+
#endif
|
| 285 |
+
|
| 286 |
+
#else /* !__PGIC__ */
|
| 287 |
+
|
| 288 |
+
|
| 289 |
+
#define va_start(ap, x) (__cu_va_start(&ap, x))
|
| 290 |
+
#define va_end(ap) (__cu_va_end(&ap))
|
| 291 |
+
#define va_arg(ap, t) (*((t *)__cu_va_arg(&ap, (t *)0)))
|
| 292 |
+
|
| 293 |
+
#if (_MSC_VER >= 1800) || (defined(__CUDACC_RTC__) && (__cplusplus >= 201103L))
|
| 294 |
+
#undef va_copy
|
| 295 |
+
#define va_copy(apd, aps) (__cu_va_copy(&(apd), &(aps)))
|
| 296 |
+
#endif /* (_MSC_VER >= 1800) || (defined(__CUDACC_RTC__) && (__cplusplus >= 201103L)) */
|
| 297 |
+
#endif /* __PGIC__ */
|
| 298 |
+
|
| 299 |
+
#endif /* defined(__cplusplus) && (defined(__CUDACC_RTC__) || (defined(_WIN32) && defined(_MSC_VER))) */
|
| 300 |
+
|
| 301 |
+
|
| 302 |
+
|
| 303 |
+
#endif /* __CUDACC__ */
|
| 304 |
+
|
| 305 |
+
#endif /* !__HOST_CONFIG_H__ */
|
| 306 |
+
|
| 307 |
+
#if defined(__UNDEF_CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS_HOST_CONFIG_H__)
|
| 308 |
+
#undef __CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS__
|
| 309 |
+
#undef __UNDEF_CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS_HOST_CONFIG_H__
|
| 310 |
+
#endif
|
data/miniconda3/pkgs/cuda-crt-dev_linux-64-12.8.93-h06a4308_3/targets/x86_64-linux/include/crt/host_defines.h
ADDED
|
@@ -0,0 +1,283 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
* Copyright 1993-2023 NVIDIA Corporation. All rights reserved.
|
| 3 |
+
*
|
| 4 |
+
* NOTICE TO LICENSEE:
|
| 5 |
+
*
|
| 6 |
+
* This source code and/or documentation ("Licensed Deliverables") are
|
| 7 |
+
* subject to NVIDIA intellectual property rights under U.S. and
|
| 8 |
+
* international Copyright laws.
|
| 9 |
+
*
|
| 10 |
+
* These Licensed Deliverables contained herein is PROPRIETARY and
|
| 11 |
+
* CONFIDENTIAL to NVIDIA and is being provided under the terms and
|
| 12 |
+
* conditions of a form of NVIDIA software license agreement by and
|
| 13 |
+
* between NVIDIA and Licensee ("License Agreement") or electronically
|
| 14 |
+
* accepted by Licensee. Notwithstanding any terms or conditions to
|
| 15 |
+
* the contrary in the License Agreement, reproduction or disclosure
|
| 16 |
+
* of the Licensed Deliverables to any third party without the express
|
| 17 |
+
* written consent of NVIDIA is prohibited.
|
| 18 |
+
*
|
| 19 |
+
* NOTWITHSTANDING ANY TERMS OR CONDITIONS TO THE CONTRARY IN THE
|
| 20 |
+
* LICENSE AGREEMENT, NVIDIA MAKES NO REPRESENTATION ABOUT THE
|
| 21 |
+
* SUITABILITY OF THESE LICENSED DELIVERABLES FOR ANY PURPOSE. IT IS
|
| 22 |
+
* PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY OF ANY KIND.
|
| 23 |
+
* NVIDIA DISCLAIMS ALL WARRANTIES WITH REGARD TO THESE LICENSED
|
| 24 |
+
* DELIVERABLES, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY,
|
| 25 |
+
* NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE.
|
| 26 |
+
* NOTWITHSTANDING ANY TERMS OR CONDITIONS TO THE CONTRARY IN THE
|
| 27 |
+
* LICENSE AGREEMENT, IN NO EVENT SHALL NVIDIA BE LIABLE FOR ANY
|
| 28 |
+
* SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, OR ANY
|
| 29 |
+
* DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
|
| 30 |
+
* WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
|
| 31 |
+
* ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
|
| 32 |
+
* OF THESE LICENSED DELIVERABLES.
|
| 33 |
+
*
|
| 34 |
+
* U.S. Government End Users. These Licensed Deliverables are a
|
| 35 |
+
* "commercial item" as that term is defined at 48 C.F.R. 2.101 (OCT
|
| 36 |
+
* 1995), consisting of "commercial computer software" and "commercial
|
| 37 |
+
* computer software documentation" as such terms are used in 48
|
| 38 |
+
* C.F.R. 12.212 (SEPT 1995) and is provided to the U.S. Government
|
| 39 |
+
* only as a commercial end item. Consistent with 48 C.F.R.12.212 and
|
| 40 |
+
* 48 C.F.R. 227.7202-1 through 227.7202-4 (JUNE 1995), all
|
| 41 |
+
* U.S. Government End Users acquire the Licensed Deliverables with
|
| 42 |
+
* only those rights set forth herein.
|
| 43 |
+
*
|
| 44 |
+
* Any use of the Licensed Deliverables in individual and commercial
|
| 45 |
+
* software must include, in the user documentation and internal
|
| 46 |
+
* comments to the code, the above Disclaimer and U.S. Government End
|
| 47 |
+
* Users Notice.
|
| 48 |
+
*/
|
| 49 |
+
|
| 50 |
+
#if !defined(__CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS__)
|
| 51 |
+
#if defined(_MSC_VER)
|
| 52 |
+
#pragma message("crt/host_defines.h is an internal header file and must not be used directly. Please use cuda_runtime_api.h or cuda_runtime.h instead.")
|
| 53 |
+
#else
|
| 54 |
+
#warning "crt/host_defines.h is an internal header file and must not be used directly. Please use cuda_runtime_api.h or cuda_runtime.h instead."
|
| 55 |
+
#endif
|
| 56 |
+
#define __CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS__
|
| 57 |
+
#define __UNDEF_CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS_HOST_DEFINES_H__
|
| 58 |
+
#endif
|
| 59 |
+
|
| 60 |
+
#if !defined(__HOST_DEFINES_H__)
|
| 61 |
+
#define __HOST_DEFINES_H__
|
| 62 |
+
|
| 63 |
+
#if defined(__CUDACC__) && !defined(__CUDACC_RTC__) && !defined(__CUDADEVRT_INTERNAL__) && !defined(_ALLOW_UNSUPPORTED_LIBCPP)
|
| 64 |
+
#include <ctype.h>
|
| 65 |
+
#if ((defined(_MSC_VER ) && (defined(_M_X64) || defined(_M_AMD64))) ||\
|
| 66 |
+
(defined(__x86_64__) || defined(__amd64__))) && defined(_LIBCPP_VERSION) && !(defined(__HORIZON__) || defined(__ANDROID__) || defined(__QNX__))
|
| 67 |
+
#error "libc++ is not supported on x86 system"
|
| 68 |
+
#endif
|
| 69 |
+
#endif
|
| 70 |
+
|
| 71 |
+
/* CUDA JIT mode (__CUDACC_RTC__) also uses GNU style attributes */
|
| 72 |
+
#if defined(__GNUC__) || (defined(__PGIC__) && defined(__linux__)) || defined(__CUDA_LIBDEVICE__) || defined(__CUDACC_RTC__)
|
| 73 |
+
|
| 74 |
+
#if defined(__CUDACC_RTC__)
|
| 75 |
+
#define __volatile__ volatile
|
| 76 |
+
#endif /* __CUDACC_RTC__ */
|
| 77 |
+
|
| 78 |
+
#define __no_return__ \
|
| 79 |
+
__attribute__((noreturn))
|
| 80 |
+
|
| 81 |
+
#if defined(__CUDACC__) || defined(__CUDA_ARCH__) || defined(__CUDA_LIBDEVICE__)
|
| 82 |
+
/* gcc allows users to define attributes with underscores,
|
| 83 |
+
e.g., __attribute__((__noinline__)).
|
| 84 |
+
Consider a non-CUDA source file (e.g. .cpp) that has the
|
| 85 |
+
above attribute specification, and includes this header file. In that case,
|
| 86 |
+
defining __noinline__ as below would cause a gcc compilation error.
|
| 87 |
+
Hence, only define __noinline__ when the code is being processed
|
| 88 |
+
by a CUDA compiler component.
|
| 89 |
+
*/
|
| 90 |
+
#define __noinline__ \
|
| 91 |
+
__attribute__((noinline))
|
| 92 |
+
#endif /* __CUDACC__ || __CUDA_ARCH__ || __CUDA_LIBDEVICE__ */
|
| 93 |
+
|
| 94 |
+
#undef __forceinline__
|
| 95 |
+
#define __forceinline__ \
|
| 96 |
+
__inline__ __attribute__((always_inline))
|
| 97 |
+
#define __inline_hint__ \
|
| 98 |
+
__attribute__((nv_inline_hint))
|
| 99 |
+
#define __align__(n) \
|
| 100 |
+
__attribute__((aligned(n)))
|
| 101 |
+
#define __maxnreg__(a) \
|
| 102 |
+
__attribute__((maxnreg(a)))
|
| 103 |
+
#define __thread__ \
|
| 104 |
+
__thread
|
| 105 |
+
#define __import__
|
| 106 |
+
#define __export__
|
| 107 |
+
#define __cdecl
|
| 108 |
+
#define __annotate__(a) \
|
| 109 |
+
__attribute__((a))
|
| 110 |
+
#define __location__(a) \
|
| 111 |
+
__annotate__(a)
|
| 112 |
+
#define CUDARTAPI
|
| 113 |
+
#define CUDARTAPI_CDECL
|
| 114 |
+
|
| 115 |
+
#elif defined(_MSC_VER)
|
| 116 |
+
|
| 117 |
+
#if _MSC_VER >= 1400
|
| 118 |
+
|
| 119 |
+
#define __restrict__ \
|
| 120 |
+
__restrict
|
| 121 |
+
|
| 122 |
+
#else /* _MSC_VER >= 1400 */
|
| 123 |
+
|
| 124 |
+
#define __restrict__
|
| 125 |
+
|
| 126 |
+
#endif /* _MSC_VER >= 1400 */
|
| 127 |
+
|
| 128 |
+
#define __inline__ \
|
| 129 |
+
__inline
|
| 130 |
+
#define __no_return__ \
|
| 131 |
+
__declspec(noreturn)
|
| 132 |
+
#define __noinline__ \
|
| 133 |
+
__declspec(noinline)
|
| 134 |
+
#define __forceinline__ \
|
| 135 |
+
__forceinline
|
| 136 |
+
#define __inline_hint__ \
|
| 137 |
+
__declspec(nv_inline_hint)
|
| 138 |
+
#define __align__(n) \
|
| 139 |
+
__declspec(align(n))
|
| 140 |
+
#define __maxnreg__(n) \
|
| 141 |
+
__declspec(maxnreg(n))
|
| 142 |
+
#define __thread__ \
|
| 143 |
+
__declspec(thread)
|
| 144 |
+
#define __import__ \
|
| 145 |
+
__declspec(dllimport)
|
| 146 |
+
#define __export__ \
|
| 147 |
+
__declspec(dllexport)
|
| 148 |
+
#define __annotate__(a) \
|
| 149 |
+
__declspec(a)
|
| 150 |
+
#define __location__(a) \
|
| 151 |
+
__annotate__(__##a##__)
|
| 152 |
+
#define CUDARTAPI \
|
| 153 |
+
__stdcall
|
| 154 |
+
#define CUDARTAPI_CDECL \
|
| 155 |
+
__cdecl
|
| 156 |
+
|
| 157 |
+
#else /* __GNUC__ || __CUDA_LIBDEVICE__ || __CUDACC_RTC__ */
|
| 158 |
+
|
| 159 |
+
#define __inline__
|
| 160 |
+
|
| 161 |
+
#if !defined(__align__)
|
| 162 |
+
|
| 163 |
+
#error --- !!! UNKNOWN COMPILER: please provide a CUDA compatible definition for '__align__' !!! ---
|
| 164 |
+
|
| 165 |
+
#endif /* !__align__ */
|
| 166 |
+
|
| 167 |
+
#if !defined(CUDARTAPI)
|
| 168 |
+
|
| 169 |
+
#error --- !!! UNKNOWN COMPILER: please provide a CUDA compatible definition for 'CUDARTAPI' !!! ---
|
| 170 |
+
|
| 171 |
+
#endif /* !CUDARTAPI */
|
| 172 |
+
|
| 173 |
+
#endif /* __GNUC__ || __CUDA_LIBDEVICE__ || __CUDACC_RTC__ */
|
| 174 |
+
|
| 175 |
+
#if (defined(__GNUC__) && (__GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 3 && !defined(__clang__)))) || \
|
| 176 |
+
(defined(_MSC_VER) && _MSC_VER < 1900) || \
|
| 177 |
+
(!defined(__GNUC__) && !defined(_MSC_VER))
|
| 178 |
+
|
| 179 |
+
#define __specialization_static \
|
| 180 |
+
static
|
| 181 |
+
|
| 182 |
+
#else /* (__GNUC__ && (__GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 3 && !__clang__))) ||
|
| 183 |
+
(_MSC_VER && _MSC_VER < 1900) ||
|
| 184 |
+
(!__GNUC__ && !_MSC_VER) */
|
| 185 |
+
|
| 186 |
+
#define __specialization_static
|
| 187 |
+
|
| 188 |
+
#endif /* (__GNUC__ && (__GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 3 && !__clang__))) ||
|
| 189 |
+
(_MSC_VER && _MSC_VER < 1900) ||
|
| 190 |
+
(!__GNUC__ && !_MSC_VER) */
|
| 191 |
+
|
| 192 |
+
#if !defined(__CUDACC__) && !defined(__CUDA_LIBDEVICE__)
|
| 193 |
+
|
| 194 |
+
#undef __annotate__
|
| 195 |
+
#define __annotate__(a)
|
| 196 |
+
|
| 197 |
+
#else /* !__CUDACC__ && !__CUDA_LIBDEVICE__ */
|
| 198 |
+
|
| 199 |
+
#define __launch_bounds__(...) \
|
| 200 |
+
__annotate__(launch_bounds(__VA_ARGS__))
|
| 201 |
+
|
| 202 |
+
#endif /* !__CUDACC__ && !__CUDA_LIBDEVICE__ */
|
| 203 |
+
|
| 204 |
+
#if defined(__CUDACC__) || defined(__CUDA_LIBDEVICE__) || \
|
| 205 |
+
defined(__GNUC__) || defined(_WIN64)
|
| 206 |
+
|
| 207 |
+
#define __builtin_align__(a) \
|
| 208 |
+
__align__(a)
|
| 209 |
+
|
| 210 |
+
#else /* __CUDACC__ || __CUDA_LIBDEVICE__ || __GNUC__ || _WIN64 */
|
| 211 |
+
|
| 212 |
+
#define __builtin_align__(a)
|
| 213 |
+
|
| 214 |
+
#endif /* __CUDACC__ || __CUDA_LIBDEVICE__ || __GNUC__ || _WIN64 */
|
| 215 |
+
|
| 216 |
+
#if defined(__CUDACC__) || !defined(__grid_constant__)
|
| 217 |
+
#define __grid_constant__ \
|
| 218 |
+
__location__(grid_constant)
|
| 219 |
+
#endif /* defined(__CUDACC__) || !defined(__grid_constant__) */
|
| 220 |
+
|
| 221 |
+
#if defined(__CUDACC__) || !defined(__host__)
|
| 222 |
+
#define __host__ \
|
| 223 |
+
__location__(host)
|
| 224 |
+
#endif /* defined(__CUDACC__) || !defined(__host__) */
|
| 225 |
+
#if defined(__CUDACC__) || !defined(__device__)
|
| 226 |
+
#define __device__ \
|
| 227 |
+
__location__(device)
|
| 228 |
+
#endif /* defined(__CUDACC__) || !defined(__device__) */
|
| 229 |
+
#if defined(__CUDACC__) || !defined(__global__)
|
| 230 |
+
#define __global__ \
|
| 231 |
+
__location__(global)
|
| 232 |
+
#endif /* defined(__CUDACC__) || !defined(__global__) */
|
| 233 |
+
#if defined(__CUDACC__) || !defined(__shared__)
|
| 234 |
+
#define __shared__ \
|
| 235 |
+
__location__(shared)
|
| 236 |
+
#endif /* defined(__CUDACC__) || !defined(__shared__) */
|
| 237 |
+
#if defined(__CUDACC__) || !defined(__constant__)
|
| 238 |
+
#define __constant__ \
|
| 239 |
+
__location__(constant)
|
| 240 |
+
#endif /* defined(__CUDACC__) || !defined(__constant__) */
|
| 241 |
+
#if defined(__CUDACC__) || !defined(__managed__)
|
| 242 |
+
#define __managed__ \
|
| 243 |
+
__location__(managed)
|
| 244 |
+
#endif /* defined(__CUDACC__) || !defined(__managed__) */
|
| 245 |
+
#if defined(__CUDACC__) || !defined(__nv_pure__)
|
| 246 |
+
#define __nv_pure__ \
|
| 247 |
+
__location__(nv_pure)
|
| 248 |
+
#endif /* defined(__CUDACC__) || !defined(__nv_pure__) */
|
| 249 |
+
#if !defined(__CUDACC__)
|
| 250 |
+
#define __device_builtin__
|
| 251 |
+
#define __device_builtin_texture_type__
|
| 252 |
+
#define __device_builtin_surface_type__
|
| 253 |
+
#define __cudart_builtin__
|
| 254 |
+
#else /* defined(__CUDACC__) */
|
| 255 |
+
#define __device_builtin__ \
|
| 256 |
+
__location__(device_builtin)
|
| 257 |
+
#define __device_builtin_texture_type__ \
|
| 258 |
+
__location__(device_builtin_texture_type)
|
| 259 |
+
#define __device_builtin_surface_type__ \
|
| 260 |
+
__location__(device_builtin_surface_type)
|
| 261 |
+
#define __cudart_builtin__ \
|
| 262 |
+
__location__(cudart_builtin)
|
| 263 |
+
#endif /* !defined(__CUDACC__) */
|
| 264 |
+
|
| 265 |
+
#if defined(__CUDACC__) || !defined(__cluster_dims__)
|
| 266 |
+
#if defined(_MSC_VER)
|
| 267 |
+
#define __cluster_dims__(...) \
|
| 268 |
+
__declspec(__cluster_dims__(__VA_ARGS__))
|
| 269 |
+
|
| 270 |
+
#else /* !defined(_MSC_VER) */
|
| 271 |
+
#define __cluster_dims__(...) \
|
| 272 |
+
__attribute__((cluster_dims(__VA_ARGS__)))
|
| 273 |
+
#endif /* defined(_MSC_VER) */
|
| 274 |
+
#endif /* defined(__CUDACC__) || !defined(__cluster_dims__) */
|
| 275 |
+
|
| 276 |
+
#define __CUDA_ARCH_HAS_FEATURE__(_FEAT) __CUDA_ARCH_FEAT_##_FEAT
|
| 277 |
+
|
| 278 |
+
#endif /* !__HOST_DEFINES_H__ */
|
| 279 |
+
|
| 280 |
+
#if defined(__UNDEF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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
* NVIDIA_COPYRIGHT_BEGIN
|
| 3 |
+
*
|
| 4 |
+
* Copyright (c) 2008-2023, NVIDIA CORPORATION. All rights reserved.
|
| 5 |
+
*
|
| 6 |
+
* NVIDIA CORPORATION and its licensors retain all intellectual property
|
| 7 |
+
* and proprietary rights in and to this software, related documentation
|
| 8 |
+
* and any modifications thereto. Any use, reproduction, disclosure or
|
| 9 |
+
* distribution of this software and related documentation without an express
|
| 10 |
+
* license agreement from NVIDIA CORPORATION is strictly prohibited.
|
| 11 |
+
*
|
| 12 |
+
* NVIDIA_COPYRIGHT_END
|
| 13 |
+
*/
|
| 14 |
+
|
| 15 |
+
#if !defined(__CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS__)
|
| 16 |
+
#if defined(_MSC_VER)
|
| 17 |
+
#pragma message("crt/device_functions.h is an internal header file and must not be used directly. Please use cuda_runtime_api.h or cuda_runtime.h instead.")
|
| 18 |
+
#else
|
| 19 |
+
#warning "crt/device_functions.h is an internal header file and must not be used directly. Please use cuda_runtime_api.h or cuda_runtime.h instead."
|
| 20 |
+
#endif
|
| 21 |
+
#define __CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS__
|
| 22 |
+
#define __UNDEF_CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS_HOST_RUNTIME_H__
|
| 23 |
+
#endif
|
| 24 |
+
|
| 25 |
+
#if !defined(__CUDA_INTERNAL_COMPILATION__)
|
| 26 |
+
|
| 27 |
+
#define __CUDA_INTERNAL_COMPILATION__
|
| 28 |
+
#define __text__
|
| 29 |
+
#define __surf__
|
| 30 |
+
#define __name__shadow_var(c, cpp) \
|
| 31 |
+
#c
|
| 32 |
+
#define __name__text_var(c, cpp) \
|
| 33 |
+
#cpp
|
| 34 |
+
#define __host__shadow_var(c, cpp) \
|
| 35 |
+
cpp
|
| 36 |
+
#define __text_var(c, cpp) \
|
| 37 |
+
cpp
|
| 38 |
+
#define __device_fun(fun) \
|
| 39 |
+
#fun
|
| 40 |
+
#define __device_var(var) \
|
| 41 |
+
#var
|
| 42 |
+
#define __device__text_var(c, cpp) \
|
| 43 |
+
#c
|
| 44 |
+
#define __device__shadow_var(c, cpp) \
|
| 45 |
+
#c
|
| 46 |
+
|
| 47 |
+
#if defined(_WIN32) && !defined(_WIN64)
|
| 48 |
+
|
| 49 |
+
#define __pad__(f) \
|
| 50 |
+
f
|
| 51 |
+
|
| 52 |
+
#else /* _WIN32 && !_WIN64 */
|
| 53 |
+
|
| 54 |
+
#define __pad__(f)
|
| 55 |
+
|
| 56 |
+
#endif /* _WIN32 && !_WIN64 */
|
| 57 |
+
|
| 58 |
+
#include "builtin_types.h"
|
| 59 |
+
#include "storage_class.h"
|
| 60 |
+
|
| 61 |
+
#else /* !__CUDA_INTERNAL_COMPILATION__ */
|
| 62 |
+
|
| 63 |
+
template <typename T>
|
| 64 |
+
static inline T *__cudaAddressOf(T &val)
|
| 65 |
+
{
|
| 66 |
+
return (T *)((void *)(&(const_cast<char &>(reinterpret_cast<const volatile char &>(val)))));
|
| 67 |
+
}
|
| 68 |
+
|
| 69 |
+
#define __cudaRegisterBinary(X) \
|
| 70 |
+
__cudaFatCubinHandle = __cudaRegisterFatBinary((void*)&__fatDeviceText); \
|
| 71 |
+
{ void (*callback_fp)(void **) = (void (*)(void **))(X); (*callback_fp)(__cudaFatCubinHandle); __cudaRegisterFatBinaryEnd(__cudaFatCubinHandle); }\
|
| 72 |
+
atexit(__cudaUnregisterBinaryUtil)
|
| 73 |
+
|
| 74 |
+
#define __cudaRegisterVariable(handle, var, ext, size, constant, global) \
|
| 75 |
+
__cudaRegisterVar(handle, (char*)&__host##var, (char*)__device##var, __name##var, ext, size, constant, global)
|
| 76 |
+
#define __cudaRegisterManagedVariable(handle, var, ext, size, constant, global) \
|
| 77 |
+
__cudaRegisterManagedVar(handle, (void **)&__host##var, (char*)__device##var, __name##var, ext, size, constant, global)
|
| 78 |
+
|
| 79 |
+
#define __cudaRegisterGlobalTexture(handle, tex, dim, norm, ext) \
|
| 80 |
+
__cudaRegisterTexture(handle, (const struct textureReference*)&tex, (const void**)(void*)__device##tex, __name##tex, dim, norm, ext)
|
| 81 |
+
#define __cudaRegisterGlobalSurface(handle, surf, dim, ext) \
|
| 82 |
+
__cudaRegisterSurface(handle, (const struct surfaceReference*)&surf, (const void**)(void*)__device##surf, __name##surf, dim, ext)
|
| 83 |
+
#define __cudaRegisterEntry(handle, funptr, fun, thread_limit) \
|
| 84 |
+
__cudaRegisterFunction(handle, (const char*)funptr, (char*)__device_fun(fun), #fun, -1, (uint3*)0, (uint3*)0, (dim3*)0, (dim3*)0, (int*)0)
|
| 85 |
+
|
| 86 |
+
extern "C" cudaError_t CUDARTAPI __cudaPopCallConfiguration(
|
| 87 |
+
dim3 *gridDim,
|
| 88 |
+
dim3 *blockDim,
|
| 89 |
+
size_t *sharedMem,
|
| 90 |
+
void *stream
|
| 91 |
+
);
|
| 92 |
+
|
| 93 |
+
#define __cudaLaunchPrologue(size) \
|
| 94 |
+
void * __args_arr[size]; \
|
| 95 |
+
int __args_idx = 0
|
| 96 |
+
|
| 97 |
+
#define __cudaSetupArg(arg, offset) \
|
| 98 |
+
__args_arr[__args_idx] = (void *)__cudaAddressOf(arg); ++__args_idx
|
| 99 |
+
|
| 100 |
+
#define __cudaSetupArgSimple(arg, offset) \
|
| 101 |
+
__args_arr[__args_idx] = (void *)(char *)&arg; ++__args_idx
|
| 102 |
+
|
| 103 |
+
#if defined(__GNUC__)
|
| 104 |
+
#define __NV_ATTR_UNUSED_FOR_LAUNCH __attribute__((unused))
|
| 105 |
+
#else /* !__GNUC__ */
|
| 106 |
+
#define __NV_ATTR_UNUSED_FOR_LAUNCH
|
| 107 |
+
#endif /* __GNUC__ */
|
| 108 |
+
|
| 109 |
+
#ifdef __NV_LEGACY_LAUNCH
|
| 110 |
+
/* the use of __args_idx in the expression below avoids host compiler warning about it being an
|
| 111 |
+
unused variable when the launch has no arguments */
|
| 112 |
+
#define __cudaLaunch(fun) \
|
| 113 |
+
{ volatile static char *__f __NV_ATTR_UNUSED_FOR_LAUNCH; __f = fun; \
|
| 114 |
+
dim3 __gridDim, __blockDim;\
|
| 115 |
+
size_t __sharedMem; \
|
| 116 |
+
cudaStream_t __stream; \
|
| 117 |
+
if (__cudaPopCallConfiguration(&__gridDim, &__blockDim, &__sharedMem, &__stream) != cudaSuccess) \
|
| 118 |
+
return; \
|
| 119 |
+
if (__args_idx == 0) {\
|
| 120 |
+
(void)cudaLaunchKernel(fun, __gridDim, __blockDim, &__args_arr[__args_idx], __sharedMem, __stream);\
|
| 121 |
+
} else { \
|
| 122 |
+
(void)cudaLaunchKernel(fun, __gridDim, __blockDim, &__args_arr[0], __sharedMem, __stream);\
|
| 123 |
+
}\
|
| 124 |
+
}
|
| 125 |
+
#else /* !__NV_LEGACY_LAUNCH */
|
| 126 |
+
#define __cudaLaunch(fun) \
|
| 127 |
+
{ volatile static char *__f __NV_ATTR_UNUSED_FOR_LAUNCH; __f = fun; \
|
| 128 |
+
static cudaKernel_t __handle = 0; \
|
| 129 |
+
volatile static bool __tmp __NV_ATTR_UNUSED_FOR_LAUNCH = (__cudaGetKernel(&__handle, (const void *)fun) == cudaSuccess); \
|
| 130 |
+
dim3 __gridDim, __blockDim;\
|
| 131 |
+
size_t __sharedMem; \
|
| 132 |
+
cudaStream_t __stream; \
|
| 133 |
+
if (__cudaPopCallConfiguration(&__gridDim, &__blockDim, &__sharedMem, &__stream) != cudaSuccess) \
|
| 134 |
+
return; \
|
| 135 |
+
if (__args_idx == 0) {\
|
| 136 |
+
(void)__cudaLaunchKernel_helper(__handle, __gridDim, __blockDim, &__args_arr[__args_idx], __sharedMem, __stream);\
|
| 137 |
+
} else { \
|
| 138 |
+
(void)__cudaLaunchKernel_helper(__handle, __gridDim, __blockDim, &__args_arr[0], __sharedMem, __stream);\
|
| 139 |
+
}\
|
| 140 |
+
}
|
| 141 |
+
#endif /* __NV_LEGACY_LAUNCH */
|
| 142 |
+
|
| 143 |
+
#if defined(__GNUC__)
|
| 144 |
+
#define __nv_dummy_param_ref(param) \
|
| 145 |
+
{ volatile static void **__ref __attribute__((unused)); __ref = (volatile void **)param; }
|
| 146 |
+
#else /* __GNUC__ */
|
| 147 |
+
#define __nv_dummy_param_ref(param) \
|
| 148 |
+
{ volatile static void **__ref; __ref = (volatile void **)param; }
|
| 149 |
+
#endif /* __GNUC__ */
|
| 150 |
+
|
| 151 |
+
static void ____nv_dummy_param_ref(void *param) __nv_dummy_param_ref(param)
|
| 152 |
+
|
| 153 |
+
#define __REGISTERFUNCNAME_CORE(X) __cudaRegisterLinkedBinary##X
|
| 154 |
+
#define __REGISTERFUNCNAME(X) __REGISTERFUNCNAME_CORE(X)
|
| 155 |
+
|
| 156 |
+
extern "C" {
|
| 157 |
+
void __REGISTERFUNCNAME( __NV_MODULE_ID ) ( void (*)(void **), void *, void *, void (*)(void *));
|
| 158 |
+
}
|
| 159 |
+
|
| 160 |
+
#define __TO_STRING_CORE(X) #X
|
| 161 |
+
#define __TO_STRING(X) __TO_STRING_CORE(X)
|
| 162 |
+
|
| 163 |
+
extern "C" {
|
| 164 |
+
#if defined(_WIN32)
|
| 165 |
+
#pragma data_seg("__nv_module_id")
|
| 166 |
+
static const __declspec(allocate("__nv_module_id")) unsigned char __module_id_str[] = __TO_STRING(__NV_MODULE_ID);
|
| 167 |
+
#pragma data_seg()
|
| 168 |
+
#elif defined(__APPLE__)
|
| 169 |
+
static const unsigned char __module_id_str[] __attribute__((section ("__NV_CUDA,__nv_module_id"))) = __TO_STRING(__NV_MODULE_ID);
|
| 170 |
+
#else
|
| 171 |
+
static const unsigned char __module_id_str[] __attribute__((section ("__nv_module_id"))) = __TO_STRING(__NV_MODULE_ID);
|
| 172 |
+
#endif
|
| 173 |
+
|
| 174 |
+
#undef __FATIDNAME_CORE
|
| 175 |
+
#undef __FATIDNAME
|
| 176 |
+
#define __FATIDNAME_CORE(X) __fatbinwrap##X
|
| 177 |
+
#define __FATIDNAME(X) __FATIDNAME_CORE(X)
|
| 178 |
+
|
| 179 |
+
#define ____cudaRegisterLinkedBinary(X) \
|
| 180 |
+
{ __REGISTERFUNCNAME(__NV_MODULE_ID) (( void (*)(void **))(X), (void *)&__FATIDNAME(__NV_MODULE_ID), (void *)&__module_id_str, (void (*)(void *))&____nv_dummy_param_ref); }
|
| 181 |
+
|
| 182 |
+
}
|
| 183 |
+
|
| 184 |
+
extern "C" {
|
| 185 |
+
extern void** CUDARTAPI __cudaRegisterFatBinary(
|
| 186 |
+
void *fatCubin
|
| 187 |
+
);
|
| 188 |
+
|
| 189 |
+
extern void CUDARTAPI __cudaRegisterFatBinaryEnd(
|
| 190 |
+
void **fatCubinHandle
|
| 191 |
+
);
|
| 192 |
+
|
| 193 |
+
extern void CUDARTAPI __cudaUnregisterFatBinary(
|
| 194 |
+
void **fatCubinHandle
|
| 195 |
+
);
|
| 196 |
+
|
| 197 |
+
extern void CUDARTAPI __cudaRegisterVar(
|
| 198 |
+
void **fatCubinHandle,
|
| 199 |
+
char *hostVar,
|
| 200 |
+
char *deviceAddress,
|
| 201 |
+
const char *deviceName,
|
| 202 |
+
int ext,
|
| 203 |
+
size_t size,
|
| 204 |
+
int constant,
|
| 205 |
+
int global
|
| 206 |
+
);
|
| 207 |
+
|
| 208 |
+
extern void CUDARTAPI __cudaRegisterManagedVar(
|
| 209 |
+
void **fatCubinHandle,
|
| 210 |
+
void **hostVarPtrAddress,
|
| 211 |
+
char *deviceAddress,
|
| 212 |
+
const char *deviceName,
|
| 213 |
+
int ext,
|
| 214 |
+
size_t size,
|
| 215 |
+
int constant,
|
| 216 |
+
int global
|
| 217 |
+
);
|
| 218 |
+
|
| 219 |
+
extern char CUDARTAPI __cudaInitModule(
|
| 220 |
+
void **fatCubinHandle
|
| 221 |
+
);
|
| 222 |
+
|
| 223 |
+
extern void CUDARTAPI __cudaRegisterTexture(
|
| 224 |
+
void **fatCubinHandle,
|
| 225 |
+
const struct textureReference *hostVar,
|
| 226 |
+
const void **deviceAddress,
|
| 227 |
+
const char *deviceName,
|
| 228 |
+
int dim,
|
| 229 |
+
int norm,
|
| 230 |
+
int ext
|
| 231 |
+
);
|
| 232 |
+
|
| 233 |
+
extern void CUDARTAPI __cudaRegisterSurface(
|
| 234 |
+
void **fatCubinHandle,
|
| 235 |
+
const struct surfaceReference *hostVar,
|
| 236 |
+
const void **deviceAddress,
|
| 237 |
+
const char *deviceName,
|
| 238 |
+
int dim,
|
| 239 |
+
int ext
|
| 240 |
+
);
|
| 241 |
+
|
| 242 |
+
extern void CUDARTAPI __cudaRegisterFunction(
|
| 243 |
+
void **fatCubinHandle,
|
| 244 |
+
const char *hostFun,
|
| 245 |
+
char *deviceFun,
|
| 246 |
+
const char *deviceName,
|
| 247 |
+
int thread_limit,
|
| 248 |
+
uint3 *tid,
|
| 249 |
+
uint3 *bid,
|
| 250 |
+
dim3 *bDim,
|
| 251 |
+
dim3 *gDim,
|
| 252 |
+
int *wSize
|
| 253 |
+
);
|
| 254 |
+
|
| 255 |
+
#if defined(__APPLE__)
|
| 256 |
+
extern "C" int atexit(void (*)(void));
|
| 257 |
+
|
| 258 |
+
#elif defined(__GNUC__) && !defined(__ANDROID__) && !defined(__HORIZON__)
|
| 259 |
+
extern int atexit(void(*)(void)) throw();
|
| 260 |
+
|
| 261 |
+
#elif defined(__HORIZON__)
|
| 262 |
+
|
| 263 |
+
// __TEMP_WAR__ 200132570 HOS : Disable atexit call until it works
|
| 264 |
+
#define atexit(p)
|
| 265 |
+
|
| 266 |
+
#else /* __GNUC__ && !__ANDROID__ */
|
| 267 |
+
extern int __cdecl atexit(void(__cdecl *)(void));
|
| 268 |
+
#endif
|
| 269 |
+
|
| 270 |
+
}
|
| 271 |
+
|
| 272 |
+
static void **__cudaFatCubinHandle;
|
| 273 |
+
|
| 274 |
+
static void __cdecl __cudaUnregisterBinaryUtil(void)
|
| 275 |
+
{
|
| 276 |
+
____nv_dummy_param_ref((void *)&__cudaFatCubinHandle);
|
| 277 |
+
__cudaUnregisterFatBinary(__cudaFatCubinHandle);
|
| 278 |
+
}
|
| 279 |
+
|
| 280 |
+
static char __nv_init_managed_rt_with_module(void **handle)
|
| 281 |
+
{
|
| 282 |
+
return __cudaInitModule(handle);
|
| 283 |
+
}
|
| 284 |
+
|
| 285 |
+
#include "common_functions.h"
|
| 286 |
+
|
| 287 |
+
#pragma pack()
|
| 288 |
+
|
| 289 |
+
#if defined(_WIN32)
|
| 290 |
+
|
| 291 |
+
#pragma warning(disable: 4099)
|
| 292 |
+
|
| 293 |
+
#if !defined(_WIN64)
|
| 294 |
+
|
| 295 |
+
#pragma warning(disable: 4408)
|
| 296 |
+
|
| 297 |
+
#endif /* !_WIN64 */
|
| 298 |
+
|
| 299 |
+
#endif /* _WIN32 */
|
| 300 |
+
|
| 301 |
+
#endif /* !__CUDA_INTERNAL_COMPILATION__ */
|
| 302 |
+
|
| 303 |
+
#if defined(__UNDEF_CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS_HOST_RUNTIME_H__)
|
| 304 |
+
#undef __CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS__
|
| 305 |
+
#undef __UNDEF_CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS_HOST_RUNTIME_H__
|
| 306 |
+
#endif
|
data/miniconda3/pkgs/cuda-crt-dev_linux-64-12.8.93-h06a4308_3/targets/x86_64-linux/include/crt/math_functions.h
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
data/miniconda3/pkgs/cuda-crt-dev_linux-64-12.8.93-h06a4308_3/targets/x86_64-linux/include/crt/math_functions.hpp
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
data/miniconda3/pkgs/cuda-crt-dev_linux-64-12.8.93-h06a4308_3/targets/x86_64-linux/include/crt/mma.h
ADDED
|
@@ -0,0 +1,761 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
* Copyright 2017-2024 NVIDIA Corporation. All rights reserved.
|
| 3 |
+
*
|
| 4 |
+
* NOTICE TO LICENSEE:
|
| 5 |
+
*
|
| 6 |
+
* This source code and/or documentation ("Licensed Deliverables") are
|
| 7 |
+
* subject to NVIDIA intellectual property rights under U.S. and
|
| 8 |
+
* international Copyright laws.
|
| 9 |
+
*
|
| 10 |
+
* These Licensed Deliverables contained herein is PROPRIETARY and
|
| 11 |
+
* CONFIDENTIAL to NVIDIA and is being provided under the terms and
|
| 12 |
+
* conditions of a form of NVIDIA software license agreement by and
|
| 13 |
+
* between NVIDIA and Licensee ("License Agreement") or electronically
|
| 14 |
+
* accepted by Licensee. Notwithstanding any terms or conditions to
|
| 15 |
+
* the contrary in the License Agreement, reproduction or disclosure
|
| 16 |
+
* of the Licensed Deliverables to any third party without the express
|
| 17 |
+
* written consent of NVIDIA is prohibited.
|
| 18 |
+
*
|
| 19 |
+
* NOTWITHSTANDING ANY TERMS OR CONDITIONS TO THE CONTRARY IN THE
|
| 20 |
+
* LICENSE AGREEMENT, NVIDIA MAKES NO REPRESENTATION ABOUT THE
|
| 21 |
+
* SUITABILITY OF THESE LICENSED DELIVERABLES FOR ANY PURPOSE. IT IS
|
| 22 |
+
* PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY OF ANY KIND.
|
| 23 |
+
* NVIDIA DISCLAIMS ALL WARRANTIES WITH REGARD TO THESE LICENSED
|
| 24 |
+
* DELIVERABLES, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY,
|
| 25 |
+
* NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE.
|
| 26 |
+
* NOTWITHSTANDING ANY TERMS OR CONDITIONS TO THE CONTRARY IN THE
|
| 27 |
+
* LICENSE AGREEMENT, IN NO EVENT SHALL NVIDIA BE LIABLE FOR ANY
|
| 28 |
+
* SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, OR ANY
|
| 29 |
+
* DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
|
| 30 |
+
* WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
|
| 31 |
+
* ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
|
| 32 |
+
* OF THESE LICENSED DELIVERABLES.
|
| 33 |
+
*
|
| 34 |
+
* U.S. Government End Users. These Licensed Deliverables are a
|
| 35 |
+
* "commercial item" as that term is defined at 48 C.F.R. 2.101 (OCT
|
| 36 |
+
* 1995), consisting of "commercial computer software" and "commercial
|
| 37 |
+
* computer software documentation" as such terms are used in 48
|
| 38 |
+
* C.F.R. 12.212 (SEPT 1995) and is provided to the U.S. Government
|
| 39 |
+
* only as a commercial end item. Consistent with 48 C.F.R.12.212 and
|
| 40 |
+
* 48 C.F.R. 227.7202-1 through 227.7202-4 (JUNE 1995), all
|
| 41 |
+
* U.S. Government End Users acquire the Licensed Deliverables with
|
| 42 |
+
* only those rights set forth herein.
|
| 43 |
+
*
|
| 44 |
+
* Any use of the Licensed Deliverables in individual and commercial
|
| 45 |
+
* software must include, in the user documentation and internal
|
| 46 |
+
* comments to the code, the above Disclaimer and U.S. Government End
|
| 47 |
+
* Users Notice.
|
| 48 |
+
*/
|
| 49 |
+
|
| 50 |
+
#if !defined(__CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS__)
|
| 51 |
+
#if defined(_MSC_VER)
|
| 52 |
+
#pragma message("crt/mma.h is an internal header file and must not be used directly. Please use mma.h instead.")
|
| 53 |
+
#else
|
| 54 |
+
#warning "crt/mma.h is an internal header file and must not be used directly. Please use mma.h instead."
|
| 55 |
+
#endif
|
| 56 |
+
#define __CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS__
|
| 57 |
+
#define __UNDEF_CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS_CUDA_MMA_H__
|
| 58 |
+
#endif
|
| 59 |
+
|
| 60 |
+
#if !defined(__CUDA_MMA_H__)
|
| 61 |
+
#define __CUDA_MMA_H__
|
| 62 |
+
|
| 63 |
+
#include <cuda_fp16.h>
|
| 64 |
+
#include <cuda_bf16.h>
|
| 65 |
+
|
| 66 |
+
#define __CUDA_MMA_DEVICE_DECL__ static __device__ __inline__
|
| 67 |
+
|
| 68 |
+
#if defined(__cplusplus) && defined(__CUDACC__)
|
| 69 |
+
|
| 70 |
+
#if !defined(__CUDA_ARCH__) || __CUDA_ARCH__ >= 700
|
| 71 |
+
|
| 72 |
+
|
| 73 |
+
#if !defined(__CUDA_ARCH__) && !defined(_NVHPC_CUDA)
|
| 74 |
+
#define __DEF_IF_HOST { }
|
| 75 |
+
#else /* !__CUDA_ARCH__ && !_NVHPC_CUDA */
|
| 76 |
+
#define __DEF_IF_HOST ;
|
| 77 |
+
#endif /* __CUDA_ARCH__ || _NVHPC_CUDA */
|
| 78 |
+
|
| 79 |
+
#if !defined(__CUDA_ARCH__) || __CUDA_ARCH__ >= 720
|
| 80 |
+
#define __CUDA_IMMA__ 1
|
| 81 |
+
#endif /* !defined(__CUDA_ARCH__) || __CUDA_ARCH__ >= 720 */
|
| 82 |
+
|
| 83 |
+
#if !defined(__CUDA_ARCH__) || __CUDA_ARCH__ >= 730
|
| 84 |
+
#define __CUDA_SUBBYTE_IMMA__ 1
|
| 85 |
+
#endif /* !defined(__CUDA_ARCH__) || __CUDA_ARCH__ >= 730 */
|
| 86 |
+
|
| 87 |
+
#if !defined(__CUDA_ARCH__) || __CUDA_ARCH__ >= 800
|
| 88 |
+
#define __CUDA_AMPERE_MMA__ 1
|
| 89 |
+
#endif /* !defined(__CUDA_ARCH__) || __CUDA_ARCH__ >= 800 */
|
| 90 |
+
|
| 91 |
+
namespace nvcuda {
|
| 92 |
+
namespace wmma {
|
| 93 |
+
|
| 94 |
+
// utility functions
|
| 95 |
+
#ifdef __CUDA_AMPERE_MMA__
|
| 96 |
+
inline __device__ float __float_to_tf32(float in)
|
| 97 |
+
{
|
| 98 |
+
float ret;
|
| 99 |
+
asm("{\n .reg .b32 __$1;"
|
| 100 |
+
"\n cvt.rna.tf32.f32 __$1, %1;"
|
| 101 |
+
"\n mov.b32 %0, __$1;\n}\n" : "=f"(ret) : "f"(in) );
|
| 102 |
+
return ret;
|
| 103 |
+
}
|
| 104 |
+
#endif /* __CUDA_AMPERE_MMA__ */
|
| 105 |
+
|
| 106 |
+
//
|
| 107 |
+
// tags
|
| 108 |
+
//
|
| 109 |
+
struct row_major;
|
| 110 |
+
struct col_major;
|
| 111 |
+
struct matrix_a;
|
| 112 |
+
struct matrix_b;
|
| 113 |
+
struct accumulator;
|
| 114 |
+
|
| 115 |
+
#ifdef __CUDA_AMPERE_MMA__
|
| 116 |
+
namespace precision {
|
| 117 |
+
struct tf32;
|
| 118 |
+
}
|
| 119 |
+
#endif /* __CUDA_AMPERE_MMA__ */
|
| 120 |
+
#ifdef __CUDA_SUBBYTE_IMMA__
|
| 121 |
+
namespace experimental {
|
| 122 |
+
namespace precision {
|
| 123 |
+
struct u4; // 4-bit unsigned
|
| 124 |
+
struct s4; // 4-bit signed
|
| 125 |
+
struct b1; // 1-bit
|
| 126 |
+
}
|
| 127 |
+
enum bmmaBitOp { bmmaBitOpXOR = 1
|
| 128 |
+
#ifdef __CUDA_AMPERE_MMA__
|
| 129 |
+
, bmmaBitOpAND = 2
|
| 130 |
+
#endif /* __CUDA_AMPERE_MMA__ */
|
| 131 |
+
};
|
| 132 |
+
enum bmmaAccumulateOp { bmmaAccumulateOpPOPC = 1 };
|
| 133 |
+
}
|
| 134 |
+
#endif /* __CUDA_SUBBYTE_IMMA__ */
|
| 135 |
+
|
| 136 |
+
//
|
| 137 |
+
// layout
|
| 138 |
+
//
|
| 139 |
+
enum layout_t {
|
| 140 |
+
mem_row_major, mem_col_major
|
| 141 |
+
};
|
| 142 |
+
|
| 143 |
+
template <typename T>
|
| 144 |
+
struct helper_traits {
|
| 145 |
+
typedef T element_type;
|
| 146 |
+
typedef T storage_element_type;
|
| 147 |
+
typedef T fill_argument_type;
|
| 148 |
+
};
|
| 149 |
+
|
| 150 |
+
#ifdef __CUDA_SUBBYTE_IMMA__
|
| 151 |
+
template<> struct helper_traits<experimental::precision::u4> {
|
| 152 |
+
typedef experimental::precision::u4 element_type;
|
| 153 |
+
typedef unsigned int storage_element_type;
|
| 154 |
+
typedef unsigned int fill_argument_type;
|
| 155 |
+
};
|
| 156 |
+
|
| 157 |
+
template<> struct helper_traits<experimental::precision::s4> {
|
| 158 |
+
typedef experimental::precision::s4 element_type;
|
| 159 |
+
typedef int storage_element_type;
|
| 160 |
+
typedef int fill_argument_type;
|
| 161 |
+
};
|
| 162 |
+
|
| 163 |
+
template<> struct helper_traits<experimental::precision::b1> {
|
| 164 |
+
typedef experimental::precision::b1 element_type;
|
| 165 |
+
typedef unsigned int storage_element_type;
|
| 166 |
+
typedef unsigned int fill_argument_type;
|
| 167 |
+
};
|
| 168 |
+
#endif /* __CUDA_SUBBYTE_IMMA__ */
|
| 169 |
+
|
| 170 |
+
#ifdef __CUDA_AMPERE_MMA__
|
| 171 |
+
template<> struct helper_traits<precision::tf32> {
|
| 172 |
+
typedef precision::tf32 element_type;
|
| 173 |
+
typedef float storage_element_type;
|
| 174 |
+
typedef float fill_argument_type;
|
| 175 |
+
};
|
| 176 |
+
#endif /* __CUDA_AMPERE_MMA__ */
|
| 177 |
+
|
| 178 |
+
#if defined(_MSC_VER)
|
| 179 |
+
#pragma warning(push)
|
| 180 |
+
#pragma warning(disable:4324)
|
| 181 |
+
#endif
|
| 182 |
+
//
|
| 183 |
+
// The base fragment type
|
| 184 |
+
//
|
| 185 |
+
/* note: alignment required for compiler implementation */
|
| 186 |
+
template <typename T, int size, int packed_size = size>
|
| 187 |
+
struct __align__(8) __frag_base {
|
| 188 |
+
|
| 189 |
+
/* Number of elements in the fragment */
|
| 190 |
+
enum {num_elements = size};
|
| 191 |
+
|
| 192 |
+
/* Number of storage elements in the fragment.
|
| 193 |
+
|
| 194 |
+
The elements of the fragment are packed together when the
|
| 195 |
+
fragment element type is experimental::precision::u4,
|
| 196 |
+
experimental::precision::s4 or experimental::precision::b1.
|
| 197 |
+
When elements are packed, num_storage_elements
|
| 198 |
+
will be smaller than num_elements.
|
| 199 |
+
*/
|
| 200 |
+
enum {num_storage_elements = packed_size};
|
| 201 |
+
|
| 202 |
+
/* element type of the fragment */
|
| 203 |
+
typedef T element_type;
|
| 204 |
+
|
| 205 |
+
/* element type of the storage representation.
|
| 206 |
+
|
| 207 |
+
The mapping from element_type to storage_element_type is as follows:
|
| 208 |
+
experimental::precision::u4 -> unsigned (8 elements in 1 storage element)
|
| 209 |
+
experimental::precision::s4 -> int (8 elements in 1 storage element)
|
| 210 |
+
experimental::precision::b1 -> unsigned (32 elements in 1 storage element)
|
| 211 |
+
precision::tf32 -> float (1 element in 1 storage element)
|
| 212 |
+
all other types T -> T
|
| 213 |
+
*/
|
| 214 |
+
typedef typename helper_traits<T>::storage_element_type storage_element_type;
|
| 215 |
+
|
| 216 |
+
/* Storage for the (possibly packed) fragment elements. */
|
| 217 |
+
storage_element_type x[num_storage_elements];
|
| 218 |
+
};
|
| 219 |
+
#if defined(_MSC_VER)
|
| 220 |
+
#pragma warning(pop)
|
| 221 |
+
#endif
|
| 222 |
+
|
| 223 |
+
template <typename FragEleType, typename StorageType, typename ArgType>
|
| 224 |
+
static inline __device__ StorageType __get_storage_value(ArgType in) { return in; }
|
| 225 |
+
|
| 226 |
+
#ifdef __CUDA_SUBBYTE_IMMA__
|
| 227 |
+
template<>
|
| 228 |
+
__device__ inline unsigned
|
| 229 |
+
__get_storage_value<experimental::precision::u4, unsigned, unsigned>(unsigned in)
|
| 230 |
+
{
|
| 231 |
+
/* For experimental::precision::u4 fragment element type, pack 8 elements into a single
|
| 232 |
+
32-bit unsigned int storage element */
|
| 233 |
+
unsigned val = in & 0xf;
|
| 234 |
+
return (val | (val << 4) | (val << 8) | (val << 12) | (val << 16) |
|
| 235 |
+
(val << 20) | (val << 24) | (val << 28));
|
| 236 |
+
};
|
| 237 |
+
|
| 238 |
+
template<>
|
| 239 |
+
__device__ inline int
|
| 240 |
+
__get_storage_value<experimental::precision::s4, int, int>(int in)
|
| 241 |
+
{
|
| 242 |
+
/* For experimental::precision::s4 fragment element type, pack 8 elements into a single
|
| 243 |
+
32-bit signed int storage element */
|
| 244 |
+
int val = in & 0xf;
|
| 245 |
+
return (val | (val << 4) | (val << 8) | (val << 12) | (val << 16) |
|
| 246 |
+
(val << 20) | (val << 24) | (val << 28));
|
| 247 |
+
};
|
| 248 |
+
|
| 249 |
+
template<>
|
| 250 |
+
__device__ inline unsigned
|
| 251 |
+
__get_storage_value<experimental::precision::b1, unsigned, unsigned>(unsigned in)
|
| 252 |
+
{
|
| 253 |
+
/* For experimental::precision::b1 fragment element type, pack 32 elements into a
|
| 254 |
+
single 32-bit unsigned int storage element */
|
| 255 |
+
return (in & 0x1) ? 0xFFFFFFFFU : 0;
|
| 256 |
+
}
|
| 257 |
+
#endif /* __CUDA_SUBBYTE_IMMA__ */
|
| 258 |
+
|
| 259 |
+
template <typename FragEleType, int size, int packed_size>
|
| 260 |
+
__CUDA_MMA_DEVICE_DECL__ void fill_fragment(__frag_base<FragEleType, size, packed_size>& f,
|
| 261 |
+
/* The mapping from fragment element type (FragEleType) to fill_argument_type is:
|
| 262 |
+
experimental::precision::u4 -> unsigned (only lower 4 bits taken)
|
| 263 |
+
experimental::precision::s4 -> int (only lower 4 bits taken)
|
| 264 |
+
experimental::precision::b1 -> unsigned (only lowest 1 bit taken)
|
| 265 |
+
precision::tf32 -> float
|
| 266 |
+
all other types T -> T
|
| 267 |
+
*/
|
| 268 |
+
const typename helper_traits<FragEleType>::fill_argument_type & in) {
|
| 269 |
+
|
| 270 |
+
/* get the (possibly packed) storage element value. See the specializations above for fragment
|
| 271 |
+
element types where the storage representation is packed */
|
| 272 |
+
typedef typename helper_traits<FragEleType>::storage_element_type storage_type;
|
| 273 |
+
storage_type v = __get_storage_value<FragEleType, storage_type>(in);
|
| 274 |
+
#pragma unroll
|
| 275 |
+
for (int i=0; i< f.num_storage_elements; i++)
|
| 276 |
+
f.x[i] = v;
|
| 277 |
+
}
|
| 278 |
+
|
| 279 |
+
//
|
| 280 |
+
// Fragment template
|
| 281 |
+
//
|
| 282 |
+
template<typename Use, int m, int n, int k, typename T, typename Layout=void> class fragment;
|
| 283 |
+
|
| 284 |
+
//
|
| 285 |
+
// Fragments for 16x16x16
|
| 286 |
+
//
|
| 287 |
+
template<> class fragment<matrix_a, 16, 16, 16, __half, row_major> : public __frag_base<__half, 16> {};
|
| 288 |
+
template<> class fragment<matrix_a, 16, 16, 16, __half, col_major> : public __frag_base<__half, 16> {};
|
| 289 |
+
template<> class fragment<matrix_b, 16, 16, 16, __half, row_major> : public __frag_base<__half, 16> {};
|
| 290 |
+
template<> class fragment<matrix_b, 16, 16, 16, __half, col_major> : public __frag_base<__half, 16> {};
|
| 291 |
+
template<> class fragment<accumulator, 16, 16, 16, __half> : public __frag_base<__half, 8> {};
|
| 292 |
+
template<> class fragment<accumulator, 16, 16, 16, float> : public __frag_base<float, 8> {};
|
| 293 |
+
|
| 294 |
+
#ifdef __CUDA_IMMA__
|
| 295 |
+
template<> class fragment<matrix_a, 16, 16, 16, signed char, row_major> : public __frag_base<signed char, 8> {};
|
| 296 |
+
template<> class fragment<matrix_a, 16, 16, 16, signed char, col_major> : public __frag_base<signed char, 8> {};
|
| 297 |
+
template<> class fragment<matrix_a, 16, 16, 16, unsigned char, row_major> : public __frag_base<unsigned char, 8> {};
|
| 298 |
+
template<> class fragment<matrix_a, 16, 16, 16, unsigned char, col_major> : public __frag_base<unsigned char, 8> {};
|
| 299 |
+
template<> class fragment<matrix_b, 16, 16, 16, signed char, row_major> : public __frag_base<signed char, 8> {};
|
| 300 |
+
template<> class fragment<matrix_b, 16, 16, 16, signed char, col_major> : public __frag_base<signed char, 8> {};
|
| 301 |
+
template<> class fragment<matrix_b, 16, 16, 16, unsigned char, row_major> : public __frag_base<unsigned char, 8> {};
|
| 302 |
+
template<> class fragment<matrix_b, 16, 16, 16, unsigned char, col_major> : public __frag_base<unsigned char, 8> {};
|
| 303 |
+
template<> class fragment<accumulator, 16, 16, 16, int> : public __frag_base<int, 8> {};
|
| 304 |
+
#endif /* __CUDA_IMMA__ */
|
| 305 |
+
|
| 306 |
+
#ifdef __CUDA_AMPERE_MMA__
|
| 307 |
+
template<> class fragment<matrix_a, 16, 16, 16, __nv_bfloat16, row_major> : public __frag_base<__nv_bfloat16, 8> {};
|
| 308 |
+
template<> class fragment<matrix_a, 16, 16, 16, __nv_bfloat16, col_major> : public __frag_base<__nv_bfloat16, 8> {};
|
| 309 |
+
template<> class fragment<matrix_b, 16, 16, 16, __nv_bfloat16, row_major> : public __frag_base<__nv_bfloat16, 8> {};
|
| 310 |
+
template<> class fragment<matrix_b, 16, 16, 16, __nv_bfloat16, col_major> : public __frag_base<__nv_bfloat16, 8> {};
|
| 311 |
+
#endif /* __CUDA_AMPERE_MMA__ */
|
| 312 |
+
|
| 313 |
+
//
|
| 314 |
+
// Fragments for 32x8x16
|
| 315 |
+
//
|
| 316 |
+
template<> class fragment<matrix_a, 32, 8, 16, __half, row_major> : public __frag_base<__half, 16> {};
|
| 317 |
+
template<> class fragment<matrix_a, 32, 8, 16, __half, col_major> : public __frag_base<__half, 16> {};
|
| 318 |
+
template<> class fragment<matrix_b, 32, 8, 16, __half, row_major> : public __frag_base<__half, 16> {};
|
| 319 |
+
template<> class fragment<matrix_b, 32, 8, 16, __half, col_major> : public __frag_base<__half, 16> {};
|
| 320 |
+
template<> class fragment<accumulator, 32, 8, 16, __half> : public __frag_base<__half, 8> {};
|
| 321 |
+
template<> class fragment<accumulator, 32, 8, 16, float> : public __frag_base<float, 8> {};
|
| 322 |
+
|
| 323 |
+
#ifdef __CUDA_IMMA__
|
| 324 |
+
template<> class fragment<matrix_a, 32, 8, 16, signed char, row_major> : public __frag_base<signed char, 16> {};
|
| 325 |
+
template<> class fragment<matrix_a, 32, 8, 16, signed char, col_major> : public __frag_base<signed char, 16> {};
|
| 326 |
+
template<> class fragment<matrix_a, 32, 8, 16, unsigned char, row_major> : public __frag_base<unsigned char, 16> {};
|
| 327 |
+
template<> class fragment<matrix_a, 32, 8, 16, unsigned char, col_major> : public __frag_base<unsigned char, 16> {};
|
| 328 |
+
template<> class fragment<matrix_b, 32, 8, 16, signed char, row_major> : public __frag_base<signed char, 4> {};
|
| 329 |
+
template<> class fragment<matrix_b, 32, 8, 16, signed char, col_major> : public __frag_base<signed char, 4> {};
|
| 330 |
+
template<> class fragment<matrix_b, 32, 8, 16, unsigned char, row_major> : public __frag_base<unsigned char, 4> {};
|
| 331 |
+
template<> class fragment<matrix_b, 32, 8, 16, unsigned char, col_major> : public __frag_base<unsigned char, 4> {};
|
| 332 |
+
template<> class fragment<accumulator, 32, 8, 16, int> : public __frag_base<int, 8> {};
|
| 333 |
+
#endif /* __CUDA_IMMA__ */
|
| 334 |
+
|
| 335 |
+
#ifdef __CUDA_AMPERE_MMA__
|
| 336 |
+
template<> class fragment<matrix_a, 32, 8, 16, __nv_bfloat16, row_major> : public __frag_base<__nv_bfloat16, 16> {};
|
| 337 |
+
template<> class fragment<matrix_a, 32, 8, 16, __nv_bfloat16, col_major> : public __frag_base<__nv_bfloat16, 16> {};
|
| 338 |
+
template<> class fragment<matrix_b, 32, 8, 16, __nv_bfloat16, row_major> : public __frag_base<__nv_bfloat16, 4> {};
|
| 339 |
+
template<> class fragment<matrix_b, 32, 8, 16, __nv_bfloat16, col_major> : public __frag_base<__nv_bfloat16, 4> {};
|
| 340 |
+
#endif /* __CUDA_AMPERE_MMA__ */
|
| 341 |
+
|
| 342 |
+
//
|
| 343 |
+
// Fragments for 8x32x16
|
| 344 |
+
//
|
| 345 |
+
template<> class fragment<matrix_a, 8, 32, 16, __half, row_major> : public __frag_base<__half, 16> {};
|
| 346 |
+
template<> class fragment<matrix_a, 8, 32, 16, __half, col_major> : public __frag_base<__half, 16> {};
|
| 347 |
+
template<> class fragment<matrix_b, 8, 32, 16, __half, row_major> : public __frag_base<__half, 16> {};
|
| 348 |
+
template<> class fragment<matrix_b, 8, 32, 16, __half, col_major> : public __frag_base<__half, 16> {};
|
| 349 |
+
template<> class fragment<accumulator, 8, 32, 16, __half> : public __frag_base<__half, 8> {};
|
| 350 |
+
template<> class fragment<accumulator, 8, 32, 16, float> : public __frag_base<float, 8> {};
|
| 351 |
+
|
| 352 |
+
#ifdef __CUDA_IMMA__
|
| 353 |
+
template<> class fragment<matrix_a, 8, 32, 16, signed char, row_major> : public __frag_base<signed char, 4> {};
|
| 354 |
+
template<> class fragment<matrix_a, 8, 32, 16, signed char, col_major> : public __frag_base<signed char, 4> {};
|
| 355 |
+
template<> class fragment<matrix_a, 8, 32, 16, unsigned char, row_major> : public __frag_base<unsigned char, 4> {};
|
| 356 |
+
template<> class fragment<matrix_a, 8, 32, 16, unsigned char, col_major> : public __frag_base<unsigned char, 4> {};
|
| 357 |
+
template<> class fragment<matrix_b, 8, 32, 16, signed char, row_major> : public __frag_base<signed char, 16> {};
|
| 358 |
+
template<> class fragment<matrix_b, 8, 32, 16, signed char, col_major> : public __frag_base<signed char, 16> {};
|
| 359 |
+
template<> class fragment<matrix_b, 8, 32, 16, unsigned char, row_major> : public __frag_base<unsigned char, 16> {};
|
| 360 |
+
template<> class fragment<matrix_b, 8, 32, 16, unsigned char, col_major> : public __frag_base<unsigned char, 16> {};
|
| 361 |
+
template<> class fragment<accumulator, 8, 32, 16, int> : public __frag_base<int, 8> {};
|
| 362 |
+
#endif /* __CUDA_IMMA__ */
|
| 363 |
+
|
| 364 |
+
#ifdef __CUDA_AMPERE_MMA__
|
| 365 |
+
template<> class fragment<matrix_a, 8, 32, 16, __nv_bfloat16, row_major> : public __frag_base<__nv_bfloat16, 4> {};
|
| 366 |
+
template<> class fragment<matrix_a, 8, 32, 16, __nv_bfloat16, col_major> : public __frag_base<__nv_bfloat16, 4> {};
|
| 367 |
+
template<> class fragment<matrix_b, 8, 32, 16, __nv_bfloat16, row_major> : public __frag_base<__nv_bfloat16, 16> {};
|
| 368 |
+
template<> class fragment<matrix_b, 8, 32, 16, __nv_bfloat16, col_major> : public __frag_base<__nv_bfloat16, 16> {};
|
| 369 |
+
#endif /* __CUDA_AMPERE_MMA__ */
|
| 370 |
+
|
| 371 |
+
#ifdef __CUDA_SUBBYTE_IMMA__
|
| 372 |
+
//
|
| 373 |
+
// Fragments for 8x8x32
|
| 374 |
+
//
|
| 375 |
+
template<> class fragment<matrix_a, 8, 8, 32, experimental::precision::u4, row_major> : public __frag_base<experimental::precision::u4, 8, 1> {};
|
| 376 |
+
template<> class fragment<matrix_a, 8, 8, 32, experimental::precision::s4, row_major> : public __frag_base<experimental::precision::s4, 8, 1> {};
|
| 377 |
+
template<> class fragment<matrix_b, 8, 8, 32, experimental::precision::u4, col_major> : public __frag_base<experimental::precision::u4, 8, 1> {};
|
| 378 |
+
template<> class fragment<matrix_b, 8, 8, 32, experimental::precision::s4, col_major> : public __frag_base<experimental::precision::s4, 8, 1> {};
|
| 379 |
+
template<> class fragment<accumulator, 8, 8, 32, int> : public __frag_base<int, 2> {};
|
| 380 |
+
|
| 381 |
+
//
|
| 382 |
+
// Fragments for 8x8x128
|
| 383 |
+
//
|
| 384 |
+
template<> class fragment<matrix_a, 8, 8, 128, experimental::precision::b1, row_major> : public __frag_base<experimental::precision::b1, 32, 1> {};
|
| 385 |
+
template<> class fragment<matrix_b, 8, 8, 128, experimental::precision::b1, col_major> : public __frag_base<experimental::precision::b1, 32, 1> {};
|
| 386 |
+
template<> class fragment<accumulator, 8, 8, 128, int> : public __frag_base<int, 2> {};
|
| 387 |
+
#endif /* __CUDA_SUBBYTE_IMMA__ */
|
| 388 |
+
|
| 389 |
+
#ifdef __CUDA_AMPERE_MMA__
|
| 390 |
+
//
|
| 391 |
+
// Fragments for 16x16x8
|
| 392 |
+
//
|
| 393 |
+
template<> class fragment<matrix_a, 16, 16, 8, precision::tf32, row_major> : public __frag_base<precision::tf32, 4> {};
|
| 394 |
+
template<> class fragment<matrix_a, 16, 16, 8, precision::tf32, col_major> : public __frag_base<precision::tf32, 4> {};
|
| 395 |
+
template<> class fragment<matrix_b, 16, 16, 8, precision::tf32, row_major> : public __frag_base<precision::tf32, 4> {};
|
| 396 |
+
template<> class fragment<matrix_b, 16, 16, 8, precision::tf32, col_major> : public __frag_base<precision::tf32, 4> {};
|
| 397 |
+
template<> class fragment<accumulator, 16, 16, 8, float> : public __frag_base<float, 8> {};
|
| 398 |
+
|
| 399 |
+
//
|
| 400 |
+
// Fragments for 8x8x4
|
| 401 |
+
//
|
| 402 |
+
template<> class fragment<matrix_a, 8, 8, 4, double, row_major> : public __frag_base<double, 1> {};
|
| 403 |
+
template<> class fragment<matrix_a, 8, 8, 4, double, col_major> : public __frag_base<double, 1> {};
|
| 404 |
+
template<> class fragment<matrix_b, 8, 8, 4, double, row_major> : public __frag_base<double, 1> {};
|
| 405 |
+
template<> class fragment<matrix_b, 8, 8, 4, double, col_major> : public __frag_base<double, 1> {};
|
| 406 |
+
template<> class fragment<accumulator, 8, 8, 4, double> : public __frag_base<double, 2> {};
|
| 407 |
+
#endif /* __CUDA_AMPERE_MMA__ */
|
| 408 |
+
|
| 409 |
+
|
| 410 |
+
//
|
| 411 |
+
// Load functions for frags of shape m16n16k16
|
| 412 |
+
//
|
| 413 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_a, 16, 16, 16, __half, row_major>& a, const __half* p, unsigned ldm) __DEF_IF_HOST
|
| 414 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_a, 16, 16, 16, __half, col_major>& a, const __half* p, unsigned ldm) __DEF_IF_HOST
|
| 415 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_b, 16, 16, 16, __half, row_major>& a, const __half* p, unsigned ldm) __DEF_IF_HOST
|
| 416 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_b, 16, 16, 16, __half, col_major>& a, const __half* p, unsigned ldm) __DEF_IF_HOST
|
| 417 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<accumulator, 16, 16, 16, __half>& a, const __half* p, unsigned ldm, layout_t layout) __DEF_IF_HOST
|
| 418 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<accumulator, 16, 16, 16, float>& a, const float* p, unsigned ldm, layout_t layout) __DEF_IF_HOST
|
| 419 |
+
|
| 420 |
+
#ifdef __CUDA_IMMA__
|
| 421 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_a, 16, 16, 16, signed char, row_major>& a, const signed char* p, unsigned ldm) __DEF_IF_HOST
|
| 422 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_a, 16, 16, 16, signed char, col_major>& a, const signed char* p, unsigned ldm) __DEF_IF_HOST
|
| 423 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_a, 16, 16, 16, unsigned char, row_major>& a, const unsigned char* p, unsigned ldm) __DEF_IF_HOST
|
| 424 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_a, 16, 16, 16, unsigned char, col_major>& a, const unsigned char* p, unsigned ldm) __DEF_IF_HOST
|
| 425 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_b, 16, 16, 16, signed char, row_major>& a, const signed char* p, unsigned ldm) __DEF_IF_HOST
|
| 426 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_b, 16, 16, 16, signed char, col_major>& a, const signed char* p, unsigned ldm) __DEF_IF_HOST
|
| 427 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_b, 16, 16, 16, unsigned char, row_major>& a, const unsigned char* p, unsigned ldm) __DEF_IF_HOST
|
| 428 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_b, 16, 16, 16, unsigned char, col_major>& a, const unsigned char* p, unsigned ldm) __DEF_IF_HOST
|
| 429 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<accumulator, 16, 16, 16, int>& a, const int* p, unsigned ldm, layout_t layout) __DEF_IF_HOST
|
| 430 |
+
#endif /* __CUDA_IMMA__ */
|
| 431 |
+
|
| 432 |
+
#ifdef __CUDA_AMPERE_MMA__
|
| 433 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_a, 16, 16, 16, __nv_bfloat16, row_major>& a, const __nv_bfloat16* p, unsigned ldm) __DEF_IF_HOST
|
| 434 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_a, 16, 16, 16, __nv_bfloat16, col_major>& a, const __nv_bfloat16* p, unsigned ldm) __DEF_IF_HOST
|
| 435 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_b, 16, 16, 16, __nv_bfloat16, row_major>& a, const __nv_bfloat16* p, unsigned ldm) __DEF_IF_HOST
|
| 436 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_b, 16, 16, 16, __nv_bfloat16, col_major>& a, const __nv_bfloat16* p, unsigned ldm) __DEF_IF_HOST
|
| 437 |
+
#endif /* __CUDA_AMPERE_MMA__ */
|
| 438 |
+
|
| 439 |
+
//
|
| 440 |
+
// Load functions for frags of shape m32n8k16
|
| 441 |
+
//
|
| 442 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_a, 32, 8, 16, __half, row_major>& a, const __half* p, unsigned ldm) __DEF_IF_HOST
|
| 443 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_a, 32, 8, 16, __half, col_major>& a, const __half* p, unsigned ldm) __DEF_IF_HOST
|
| 444 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_b, 32, 8, 16, __half, row_major>& a, const __half* p, unsigned ldm) __DEF_IF_HOST
|
| 445 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_b, 32, 8, 16, __half, col_major>& a, const __half* p, unsigned ldm) __DEF_IF_HOST
|
| 446 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<accumulator, 32, 8, 16, __half>& a, const __half* p, unsigned ldm, layout_t layout) __DEF_IF_HOST
|
| 447 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<accumulator, 32, 8, 16, float>& a, const float* p, unsigned ldm, layout_t layout) __DEF_IF_HOST
|
| 448 |
+
|
| 449 |
+
#ifdef __CUDA_IMMA__
|
| 450 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_a, 32, 8, 16, signed char, row_major>& a, const signed char* p, unsigned ldm) __DEF_IF_HOST
|
| 451 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_a, 32, 8, 16, signed char, col_major>& a, const signed char* p, unsigned ldm) __DEF_IF_HOST
|
| 452 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_a, 32, 8, 16, unsigned char, row_major>& a, const unsigned char* p, unsigned ldm) __DEF_IF_HOST
|
| 453 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_a, 32, 8, 16, unsigned char, col_major>& a, const unsigned char* p, unsigned ldm) __DEF_IF_HOST
|
| 454 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_b, 32, 8, 16, signed char, row_major>& a, const signed char* p, unsigned ldm) __DEF_IF_HOST
|
| 455 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_b, 32, 8, 16, signed char, col_major>& a, const signed char* p, unsigned ldm) __DEF_IF_HOST
|
| 456 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_b, 32, 8, 16, unsigned char, row_major>& a, const unsigned char* p, unsigned ldm) __DEF_IF_HOST
|
| 457 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_b, 32, 8, 16, unsigned char, col_major>& a, const unsigned char* p, unsigned ldm) __DEF_IF_HOST
|
| 458 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<accumulator, 32, 8, 16, int>& a, const int* p, unsigned ldm, layout_t layout) __DEF_IF_HOST
|
| 459 |
+
#endif /* __CUDA_IMMA__ */
|
| 460 |
+
|
| 461 |
+
#ifdef __CUDA_AMPERE_MMA__
|
| 462 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_a, 32, 8, 16, __nv_bfloat16, row_major>& a, const __nv_bfloat16* p, unsigned ldm) __DEF_IF_HOST
|
| 463 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_a, 32, 8, 16, __nv_bfloat16, col_major>& a, const __nv_bfloat16* p, unsigned ldm) __DEF_IF_HOST
|
| 464 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_b, 32, 8, 16, __nv_bfloat16, row_major>& a, const __nv_bfloat16* p, unsigned ldm) __DEF_IF_HOST
|
| 465 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_b, 32, 8, 16, __nv_bfloat16, col_major>& a, const __nv_bfloat16* p, unsigned ldm) __DEF_IF_HOST
|
| 466 |
+
#endif /* __CUDA_AMPERE_MMA__ */
|
| 467 |
+
|
| 468 |
+
//
|
| 469 |
+
// Load functions for frags of shape m8n32k16
|
| 470 |
+
//
|
| 471 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_a, 8, 32, 16, __half, row_major>& a, const __half* p, unsigned ldm) __DEF_IF_HOST
|
| 472 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_a, 8, 32, 16, __half, col_major>& a, const __half* p, unsigned ldm) __DEF_IF_HOST
|
| 473 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_b, 8, 32, 16, __half, row_major>& a, const __half* p, unsigned ldm) __DEF_IF_HOST
|
| 474 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_b, 8, 32, 16, __half, col_major>& a, const __half* p, unsigned ldm) __DEF_IF_HOST
|
| 475 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<accumulator, 8, 32, 16, __half>& a, const __half* p, unsigned ldm, layout_t layout) __DEF_IF_HOST
|
| 476 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<accumulator, 8, 32, 16, float>& a, const float* p, unsigned ldm, layout_t layout) __DEF_IF_HOST
|
| 477 |
+
|
| 478 |
+
#ifdef __CUDA_IMMA__
|
| 479 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_a, 8, 32, 16, signed char, row_major>& a, const signed char* p, unsigned ldm) __DEF_IF_HOST
|
| 480 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_a, 8, 32, 16, signed char, col_major>& a, const signed char* p, unsigned ldm) __DEF_IF_HOST
|
| 481 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_a, 8, 32, 16, unsigned char, row_major>& a, const unsigned char* p, unsigned ldm) __DEF_IF_HOST
|
| 482 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_a, 8, 32, 16, unsigned char, col_major>& a, const unsigned char* p, unsigned ldm) __DEF_IF_HOST
|
| 483 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_b, 8, 32, 16, signed char, row_major>& a, const signed char* p, unsigned ldm) __DEF_IF_HOST
|
| 484 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_b, 8, 32, 16, signed char, col_major>& a, const signed char* p, unsigned ldm) __DEF_IF_HOST
|
| 485 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_b, 8, 32, 16, unsigned char, row_major>& a, const unsigned char* p, unsigned ldm) __DEF_IF_HOST
|
| 486 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_b, 8, 32, 16, unsigned char, col_major>& a, const unsigned char* p, unsigned ldm) __DEF_IF_HOST
|
| 487 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<accumulator, 8, 32, 16, int>& a, const int* p, unsigned ldm, layout_t layout) __DEF_IF_HOST
|
| 488 |
+
#endif /* __CUDA_IMMA__ */
|
| 489 |
+
|
| 490 |
+
#ifdef __CUDA_AMPERE_MMA__
|
| 491 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_a, 8, 32, 16, __nv_bfloat16, row_major>& a, const __nv_bfloat16* p, unsigned ldm) __DEF_IF_HOST
|
| 492 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_a, 8, 32, 16, __nv_bfloat16, col_major>& a, const __nv_bfloat16* p, unsigned ldm) __DEF_IF_HOST
|
| 493 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_b, 8, 32, 16, __nv_bfloat16, row_major>& a, const __nv_bfloat16* p, unsigned ldm) __DEF_IF_HOST
|
| 494 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_b, 8, 32, 16, __nv_bfloat16, col_major>& a, const __nv_bfloat16* p, unsigned ldm) __DEF_IF_HOST
|
| 495 |
+
#endif /* __CUDA_AMPERE_MMA__ */
|
| 496 |
+
|
| 497 |
+
#ifdef __CUDA_SUBBYTE_IMMA__
|
| 498 |
+
//
|
| 499 |
+
// Load functions for frags of shape m8n8k32
|
| 500 |
+
//
|
| 501 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_a, 8, 8, 32, experimental::precision::s4, row_major>& a, const void* p, unsigned ldm) __DEF_IF_HOST
|
| 502 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_a, 8, 8, 32, experimental::precision::u4, row_major>& a, const void* p, unsigned ldm) __DEF_IF_HOST
|
| 503 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_b, 8, 8, 32, experimental::precision::s4, col_major>& a, const void* p, unsigned ldm) __DEF_IF_HOST
|
| 504 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_b, 8, 8, 32, experimental::precision::u4, col_major>& a, const void* p, unsigned ldm) __DEF_IF_HOST
|
| 505 |
+
|
| 506 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<accumulator, 8, 8, 32, int>& a, const int* p, unsigned ldm, layout_t layout) __DEF_IF_HOST
|
| 507 |
+
|
| 508 |
+
//
|
| 509 |
+
// Load functions for frags of shape m8n8k128
|
| 510 |
+
//
|
| 511 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_a, 8, 8, 128, experimental::precision::b1, row_major>& a, const void* p, unsigned ldm) __DEF_IF_HOST
|
| 512 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_b, 8, 8, 128, experimental::precision::b1, col_major>& a, const void* p, unsigned ldm) __DEF_IF_HOST
|
| 513 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<accumulator, 8, 8, 128, int>& a, const int* p, unsigned ldm, layout_t layout) __DEF_IF_HOST
|
| 514 |
+
|
| 515 |
+
#endif /* __CUDA_SUBBYTE_IMMA__ */
|
| 516 |
+
|
| 517 |
+
|
| 518 |
+
#ifdef __CUDA_AMPERE_MMA__
|
| 519 |
+
//
|
| 520 |
+
// Load functions for frags of shape m16n16k8
|
| 521 |
+
//
|
| 522 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_a, 16, 16, 8, precision::tf32, row_major>& a, const float* p, unsigned ldm) __DEF_IF_HOST
|
| 523 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_a, 16, 16, 8, precision::tf32, col_major>& a, const float* p, unsigned ldm) __DEF_IF_HOST
|
| 524 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_b, 16, 16, 8, precision::tf32, row_major>& a, const float* p, unsigned ldm) __DEF_IF_HOST
|
| 525 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_b, 16, 16, 8, precision::tf32, col_major>& a, const float* p, unsigned ldm) __DEF_IF_HOST
|
| 526 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<accumulator, 16, 16, 8, float>& a, const float* p, unsigned ldm, layout_t layout) __DEF_IF_HOST
|
| 527 |
+
|
| 528 |
+
//
|
| 529 |
+
// Load functions for frags of shape m8n8k4
|
| 530 |
+
//
|
| 531 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_a, 8, 8, 4, double, row_major>& a, const double* p, unsigned ldm) __DEF_IF_HOST
|
| 532 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_a, 8, 8, 4, double, col_major>& a, const double* p, unsigned ldm) __DEF_IF_HOST
|
| 533 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_b, 8, 8, 4, double, row_major>& a, const double* p, unsigned ldm) __DEF_IF_HOST
|
| 534 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_b, 8, 8, 4, double, col_major>& a, const double* p, unsigned ldm) __DEF_IF_HOST
|
| 535 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<accumulator, 8, 8, 4, double>& a, const double* p, unsigned ldm, layout_t layout) __DEF_IF_HOST
|
| 536 |
+
#endif /* __CUDA_AMPERE_MMA__ */
|
| 537 |
+
|
| 538 |
+
//
|
| 539 |
+
// Store functions for frags of shape m16n16k16
|
| 540 |
+
//
|
| 541 |
+
__CUDA_MMA_DEVICE_DECL__ void store_matrix_sync(__half *p, const fragment<accumulator, 16, 16, 16, __half>& a, unsigned ldm, layout_t layout) __DEF_IF_HOST
|
| 542 |
+
__CUDA_MMA_DEVICE_DECL__ void store_matrix_sync(float *p, const fragment<accumulator, 16, 16, 16, float>& a, unsigned ldm, layout_t layout) __DEF_IF_HOST
|
| 543 |
+
#ifdef __CUDA_IMMA__
|
| 544 |
+
__CUDA_MMA_DEVICE_DECL__ void store_matrix_sync(int *p, const fragment<accumulator, 16, 16, 16, int>& a, unsigned ldm, layout_t layout) __DEF_IF_HOST
|
| 545 |
+
#endif /* __CUDA_IMMA__ */
|
| 546 |
+
|
| 547 |
+
//
|
| 548 |
+
// Store functions for frags of shape m32n8k16
|
| 549 |
+
//
|
| 550 |
+
__CUDA_MMA_DEVICE_DECL__ void store_matrix_sync(__half *p, const fragment<accumulator, 32, 8, 16, __half>& a, unsigned ldm, layout_t layout) __DEF_IF_HOST
|
| 551 |
+
__CUDA_MMA_DEVICE_DECL__ void store_matrix_sync(float *p, const fragment<accumulator, 32, 8, 16, float>& a, unsigned ldm, layout_t layout) __DEF_IF_HOST
|
| 552 |
+
#ifdef __CUDA_IMMA__
|
| 553 |
+
__CUDA_MMA_DEVICE_DECL__ void store_matrix_sync(int *p, const fragment<accumulator, 32, 8, 16, int>& a, unsigned ldm, layout_t layout) __DEF_IF_HOST
|
| 554 |
+
#endif /* __CUDA_IMMA__ */
|
| 555 |
+
|
| 556 |
+
//
|
| 557 |
+
// Store functions for frags of shape m8n32k16
|
| 558 |
+
//
|
| 559 |
+
__CUDA_MMA_DEVICE_DECL__ void store_matrix_sync(__half *p, const fragment<accumulator, 8, 32, 16, __half>& a, unsigned ldm, layout_t layout) __DEF_IF_HOST
|
| 560 |
+
__CUDA_MMA_DEVICE_DECL__ void store_matrix_sync(float *p, const fragment<accumulator, 8, 32, 16, float>& a, unsigned ldm, layout_t layout) __DEF_IF_HOST
|
| 561 |
+
#ifdef __CUDA_IMMA__
|
| 562 |
+
__CUDA_MMA_DEVICE_DECL__ void store_matrix_sync(int *p, const fragment<accumulator, 8, 32, 16, int>& a, unsigned ldm, layout_t layout) __DEF_IF_HOST
|
| 563 |
+
#endif /* __CUDA_IMMA__ */
|
| 564 |
+
|
| 565 |
+
#ifdef __CUDA_SUBBYTE_IMMA__
|
| 566 |
+
//
|
| 567 |
+
// Store functions for frags of shape m8n8k32
|
| 568 |
+
//
|
| 569 |
+
__CUDA_MMA_DEVICE_DECL__ void store_matrix_sync(int *p, const fragment<accumulator, 8, 8, 32, int>& a, unsigned ldm, layout_t layout) __DEF_IF_HOST
|
| 570 |
+
|
| 571 |
+
//
|
| 572 |
+
// Store functions for frags of shape m8n8k128
|
| 573 |
+
//
|
| 574 |
+
__CUDA_MMA_DEVICE_DECL__ void store_matrix_sync(int *p, const fragment<accumulator, 8, 8, 128, int>& a, unsigned ldm, layout_t layout) __DEF_IF_HOST
|
| 575 |
+
|
| 576 |
+
#endif /* __CUDA_SUBBYTE_IMMA__ */
|
| 577 |
+
|
| 578 |
+
#ifdef __CUDA_AMPERE_MMA__
|
| 579 |
+
//
|
| 580 |
+
// Store functions for frags of shape m16n16k8
|
| 581 |
+
//
|
| 582 |
+
__CUDA_MMA_DEVICE_DECL__ void store_matrix_sync(float *p, const fragment<accumulator, 16, 16, 8, float>& a, unsigned ldm, layout_t layout) __DEF_IF_HOST
|
| 583 |
+
|
| 584 |
+
//
|
| 585 |
+
// Store functions for frags of shape m8n8k4
|
| 586 |
+
//
|
| 587 |
+
__CUDA_MMA_DEVICE_DECL__ void store_matrix_sync(double *p, const fragment<accumulator, 8, 8, 4, double>& a, unsigned ldm, layout_t layout) __DEF_IF_HOST
|
| 588 |
+
#endif /* __CUDA_AMPERE_MMA__ */
|
| 589 |
+
|
| 590 |
+
//
|
| 591 |
+
// MMA functions for shape m16n16k16
|
| 592 |
+
//
|
| 593 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator,16, 16, 16, __half>& d, const fragment<matrix_a, 16, 16, 16, __half, row_major>& a, const fragment<matrix_b,16, 16, 16, __half, col_major>& b, const fragment<accumulator,16, 16, 16, __half>& c) __DEF_IF_HOST
|
| 594 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator,16, 16, 16, __half>& d, const fragment<matrix_a, 16, 16, 16, __half, col_major>& a, const fragment<matrix_b,16, 16, 16, __half, col_major>& b, const fragment<accumulator,16, 16, 16, __half>& c) __DEF_IF_HOST
|
| 595 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator,16, 16, 16, __half>& d, const fragment<matrix_a, 16, 16, 16, __half, row_major>& a, const fragment<matrix_b,16, 16, 16, __half, row_major>& b, const fragment<accumulator,16, 16, 16, __half>& c) __DEF_IF_HOST
|
| 596 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator,16, 16, 16, __half>& d, const fragment<matrix_a, 16, 16, 16, __half, col_major>& a, const fragment<matrix_b,16, 16, 16, __half, row_major>& b, const fragment<accumulator,16, 16, 16, __half>& c) __DEF_IF_HOST
|
| 597 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator,16, 16, 16, float>& d, const fragment<matrix_a, 16, 16, 16, __half, row_major>& a, const fragment<matrix_b,16, 16, 16, __half, col_major>& b, const fragment<accumulator,16, 16, 16, __half>& c) __DEF_IF_HOST
|
| 598 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator,16, 16, 16, float>& d, const fragment<matrix_a, 16, 16, 16, __half, col_major>& a, const fragment<matrix_b,16, 16, 16, __half, col_major>& b, const fragment<accumulator,16, 16, 16, __half>& c) __DEF_IF_HOST
|
| 599 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator,16, 16, 16, float>& d, const fragment<matrix_a, 16, 16, 16, __half, row_major>& a, const fragment<matrix_b,16, 16, 16, __half, row_major>& b, const fragment<accumulator,16, 16, 16, __half>& c) __DEF_IF_HOST
|
| 600 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator,16, 16, 16, float>& d, const fragment<matrix_a, 16, 16, 16, __half, col_major>& a, const fragment<matrix_b,16, 16, 16, __half, row_major>& b, const fragment<accumulator,16, 16, 16, __half>& c) __DEF_IF_HOST
|
| 601 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator,16, 16, 16, float>& d, const fragment<matrix_a, 16, 16, 16, __half, row_major>& a, const fragment<matrix_b,16, 16, 16, __half, col_major>& b, const fragment<accumulator,16, 16, 16, float>& c) __DEF_IF_HOST
|
| 602 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator,16, 16, 16, float>& d, const fragment<matrix_a, 16, 16, 16, __half, col_major>& a, const fragment<matrix_b,16, 16, 16, __half, col_major>& b, const fragment<accumulator,16, 16, 16, float>& c) __DEF_IF_HOST
|
| 603 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator,16, 16, 16, float>& d, const fragment<matrix_a, 16, 16, 16, __half, row_major>& a, const fragment<matrix_b,16, 16, 16, __half, row_major>& b, const fragment<accumulator,16, 16, 16, float>& c) __DEF_IF_HOST
|
| 604 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator,16, 16, 16, float>& d, const fragment<matrix_a, 16, 16, 16, __half, col_major>& a, const fragment<matrix_b,16, 16, 16, __half, row_major>& b, const fragment<accumulator,16, 16, 16, float>& c) __DEF_IF_HOST
|
| 605 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator,16, 16, 16, __half>& d, const fragment<matrix_a, 16, 16, 16, __half, row_major>& a, const fragment<matrix_b,16, 16, 16, __half, col_major>& b, const fragment<accumulator,16, 16, 16, float>& c) __DEF_IF_HOST
|
| 606 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator,16, 16, 16, __half>& d, const fragment<matrix_a, 16, 16, 16, __half, col_major>& a, const fragment<matrix_b,16, 16, 16, __half, col_major>& b, const fragment<accumulator,16, 16, 16, float>& c) __DEF_IF_HOST
|
| 607 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator,16, 16, 16, __half>& d, const fragment<matrix_a, 16, 16, 16, __half, row_major>& a, const fragment<matrix_b,16, 16, 16, __half, row_major>& b, const fragment<accumulator,16, 16, 16, float>& c) __DEF_IF_HOST
|
| 608 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator,16, 16, 16, __half>& d, const fragment<matrix_a, 16, 16, 16, __half, col_major>& a, const fragment<matrix_b,16, 16, 16, __half, row_major>& b, const fragment<accumulator,16, 16, 16, float>& c) __DEF_IF_HOST
|
| 609 |
+
|
| 610 |
+
#ifdef __CUDA_IMMA__
|
| 611 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator,16, 16, 16, int>& d, const fragment<matrix_a, 16, 16, 16, signed char, row_major>& a, const fragment<matrix_b,16, 16, 16, signed char, col_major>& b, const fragment<accumulator,16, 16, 16, int>& c, bool satf=false) __DEF_IF_HOST
|
| 612 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator,16, 16, 16, int>& d, const fragment<matrix_a, 16, 16, 16, signed char, col_major>& a, const fragment<matrix_b,16, 16, 16, signed char, col_major>& b, const fragment<accumulator,16, 16, 16, int>& c, bool satf=false) __DEF_IF_HOST
|
| 613 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator,16, 16, 16, int>& d, const fragment<matrix_a, 16, 16, 16, signed char, row_major>& a, const fragment<matrix_b,16, 16, 16, signed char, row_major>& b, const fragment<accumulator,16, 16, 16, int>& c, bool satf=false) __DEF_IF_HOST
|
| 614 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator,16, 16, 16, int>& d, const fragment<matrix_a, 16, 16, 16, signed char, col_major>& a, const fragment<matrix_b,16, 16, 16, signed char, row_major>& b, const fragment<accumulator,16, 16, 16, int>& c, bool satf=false) __DEF_IF_HOST
|
| 615 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator,16, 16, 16, int>& d, const fragment<matrix_a, 16, 16, 16, unsigned char, row_major>& a, const fragment<matrix_b,16, 16, 16, unsigned char, col_major>& b, const fragment<accumulator,16, 16, 16, int>& c, bool satf=false) __DEF_IF_HOST
|
| 616 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator,16, 16, 16, int>& d, const fragment<matrix_a, 16, 16, 16, unsigned char, col_major>& a, const fragment<matrix_b,16, 16, 16, unsigned char, col_major>& b, const fragment<accumulator,16, 16, 16, int>& c, bool satf=false) __DEF_IF_HOST
|
| 617 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator,16, 16, 16, int>& d, const fragment<matrix_a, 16, 16, 16, unsigned char, row_major>& a, const fragment<matrix_b,16, 16, 16, unsigned char, row_major>& b, const fragment<accumulator,16, 16, 16, int>& c, bool satf=false) __DEF_IF_HOST
|
| 618 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator,16, 16, 16, int>& d, const fragment<matrix_a, 16, 16, 16, unsigned char, col_major>& a, const fragment<matrix_b,16, 16, 16, unsigned char, row_major>& b, const fragment<accumulator,16, 16, 16, int>& c, bool satf=false) __DEF_IF_HOST
|
| 619 |
+
#endif /* __CUDA_IMMA__ */
|
| 620 |
+
|
| 621 |
+
#ifdef __CUDA_AMPERE_MMA__
|
| 622 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator,16, 16, 16, float>& d, const fragment<matrix_a, 16, 16, 16, __nv_bfloat16, row_major>& a, const fragment<matrix_b,16, 16, 16, __nv_bfloat16, col_major>& b, const fragment<accumulator,16, 16, 16, float>& c) __DEF_IF_HOST
|
| 623 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator,16, 16, 16, float>& d, const fragment<matrix_a, 16, 16, 16, __nv_bfloat16, col_major>& a, const fragment<matrix_b,16, 16, 16, __nv_bfloat16, col_major>& b, const fragment<accumulator,16, 16, 16, float>& c) __DEF_IF_HOST
|
| 624 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator,16, 16, 16, float>& d, const fragment<matrix_a, 16, 16, 16, __nv_bfloat16, row_major>& a, const fragment<matrix_b,16, 16, 16, __nv_bfloat16, row_major>& b, const fragment<accumulator,16, 16, 16, float>& c) __DEF_IF_HOST
|
| 625 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator,16, 16, 16, float>& d, const fragment<matrix_a, 16, 16, 16, __nv_bfloat16, col_major>& a, const fragment<matrix_b,16, 16, 16, __nv_bfloat16, row_major>& b, const fragment<accumulator,16, 16, 16, float>& c) __DEF_IF_HOST
|
| 626 |
+
#endif /* __CUDA_AMPERE_MMA__ */
|
| 627 |
+
|
| 628 |
+
//
|
| 629 |
+
// MMA functions for shape m32n8k16
|
| 630 |
+
//
|
| 631 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator, 32, 8, 16, __half>& d, const fragment<matrix_a, 32, 8, 16, __half, row_major>& a, const fragment<matrix_b, 32, 8, 16, __half, col_major>& b, const fragment<accumulator, 32, 8, 16, __half>& c) __DEF_IF_HOST
|
| 632 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator, 32, 8, 16, __half>& d, const fragment<matrix_a, 32, 8, 16, __half, col_major>& a, const fragment<matrix_b, 32, 8, 16, __half, col_major>& b, const fragment<accumulator, 32, 8, 16, __half>& c) __DEF_IF_HOST
|
| 633 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator, 32, 8, 16, __half>& d, const fragment<matrix_a, 32, 8, 16, __half, row_major>& a, const fragment<matrix_b, 32, 8, 16, __half, row_major>& b, const fragment<accumulator, 32, 8, 16, __half>& c) __DEF_IF_HOST
|
| 634 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator, 32, 8, 16, __half>& d, const fragment<matrix_a, 32, 8, 16, __half, col_major>& a, const fragment<matrix_b, 32, 8, 16, __half, row_major>& b, const fragment<accumulator, 32, 8, 16, __half>& c) __DEF_IF_HOST
|
| 635 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator, 32, 8, 16, float>& d, const fragment<matrix_a, 32, 8, 16, __half, row_major>& a, const fragment<matrix_b, 32, 8, 16, __half, col_major>& b, const fragment<accumulator, 32, 8, 16, __half>& c) __DEF_IF_HOST
|
| 636 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator, 32, 8, 16, float>& d, const fragment<matrix_a, 32, 8, 16, __half, col_major>& a, const fragment<matrix_b, 32, 8, 16, __half, col_major>& b, const fragment<accumulator, 32, 8, 16, __half>& c) __DEF_IF_HOST
|
| 637 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator, 32, 8, 16, float>& d, const fragment<matrix_a, 32, 8, 16, __half, row_major>& a, const fragment<matrix_b, 32, 8, 16, __half, row_major>& b, const fragment<accumulator, 32, 8, 16, __half>& c) __DEF_IF_HOST
|
| 638 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator, 32, 8, 16, float>& d, const fragment<matrix_a, 32, 8, 16, __half, col_major>& a, const fragment<matrix_b, 32, 8, 16, __half, row_major>& b, const fragment<accumulator, 32, 8, 16, __half>& c) __DEF_IF_HOST
|
| 639 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator, 32, 8, 16, float>& d, const fragment<matrix_a, 32, 8, 16, __half, row_major>& a, const fragment<matrix_b, 32, 8, 16, __half, col_major>& b, const fragment<accumulator, 32, 8, 16, float>& c) __DEF_IF_HOST
|
| 640 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator, 32, 8, 16, float>& d, const fragment<matrix_a, 32, 8, 16, __half, col_major>& a, const fragment<matrix_b, 32, 8, 16, __half, col_major>& b, const fragment<accumulator, 32, 8, 16, float>& c) __DEF_IF_HOST
|
| 641 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator, 32, 8, 16, float>& d, const fragment<matrix_a, 32, 8, 16, __half, row_major>& a, const fragment<matrix_b, 32, 8, 16, __half, row_major>& b, const fragment<accumulator, 32, 8, 16, float>& c) __DEF_IF_HOST
|
| 642 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator, 32, 8, 16, float>& d, const fragment<matrix_a, 32, 8, 16, __half, col_major>& a, const fragment<matrix_b, 32, 8, 16, __half, row_major>& b, const fragment<accumulator, 32, 8, 16, float>& c) __DEF_IF_HOST
|
| 643 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator, 32, 8, 16, __half>& d, const fragment<matrix_a, 32, 8, 16, __half, row_major>& a, const fragment<matrix_b, 32, 8, 16, __half, col_major>& b, const fragment<accumulator, 32, 8, 16, float>& c) __DEF_IF_HOST
|
| 644 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator, 32, 8, 16, __half>& d, const fragment<matrix_a, 32, 8, 16, __half, col_major>& a, const fragment<matrix_b, 32, 8, 16, __half, col_major>& b, const fragment<accumulator, 32, 8, 16, float>& c) __DEF_IF_HOST
|
| 645 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator, 32, 8, 16, __half>& d, const fragment<matrix_a, 32, 8, 16, __half, row_major>& a, const fragment<matrix_b, 32, 8, 16, __half, row_major>& b, const fragment<accumulator, 32, 8, 16, float>& c) __DEF_IF_HOST
|
| 646 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator, 32, 8, 16, __half>& d, const fragment<matrix_a, 32, 8, 16, __half, col_major>& a, const fragment<matrix_b, 32, 8, 16, __half, row_major>& b, const fragment<accumulator, 32, 8, 16, float>& c) __DEF_IF_HOST
|
| 647 |
+
|
| 648 |
+
#ifdef __CUDA_IMMA__
|
| 649 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator, 32, 8, 16, int>& d, const fragment<matrix_a, 32, 8, 16, signed char, row_major>& a, const fragment<matrix_b, 32, 8, 16, signed char, col_major>& b, const fragment<accumulator, 32, 8, 16, int>& c, bool satf=false) __DEF_IF_HOST
|
| 650 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator, 32, 8, 16, int>& d, const fragment<matrix_a, 32, 8, 16, signed char, col_major>& a, const fragment<matrix_b, 32, 8, 16, signed char, col_major>& b, const fragment<accumulator, 32, 8, 16, int>& c, bool satf=false) __DEF_IF_HOST
|
| 651 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator, 32, 8, 16, int>& d, const fragment<matrix_a, 32, 8, 16, signed char, row_major>& a, const fragment<matrix_b, 32, 8, 16, signed char, row_major>& b, const fragment<accumulator, 32, 8, 16, int>& c, bool satf=false) __DEF_IF_HOST
|
| 652 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator, 32, 8, 16, int>& d, const fragment<matrix_a, 32, 8, 16, signed char, col_major>& a, const fragment<matrix_b, 32, 8, 16, signed char, row_major>& b, const fragment<accumulator, 32, 8, 16, int>& c, bool satf=false) __DEF_IF_HOST
|
| 653 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator, 32, 8, 16, int>& d, const fragment<matrix_a, 32, 8, 16, unsigned char, row_major>& a, const fragment<matrix_b, 32, 8, 16, unsigned char, col_major>& b, const fragment<accumulator, 32, 8, 16, int>& c, bool satf=false) __DEF_IF_HOST
|
| 654 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator, 32, 8, 16, int>& d, const fragment<matrix_a, 32, 8, 16, unsigned char, col_major>& a, const fragment<matrix_b, 32, 8, 16, unsigned char, col_major>& b, const fragment<accumulator, 32, 8, 16, int>& c, bool satf=false) __DEF_IF_HOST
|
| 655 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator, 32, 8, 16, int>& d, const fragment<matrix_a, 32, 8, 16, unsigned char, row_major>& a, const fragment<matrix_b, 32, 8, 16, unsigned char, row_major>& b, const fragment<accumulator, 32, 8, 16, int>& c, bool satf=false) __DEF_IF_HOST
|
| 656 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator, 32, 8, 16, int>& d, const fragment<matrix_a, 32, 8, 16, unsigned char, col_major>& a, const fragment<matrix_b, 32, 8, 16, unsigned char, row_major>& b, const fragment<accumulator, 32, 8, 16, int>& c, bool satf=false) __DEF_IF_HOST
|
| 657 |
+
#endif /* __CUDA_IMMA__ */
|
| 658 |
+
|
| 659 |
+
#ifdef __CUDA_AMPERE_MMA__
|
| 660 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator, 32, 8, 16, float>& d, const fragment<matrix_a, 32, 8, 16, __nv_bfloat16, row_major>& a, const fragment<matrix_b, 32, 8, 16, __nv_bfloat16, col_major>& b, const fragment<accumulator, 32, 8, 16, float>& c) __DEF_IF_HOST
|
| 661 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator, 32, 8, 16, float>& d, const fragment<matrix_a, 32, 8, 16, __nv_bfloat16, col_major>& a, const fragment<matrix_b, 32, 8, 16, __nv_bfloat16, col_major>& b, const fragment<accumulator, 32, 8, 16, float>& c) __DEF_IF_HOST
|
| 662 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator, 32, 8, 16, float>& d, const fragment<matrix_a, 32, 8, 16, __nv_bfloat16, row_major>& a, const fragment<matrix_b, 32, 8, 16, __nv_bfloat16, row_major>& b, const fragment<accumulator, 32, 8, 16, float>& c) __DEF_IF_HOST
|
| 663 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator, 32, 8, 16, float>& d, const fragment<matrix_a, 32, 8, 16, __nv_bfloat16, col_major>& a, const fragment<matrix_b, 32, 8, 16, __nv_bfloat16, row_major>& b, const fragment<accumulator, 32, 8, 16, float>& c) __DEF_IF_HOST
|
| 664 |
+
#endif /* __CUDA_AMPERE_MMA__ */
|
| 665 |
+
|
| 666 |
+
//
|
| 667 |
+
// MMA functions for shape m8n32k16
|
| 668 |
+
//
|
| 669 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator, 8, 32, 16, __half>& d, const fragment<matrix_a, 8, 32, 16, __half, row_major>& a, const fragment<matrix_b, 8, 32, 16, __half, col_major>& b, const fragment<accumulator, 8, 32, 16, __half>& c) __DEF_IF_HOST
|
| 670 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator, 8, 32, 16, __half>& d, const fragment<matrix_a, 8, 32, 16, __half, col_major>& a, const fragment<matrix_b, 8, 32, 16, __half, col_major>& b, const fragment<accumulator, 8, 32, 16, __half>& c) __DEF_IF_HOST
|
| 671 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator, 8, 32, 16, __half>& d, const fragment<matrix_a, 8, 32, 16, __half, row_major>& a, const fragment<matrix_b, 8, 32, 16, __half, row_major>& b, const fragment<accumulator, 8, 32, 16, __half>& c) __DEF_IF_HOST
|
| 672 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator, 8, 32, 16, __half>& d, const fragment<matrix_a, 8, 32, 16, __half, col_major>& a, const fragment<matrix_b, 8, 32, 16, __half, row_major>& b, const fragment<accumulator, 8, 32, 16, __half>& c) __DEF_IF_HOST
|
| 673 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator, 8, 32, 16, float>& d, const fragment<matrix_a, 8, 32, 16, __half, row_major>& a, const fragment<matrix_b, 8, 32, 16, __half, col_major>& b, const fragment<accumulator, 8, 32, 16, __half>& c) __DEF_IF_HOST
|
| 674 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator, 8, 32, 16, float>& d, const fragment<matrix_a, 8, 32, 16, __half, col_major>& a, const fragment<matrix_b, 8, 32, 16, __half, col_major>& b, const fragment<accumulator, 8, 32, 16, __half>& c) __DEF_IF_HOST
|
| 675 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator, 8, 32, 16, float>& d, const fragment<matrix_a, 8, 32, 16, __half, row_major>& a, const fragment<matrix_b, 8, 32, 16, __half, row_major>& b, const fragment<accumulator, 8, 32, 16, __half>& c) __DEF_IF_HOST
|
| 676 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator, 8, 32, 16, float>& d, const fragment<matrix_a, 8, 32, 16, __half, col_major>& a, const fragment<matrix_b, 8, 32, 16, __half, row_major>& b, const fragment<accumulator, 8, 32, 16, __half>& c) __DEF_IF_HOST
|
| 677 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator, 8, 32, 16, float>& d, const fragment<matrix_a, 8, 32, 16, __half, row_major>& a, const fragment<matrix_b, 8, 32, 16, __half, col_major>& b, const fragment<accumulator, 8, 32, 16, float>& c) __DEF_IF_HOST
|
| 678 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator, 8, 32, 16, float>& d, const fragment<matrix_a, 8, 32, 16, __half, col_major>& a, const fragment<matrix_b, 8, 32, 16, __half, col_major>& b, const fragment<accumulator, 8, 32, 16, float>& c) __DEF_IF_HOST
|
| 679 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator, 8, 32, 16, float>& d, const fragment<matrix_a, 8, 32, 16, __half, row_major>& a, const fragment<matrix_b, 8, 32, 16, __half, row_major>& b, const fragment<accumulator, 8, 32, 16, float>& c) __DEF_IF_HOST
|
| 680 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator, 8, 32, 16, float>& d, const fragment<matrix_a, 8, 32, 16, __half, col_major>& a, const fragment<matrix_b, 8, 32, 16, __half, row_major>& b, const fragment<accumulator, 8, 32, 16, float>& c) __DEF_IF_HOST
|
| 681 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator, 8, 32, 16, __half>& d, const fragment<matrix_a, 8, 32, 16, __half, row_major>& a, const fragment<matrix_b, 8, 32, 16, __half, col_major>& b, const fragment<accumulator, 8, 32, 16, float>& c) __DEF_IF_HOST
|
| 682 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator, 8, 32, 16, __half>& d, const fragment<matrix_a, 8, 32, 16, __half, col_major>& a, const fragment<matrix_b, 8, 32, 16, __half, col_major>& b, const fragment<accumulator, 8, 32, 16, float>& c) __DEF_IF_HOST
|
| 683 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator, 8, 32, 16, __half>& d, const fragment<matrix_a, 8, 32, 16, __half, row_major>& a, const fragment<matrix_b, 8, 32, 16, __half, row_major>& b, const fragment<accumulator, 8, 32, 16, float>& c) __DEF_IF_HOST
|
| 684 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator, 8, 32, 16, __half>& d, const fragment<matrix_a, 8, 32, 16, __half, col_major>& a, const fragment<matrix_b, 8, 32, 16, __half, row_major>& b, const fragment<accumulator, 8, 32, 16, float>& c) __DEF_IF_HOST
|
| 685 |
+
|
| 686 |
+
#ifdef __CUDA_IMMA__
|
| 687 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator, 8, 32, 16, int>& d, const fragment<matrix_a, 8, 32, 16, signed char, row_major>& a, const fragment<matrix_b, 8, 32, 16, signed char, col_major>& b, const fragment<accumulator, 8, 32, 16, int>& c, bool satf=false) __DEF_IF_HOST
|
| 688 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator, 8, 32, 16, int>& d, const fragment<matrix_a, 8, 32, 16, signed char, col_major>& a, const fragment<matrix_b, 8, 32, 16, signed char, col_major>& b, const fragment<accumulator, 8, 32, 16, int>& c, bool satf=false) __DEF_IF_HOST
|
| 689 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator, 8, 32, 16, int>& d, const fragment<matrix_a, 8, 32, 16, signed char, row_major>& a, const fragment<matrix_b, 8, 32, 16, signed char, row_major>& b, const fragment<accumulator, 8, 32, 16, int>& c, bool satf=false) __DEF_IF_HOST
|
| 690 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator, 8, 32, 16, int>& d, const fragment<matrix_a, 8, 32, 16, signed char, col_major>& a, const fragment<matrix_b, 8, 32, 16, signed char, row_major>& b, const fragment<accumulator, 8, 32, 16, int>& c, bool satf=false) __DEF_IF_HOST
|
| 691 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator, 8, 32, 16, int>& d, const fragment<matrix_a, 8, 32, 16, unsigned char, row_major>& a, const fragment<matrix_b, 8, 32, 16, unsigned char, col_major>& b, const fragment<accumulator, 8, 32, 16, int>& c, bool satf=false) __DEF_IF_HOST
|
| 692 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator, 8, 32, 16, int>& d, const fragment<matrix_a, 8, 32, 16, unsigned char, col_major>& a, const fragment<matrix_b, 8, 32, 16, unsigned char, col_major>& b, const fragment<accumulator, 8, 32, 16, int>& c, bool satf=false) __DEF_IF_HOST
|
| 693 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator, 8, 32, 16, int>& d, const fragment<matrix_a, 8, 32, 16, unsigned char, row_major>& a, const fragment<matrix_b, 8, 32, 16, unsigned char, row_major>& b, const fragment<accumulator, 8, 32, 16, int>& c, bool satf=false) __DEF_IF_HOST
|
| 694 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator, 8, 32, 16, int>& d, const fragment<matrix_a, 8, 32, 16, unsigned char, col_major>& a, const fragment<matrix_b, 8, 32, 16, unsigned char, row_major>& b, const fragment<accumulator, 8, 32, 16, int>& c, bool satf=false) __DEF_IF_HOST
|
| 695 |
+
#endif /* __CUDA_IMMA__ */
|
| 696 |
+
|
| 697 |
+
#ifdef __CUDA_AMPERE_MMA__
|
| 698 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator, 8, 32, 16, float>& d, const fragment<matrix_a, 8, 32, 16, __nv_bfloat16, row_major>& a, const fragment<matrix_b, 8, 32, 16, __nv_bfloat16, col_major>& b, const fragment<accumulator, 8, 32, 16, float>& c) __DEF_IF_HOST
|
| 699 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator, 8, 32, 16, float>& d, const fragment<matrix_a, 8, 32, 16, __nv_bfloat16, col_major>& a, const fragment<matrix_b, 8, 32, 16, __nv_bfloat16, col_major>& b, const fragment<accumulator, 8, 32, 16, float>& c) __DEF_IF_HOST
|
| 700 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator, 8, 32, 16, float>& d, const fragment<matrix_a, 8, 32, 16, __nv_bfloat16, row_major>& a, const fragment<matrix_b, 8, 32, 16, __nv_bfloat16, row_major>& b, const fragment<accumulator, 8, 32, 16, float>& c) __DEF_IF_HOST
|
| 701 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator, 8, 32, 16, float>& d, const fragment<matrix_a, 8, 32, 16, __nv_bfloat16, col_major>& a, const fragment<matrix_b, 8, 32, 16, __nv_bfloat16, row_major>& b, const fragment<accumulator, 8, 32, 16, float>& c) __DEF_IF_HOST
|
| 702 |
+
#endif /* __CUDA_AMPERE_MMA__ */
|
| 703 |
+
|
| 704 |
+
#ifdef __CUDA_SUBBYTE_IMMA__
|
| 705 |
+
//
|
| 706 |
+
// MMA functions for shape m8n8k32
|
| 707 |
+
//
|
| 708 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator, 8, 8, 32, int>& d, const fragment<matrix_a, 8, 8, 32, experimental::precision::s4, row_major>& a, const fragment<matrix_b, 8, 8, 32, experimental::precision::s4, col_major>& b, const fragment<accumulator, 8, 8, 32, int>& c, bool satf=false) __DEF_IF_HOST
|
| 709 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator, 8, 8, 32, int>& d, const fragment<matrix_a, 8, 8, 32, experimental::precision::u4, row_major>& a, const fragment<matrix_b, 8, 8, 32, experimental::precision::u4, col_major>& b, const fragment<accumulator, 8, 8, 32, int>& c, bool satf=false) __DEF_IF_HOST
|
| 710 |
+
|
| 711 |
+
|
| 712 |
+
//
|
| 713 |
+
// MMA functions for shape m8n8k128
|
| 714 |
+
//
|
| 715 |
+
__CUDA_MMA_DEVICE_DECL__ void bmma_sync(fragment<accumulator, 8, 8, 128, int>& d, const fragment<matrix_a, 8, 8, 128, experimental::precision::b1, row_major>& a, const fragment<matrix_b, 8, 8, 128, experimental::precision::b1, col_major>& b, const fragment<accumulator, 8, 8, 128, int>& c,
|
| 716 |
+
experimental::bmmaBitOp = experimental::bmmaBitOpXOR,
|
| 717 |
+
experimental::bmmaAccumulateOp = experimental::bmmaAccumulateOpPOPC) __DEF_IF_HOST
|
| 718 |
+
|
| 719 |
+
#endif /* __CUDA_SUBBYTE_IMMA__ */
|
| 720 |
+
|
| 721 |
+
#ifdef __CUDA_AMPERE_MMA__
|
| 722 |
+
//
|
| 723 |
+
// MMA functions for shape m16n16k8
|
| 724 |
+
//
|
| 725 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator, 16, 16, 8, float>& d, const fragment<matrix_a, 16, 16, 8, precision::tf32, row_major>& a, const fragment<matrix_b, 16, 16, 8, precision::tf32, col_major>& b, const fragment<accumulator, 16, 16, 8, float>& c) __DEF_IF_HOST
|
| 726 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator, 16, 16, 8, float>& d, const fragment<matrix_a, 16, 16, 8, precision::tf32, col_major>& a, const fragment<matrix_b, 16, 16, 8, precision::tf32, col_major>& b, const fragment<accumulator, 16, 16, 8, float>& c) __DEF_IF_HOST
|
| 727 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator, 16, 16, 8, float>& d, const fragment<matrix_a, 16, 16, 8, precision::tf32, row_major>& a, const fragment<matrix_b, 16, 16, 8, precision::tf32, row_major>& b, const fragment<accumulator, 16, 16, 8, float>& c) __DEF_IF_HOST
|
| 728 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator, 16, 16, 8, float>& d, const fragment<matrix_a, 16, 16, 8, precision::tf32, col_major>& a, const fragment<matrix_b, 16, 16, 8, precision::tf32, row_major>& b, const fragment<accumulator, 16, 16, 8, float>& c) __DEF_IF_HOST
|
| 729 |
+
|
| 730 |
+
//
|
| 731 |
+
// MMA functions for shape m8n8k4
|
| 732 |
+
//
|
| 733 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator, 8, 8, 4, double>& d, const fragment<matrix_a, 8, 8, 4, double, row_major>& a, const fragment<matrix_b, 8, 8, 4, double, col_major>& b, const fragment<accumulator, 8, 8, 4, double>& c) __DEF_IF_HOST
|
| 734 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator, 8, 8, 4, double>& d, const fragment<matrix_a, 8, 8, 4, double, col_major>& a, const fragment<matrix_b, 8, 8, 4, double, col_major>& b, const fragment<accumulator, 8, 8, 4, double>& c) __DEF_IF_HOST
|
| 735 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator, 8, 8, 4, double>& d, const fragment<matrix_a, 8, 8, 4, double, row_major>& a, const fragment<matrix_b, 8, 8, 4, double, row_major>& b, const fragment<accumulator, 8, 8, 4, double>& c) __DEF_IF_HOST
|
| 736 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator, 8, 8, 4, double>& d, const fragment<matrix_a, 8, 8, 4, double, col_major>& a, const fragment<matrix_b, 8, 8, 4, double, row_major>& b, const fragment<accumulator, 8, 8, 4, double>& c) __DEF_IF_HOST
|
| 737 |
+
#endif /* __CUDA_AMPERE_MMA__ */
|
| 738 |
+
};
|
| 739 |
+
};
|
| 740 |
+
|
| 741 |
+
#undef __DEF_IF_HOST
|
| 742 |
+
#undef __CUDA_IMMA__
|
| 743 |
+
#undef __CUDA_SUBBYTE_IMMA__
|
| 744 |
+
#undef __CUDA_AMPERE_MMA__
|
| 745 |
+
#endif /* !__CUDA_ARCH__ || __CUDA_ARCH__ >= 700 */
|
| 746 |
+
|
| 747 |
+
#endif /* __cplusplus && __CUDACC__ */
|
| 748 |
+
|
| 749 |
+
#undef __CUDA_MMA_DEVICE_DECL__
|
| 750 |
+
|
| 751 |
+
#if defined(__CUDA_ARCH__)
|
| 752 |
+
#include "mma.hpp"
|
| 753 |
+
#endif /* defined(__CUDA_ARCH__) */
|
| 754 |
+
|
| 755 |
+
|
| 756 |
+
#endif /* !__CUDA_MMA_H__ */
|
| 757 |
+
|
| 758 |
+
#if defined(__UNDEF_CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS_CUDA_MMA_H__)
|
| 759 |
+
#undef __CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS__
|
| 760 |
+
#undef __UNDEF_CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS_CUDA_MMA_H__
|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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
* Copyright 2017-2020 NVIDIA Corporation. All rights reserved.
|
| 3 |
+
*
|
| 4 |
+
* NOTICE TO LICENSEE:
|
| 5 |
+
*
|
| 6 |
+
* This source code and/or documentation ("Licensed Deliverables") are
|
| 7 |
+
* subject to NVIDIA intellectual property rights under U.S. and
|
| 8 |
+
* international Copyright laws.
|
| 9 |
+
*
|
| 10 |
+
* These Licensed Deliverables contained herein is PROPRIETARY and
|
| 11 |
+
* CONFIDENTIAL to NVIDIA and is being provided under the terms and
|
| 12 |
+
* conditions of a form of NVIDIA software license agreement by and
|
| 13 |
+
* between NVIDIA and Licensee ("License Agreement") or electronically
|
| 14 |
+
* accepted by Licensee. Notwithstanding any terms or conditions to
|
| 15 |
+
* the contrary in the License Agreement, reproduction or disclosure
|
| 16 |
+
* of the Licensed Deliverables to any third party without the express
|
| 17 |
+
* written consent of NVIDIA is prohibited.
|
| 18 |
+
*
|
| 19 |
+
* NOTWITHSTANDING ANY TERMS OR CONDITIONS TO THE CONTRARY IN THE
|
| 20 |
+
* LICENSE AGREEMENT, NVIDIA MAKES NO REPRESENTATION ABOUT THE
|
| 21 |
+
* SUITABILITY OF THESE LICENSED DELIVERABLES FOR ANY PURPOSE. IT IS
|
| 22 |
+
* PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY OF ANY KIND.
|
| 23 |
+
* NVIDIA DISCLAIMS ALL WARRANTIES WITH REGARD TO THESE LICENSED
|
| 24 |
+
* DELIVERABLES, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY,
|
| 25 |
+
* NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE.
|
| 26 |
+
* NOTWITHSTANDING ANY TERMS OR CONDITIONS TO THE CONTRARY IN THE
|
| 27 |
+
* LICENSE AGREEMENT, IN NO EVENT SHALL NVIDIA BE LIABLE FOR ANY
|
| 28 |
+
* SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, OR ANY
|
| 29 |
+
* DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
|
| 30 |
+
* WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
|
| 31 |
+
* ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
|
| 32 |
+
* OF THESE LICENSED DELIVERABLES.
|
| 33 |
+
*
|
| 34 |
+
* U.S. Government End Users. These Licensed Deliverables are a
|
| 35 |
+
* "commercial item" as that term is defined at 48 C.F.R. 2.101 (OCT
|
| 36 |
+
* 1995), consisting of "commercial computer software" and "commercial
|
| 37 |
+
* computer software documentation" as such terms are used in 48
|
| 38 |
+
* C.F.R. 12.212 (SEPT 1995) and is provided to the U.S. Government
|
| 39 |
+
* only as a commercial end item. Consistent with 48 C.F.R.12.212 and
|
| 40 |
+
* 48 C.F.R. 227.7202-1 through 227.7202-4 (JUNE 1995), all
|
| 41 |
+
* U.S. Government End Users acquire the Licensed Deliverables with
|
| 42 |
+
* only those rights set forth herein.
|
| 43 |
+
*
|
| 44 |
+
* Any use of the Licensed Deliverables in individual and commercial
|
| 45 |
+
* software must include, in the user documentation and internal
|
| 46 |
+
* comments to the code, the above Disclaimer and U.S. Government End
|
| 47 |
+
* Users Notice.
|
| 48 |
+
*/
|
| 49 |
+
|
| 50 |
+
#if !defined(__CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS__)
|
| 51 |
+
#if defined(_MSC_VER)
|
| 52 |
+
#pragma message("crt/mma.hpp is an internal header file and must not be used directly. Please use cuda_runtime_api.h or cuda_runtime.h instead.")
|
| 53 |
+
#else
|
| 54 |
+
#warning "crt/mma.hpp is an internal header file and must not be used directly. Please use cuda_runtime_api.h or cuda_runtime.h instead."
|
| 55 |
+
#endif
|
| 56 |
+
#define __CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS__
|
| 57 |
+
#define __UNDEF_CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS_CUDA_MMA_HPP__
|
| 58 |
+
#endif
|
| 59 |
+
|
| 60 |
+
#if !defined(__CUDA_MMA_HPP__)
|
| 61 |
+
#define __CUDA_MMA_HPP__
|
| 62 |
+
|
| 63 |
+
#if defined(__cplusplus) && defined(__CUDACC__)
|
| 64 |
+
|
| 65 |
+
#if !defined(__CUDA_ARCH__) || __CUDA_ARCH__ >= 700
|
| 66 |
+
|
| 67 |
+
#include <cuda_fp16.h>
|
| 68 |
+
#include <cuda_bf16.h>
|
| 69 |
+
|
| 70 |
+
#define __CUDA_MMA_DEVICE_DECL__ static __device__ __inline__
|
| 71 |
+
|
| 72 |
+
#if !defined(__CUDA_ARCH__) || __CUDA_ARCH__ >= 720
|
| 73 |
+
#define __CUDA_IMMA__ 1
|
| 74 |
+
#endif /* !defined(__CUDA_ARCH__) || __CUDA_ARCH__ >= 720 */
|
| 75 |
+
|
| 76 |
+
#if !defined(__CUDA_ARCH__) || __CUDA_ARCH__ >= 730
|
| 77 |
+
#define __CUDA_SUBBYTE_IMMA__ 1
|
| 78 |
+
#endif /* !defined(__CUDA_ARCH__) || __CUDA_ARCH__ >= 730 */
|
| 79 |
+
|
| 80 |
+
#if !defined(__CUDA_ARCH__) || __CUDA_ARCH__ >= 800
|
| 81 |
+
#define __CUDA_AMPERE_MMA__ 1
|
| 82 |
+
#endif /* !defined(__CUDA_ARCH__) || __CUDA_ARCH__ >= 800 */
|
| 83 |
+
|
| 84 |
+
namespace nvcuda {
|
| 85 |
+
namespace wmma {
|
| 86 |
+
|
| 87 |
+
//
|
| 88 |
+
// Load functions for frags of shape m16n16k16
|
| 89 |
+
//
|
| 90 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_a, 16, 16, 16, __half, row_major>& a, const __half* p, unsigned ldm) {
|
| 91 |
+
__hmma_m16n16k16_ld_a((int*)&a, (const int*)p, ldm, 0);
|
| 92 |
+
}
|
| 93 |
+
|
| 94 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_a, 16, 16, 16, __half, col_major>& a, const __half* p, unsigned ldm) {
|
| 95 |
+
__hmma_m16n16k16_ld_a((int*)&a, (const int*)p, ldm, 1);
|
| 96 |
+
}
|
| 97 |
+
|
| 98 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_b,16, 16, 16, __half, row_major>& a, const __half* p, unsigned ldm) {
|
| 99 |
+
__hmma_m16n16k16_ld_b((int*)&a, (const int*)p, ldm, 0);
|
| 100 |
+
}
|
| 101 |
+
|
| 102 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_b,16, 16, 16, __half, col_major>& a, const __half* p, unsigned ldm) {
|
| 103 |
+
__hmma_m16n16k16_ld_b((int*)&a, (const int*)p, ldm, 1);
|
| 104 |
+
}
|
| 105 |
+
|
| 106 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<accumulator,16, 16, 16, __half>& a, const __half* p, unsigned ldm, layout_t layout) {
|
| 107 |
+
if (layout == mem_row_major)
|
| 108 |
+
__hmma_m16n16k16_ld_c_f16((int*)&a, (const int*)p, ldm, 0);
|
| 109 |
+
else
|
| 110 |
+
__hmma_m16n16k16_ld_c_f16((int*)&a, (const int*)p, ldm, 1);
|
| 111 |
+
}
|
| 112 |
+
|
| 113 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<accumulator,16, 16, 16, float>& a, const float* p, unsigned ldm, layout_t layout) {
|
| 114 |
+
if (layout == mem_row_major)
|
| 115 |
+
__hmma_m16n16k16_ld_c_f32((float*)&a, (const float*)p, ldm, 0);
|
| 116 |
+
else
|
| 117 |
+
__hmma_m16n16k16_ld_c_f32((float*)&a, (const float*)p, ldm, 1);
|
| 118 |
+
}
|
| 119 |
+
|
| 120 |
+
#ifdef __CUDA_IMMA__
|
| 121 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_a, 16, 16, 16, signed char, row_major>& a, const signed char* p, unsigned ldm) {
|
| 122 |
+
__imma_m16n16k16_ld_a_s8((int *)&a, (const int *)p, ldm, 0);
|
| 123 |
+
}
|
| 124 |
+
|
| 125 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_a, 16, 16, 16, signed char, col_major>& a, const signed char* p, unsigned ldm) {
|
| 126 |
+
__imma_m16n16k16_ld_a_s8((int *)&a, (const int *)p, ldm, 1);
|
| 127 |
+
}
|
| 128 |
+
|
| 129 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_a, 16, 16, 16, unsigned char, row_major>& a, const unsigned char* p, unsigned ldm) {
|
| 130 |
+
__imma_m16n16k16_ld_a_u8((int *)&a, (const int *)p, ldm, 0);
|
| 131 |
+
}
|
| 132 |
+
|
| 133 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_a, 16, 16, 16, unsigned char, col_major>& a, const unsigned char* p, unsigned ldm) {
|
| 134 |
+
__imma_m16n16k16_ld_a_u8((int *)&a, (const int *)p, ldm, 1);
|
| 135 |
+
}
|
| 136 |
+
|
| 137 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_b, 16, 16, 16, signed char, row_major>& a, const signed char* p, unsigned ldm) {
|
| 138 |
+
__imma_m16n16k16_ld_b_s8((int *)&a, (const int *)p, ldm, 0);
|
| 139 |
+
}
|
| 140 |
+
|
| 141 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_b, 16, 16, 16, signed char, col_major>& a, const signed char* p, unsigned ldm) {
|
| 142 |
+
__imma_m16n16k16_ld_b_s8((int *)&a, (const int *)p, ldm, 1);
|
| 143 |
+
}
|
| 144 |
+
|
| 145 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_b, 16, 16, 16, unsigned char, row_major>& a, const unsigned char* p, unsigned ldm) {
|
| 146 |
+
__imma_m16n16k16_ld_b_u8((int *)&a, (const int *)p, ldm, 0);
|
| 147 |
+
}
|
| 148 |
+
|
| 149 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_b, 16, 16, 16, unsigned char, col_major>& a, const unsigned char* p, unsigned ldm) {
|
| 150 |
+
__imma_m16n16k16_ld_b_u8((int *)&a, (const int *)p, ldm, 1);
|
| 151 |
+
}
|
| 152 |
+
|
| 153 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<accumulator,16, 16, 16, int>& a, const int* p, unsigned ldm, layout_t layout) {
|
| 154 |
+
if (layout == mem_row_major)
|
| 155 |
+
__imma_m16n16k16_ld_c((int *)&a, (const int*)p, ldm, 0);
|
| 156 |
+
else
|
| 157 |
+
__imma_m16n16k16_ld_c((int *)&a, (const int*)p, ldm, 1);
|
| 158 |
+
}
|
| 159 |
+
#endif /* __CUDA_IMMA__ */
|
| 160 |
+
|
| 161 |
+
#ifdef __CUDA_AMPERE_MMA__
|
| 162 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_a, 16, 16, 16, __nv_bfloat16, row_major>& a, const __nv_bfloat16* p, unsigned ldm) {
|
| 163 |
+
__mma_bf16_m16n16k16_ld_a((int*)&a, (const int*)p, ldm, 0);
|
| 164 |
+
}
|
| 165 |
+
|
| 166 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_a, 16, 16, 16, __nv_bfloat16, col_major>& a, const __nv_bfloat16* p, unsigned ldm) {
|
| 167 |
+
__mma_bf16_m16n16k16_ld_a((int*)&a, (const int*)p, ldm, 1);
|
| 168 |
+
}
|
| 169 |
+
|
| 170 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_b, 16, 16, 16, __nv_bfloat16, row_major>& a, const __nv_bfloat16* p, unsigned ldm) {
|
| 171 |
+
__mma_bf16_m16n16k16_ld_b((int*)&a, (const int*)p, ldm, 0);
|
| 172 |
+
}
|
| 173 |
+
|
| 174 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_b, 16, 16, 16, __nv_bfloat16, col_major>& a, const __nv_bfloat16* p, unsigned ldm) {
|
| 175 |
+
__mma_bf16_m16n16k16_ld_b((int*)&a, (const int*)p, ldm, 1);
|
| 176 |
+
}
|
| 177 |
+
#endif /* __CUDA_AMPERE_MMA__ */
|
| 178 |
+
|
| 179 |
+
|
| 180 |
+
//
|
| 181 |
+
// Load functions for frags of shape m32n8k16
|
| 182 |
+
//
|
| 183 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_a, 32, 8, 16, __half, row_major>& a, const __half* p, unsigned ldm) {
|
| 184 |
+
__hmma_m32n8k16_ld_a((int*)&a, (const int*)p, ldm, 0);
|
| 185 |
+
}
|
| 186 |
+
|
| 187 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_a, 32, 8, 16, __half, col_major>& a, const __half* p, unsigned ldm) {
|
| 188 |
+
__hmma_m32n8k16_ld_a((int*)&a, (const int*)p, ldm, 1);
|
| 189 |
+
}
|
| 190 |
+
|
| 191 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_b, 32, 8, 16, __half, row_major>& a, const __half* p, unsigned ldm) {
|
| 192 |
+
__hmma_m32n8k16_ld_b((int*)&a, (const int*)p, ldm, 0);
|
| 193 |
+
}
|
| 194 |
+
|
| 195 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_b, 32, 8, 16, __half, col_major>& a, const __half* p, unsigned ldm) {
|
| 196 |
+
__hmma_m32n8k16_ld_b((int*)&a, (const int*)p, ldm, 1);
|
| 197 |
+
}
|
| 198 |
+
|
| 199 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<accumulator, 32, 8, 16, __half>& a, const __half* p, unsigned ldm, layout_t layout) {
|
| 200 |
+
if (layout == mem_row_major)
|
| 201 |
+
__hmma_m32n8k16_ld_c_f16((int*)&a, (const int*)p, ldm, 0);
|
| 202 |
+
else
|
| 203 |
+
__hmma_m32n8k16_ld_c_f16((int*)&a, (const int*)p, ldm, 1);
|
| 204 |
+
}
|
| 205 |
+
|
| 206 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<accumulator, 32, 8, 16, float>& a, const float* p, unsigned ldm, layout_t layout) {
|
| 207 |
+
if (layout == mem_row_major)
|
| 208 |
+
__hmma_m32n8k16_ld_c_f32((float*)&a, (const float*)p, ldm, 0);
|
| 209 |
+
else
|
| 210 |
+
__hmma_m32n8k16_ld_c_f32((float*)&a, (const float*)p, ldm, 1);
|
| 211 |
+
}
|
| 212 |
+
|
| 213 |
+
#ifdef __CUDA_IMMA__
|
| 214 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_a, 32, 8, 16, signed char, row_major>& a, const signed char* p, unsigned ldm) {
|
| 215 |
+
__imma_m32n8k16_ld_a_s8((int *)&a, (const int *)p, ldm, 0);
|
| 216 |
+
}
|
| 217 |
+
|
| 218 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_a, 32, 8, 16, signed char, col_major>& a, const signed char* p, unsigned ldm) {
|
| 219 |
+
__imma_m32n8k16_ld_a_s8((int *)&a, (const int *)p, ldm, 1);
|
| 220 |
+
}
|
| 221 |
+
|
| 222 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_a, 32, 8, 16, unsigned char, row_major>& a, const unsigned char* p, unsigned ldm) {
|
| 223 |
+
__imma_m32n8k16_ld_a_u8((int *)&a, (const int *)p, ldm, 0);
|
| 224 |
+
}
|
| 225 |
+
|
| 226 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_a, 32, 8, 16, unsigned char, col_major>& a, const unsigned char* p, unsigned ldm) {
|
| 227 |
+
__imma_m32n8k16_ld_a_u8((int *)&a, (const int *)p, ldm, 1);
|
| 228 |
+
}
|
| 229 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_b, 32, 8, 16, signed char, row_major>& a, const signed char* p, unsigned ldm) {
|
| 230 |
+
__imma_m32n8k16_ld_b_s8((int *)&a, (const int *)p, ldm, 0);
|
| 231 |
+
}
|
| 232 |
+
|
| 233 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_b, 32, 8, 16, signed char, col_major>& a, const signed char* p, unsigned ldm) {
|
| 234 |
+
__imma_m32n8k16_ld_b_s8((int *)&a, (const int *)p, ldm, 1);
|
| 235 |
+
}
|
| 236 |
+
|
| 237 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_b, 32, 8, 16, unsigned char, row_major>& a, const unsigned char* p, unsigned ldm) {
|
| 238 |
+
__imma_m32n8k16_ld_b_u8((int *)&a, (const int *)p, ldm, 0);
|
| 239 |
+
}
|
| 240 |
+
|
| 241 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_b, 32, 8, 16, unsigned char, col_major>& a, const unsigned char* p, unsigned ldm) {
|
| 242 |
+
__imma_m32n8k16_ld_b_u8((int *)&a, (const int *)p, ldm, 1);
|
| 243 |
+
}
|
| 244 |
+
|
| 245 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<accumulator, 32, 8, 16, int>& a, const int* p, unsigned ldm, layout_t layout) {
|
| 246 |
+
if (layout == mem_row_major)
|
| 247 |
+
__imma_m32n8k16_ld_c((int *)&a, (const int*)p, ldm, 0);
|
| 248 |
+
else
|
| 249 |
+
__imma_m32n8k16_ld_c((int *)&a, (const int*)p, ldm, 1);
|
| 250 |
+
}
|
| 251 |
+
#endif /* __CUDA_IMMA__ */
|
| 252 |
+
|
| 253 |
+
#ifdef __CUDA_AMPERE_MMA__
|
| 254 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_a, 32, 8, 16, __nv_bfloat16, row_major>& a, const __nv_bfloat16* p, unsigned ldm) {
|
| 255 |
+
__mma_bf16_m32n8k16_ld_a((int*)&a, (const int*)p, ldm, 0);
|
| 256 |
+
}
|
| 257 |
+
|
| 258 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_a, 32, 8, 16, __nv_bfloat16, col_major>& a, const __nv_bfloat16* p, unsigned ldm) {
|
| 259 |
+
__mma_bf16_m32n8k16_ld_a((int*)&a, (const int*)p, ldm, 1);
|
| 260 |
+
}
|
| 261 |
+
|
| 262 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_b, 32, 8, 16, __nv_bfloat16, row_major>& a, const __nv_bfloat16* p, unsigned ldm) {
|
| 263 |
+
__mma_bf16_m32n8k16_ld_b((int*)&a, (const int*)p, ldm, 0);
|
| 264 |
+
}
|
| 265 |
+
|
| 266 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_b, 32, 8, 16, __nv_bfloat16, col_major>& a, const __nv_bfloat16* p, unsigned ldm) {
|
| 267 |
+
__mma_bf16_m32n8k16_ld_b((int*)&a, (const int*)p, ldm, 1);
|
| 268 |
+
}
|
| 269 |
+
#endif /* __CUDA_AMPERE_MMA__ */
|
| 270 |
+
|
| 271 |
+
|
| 272 |
+
//
|
| 273 |
+
// Load functions for frags of shape m8n32k16
|
| 274 |
+
//
|
| 275 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_a, 8, 32, 16, __half, row_major>& a, const __half* p, unsigned ldm) {
|
| 276 |
+
__hmma_m8n32k16_ld_a((int*)&a, (const int*)p, ldm, 0);
|
| 277 |
+
}
|
| 278 |
+
|
| 279 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_a, 8, 32, 16, __half, col_major>& a, const __half* p, unsigned ldm) {
|
| 280 |
+
__hmma_m8n32k16_ld_a((int*)&a, (const int*)p, ldm, 1);
|
| 281 |
+
}
|
| 282 |
+
|
| 283 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_b, 8, 32, 16, __half, row_major>& a, const __half* p, unsigned ldm) {
|
| 284 |
+
__hmma_m8n32k16_ld_b((int*)&a, (const int*)p, ldm, 0);
|
| 285 |
+
}
|
| 286 |
+
|
| 287 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_b, 8, 32, 16, __half, col_major>& a, const __half* p, unsigned ldm) {
|
| 288 |
+
__hmma_m8n32k16_ld_b((int*)&a, (const int*)p, ldm, 1);
|
| 289 |
+
}
|
| 290 |
+
|
| 291 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<accumulator, 8, 32, 16, __half>& a, const __half* p, unsigned ldm, layout_t layout) {
|
| 292 |
+
if (layout == mem_row_major)
|
| 293 |
+
__hmma_m8n32k16_ld_c_f16((int*)&a, (const int*)p, ldm, 0);
|
| 294 |
+
else
|
| 295 |
+
__hmma_m8n32k16_ld_c_f16((int*)&a, (const int*)p, ldm, 1);
|
| 296 |
+
}
|
| 297 |
+
|
| 298 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<accumulator, 8, 32, 16, float>& a, const float* p, unsigned ldm, layout_t layout) {
|
| 299 |
+
if (layout == mem_row_major)
|
| 300 |
+
__hmma_m8n32k16_ld_c_f32((float*)&a, (const float*)p, ldm, 0);
|
| 301 |
+
else
|
| 302 |
+
__hmma_m8n32k16_ld_c_f32((float*)&a, (const float*)p, ldm, 1);
|
| 303 |
+
}
|
| 304 |
+
|
| 305 |
+
#ifdef __CUDA_IMMA__
|
| 306 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_a, 8, 32, 16, signed char, row_major>& a, const signed char* p, unsigned ldm) {
|
| 307 |
+
__imma_m8n32k16_ld_a_s8((int *)&a, (const int *)p, ldm, 0);
|
| 308 |
+
}
|
| 309 |
+
|
| 310 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_a, 8, 32, 16, signed char, col_major>& a, const signed char* p, unsigned ldm) {
|
| 311 |
+
__imma_m8n32k16_ld_a_s8((int *)&a, (const int *)p, ldm, 1);
|
| 312 |
+
}
|
| 313 |
+
|
| 314 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_a, 8, 32, 16, unsigned char, row_major>& a, const unsigned char* p, unsigned ldm) {
|
| 315 |
+
__imma_m8n32k16_ld_a_u8((int *)&a, (const int *)p, ldm, 0);
|
| 316 |
+
}
|
| 317 |
+
|
| 318 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_a, 8, 32, 16, unsigned char, col_major>& a, const unsigned char* p, unsigned ldm) {
|
| 319 |
+
__imma_m8n32k16_ld_a_u8((int *)&a, (const int *)p, ldm, 1);
|
| 320 |
+
}
|
| 321 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_b, 8, 32, 16, signed char, row_major>& a, const signed char* p, unsigned ldm) {
|
| 322 |
+
__imma_m8n32k16_ld_b_s8((int *)&a, (const int *)p, ldm, 0);
|
| 323 |
+
}
|
| 324 |
+
|
| 325 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_b, 8, 32, 16, signed char, col_major>& a, const signed char* p, unsigned ldm) {
|
| 326 |
+
__imma_m8n32k16_ld_b_s8((int *)&a, (const int *)p, ldm, 1);
|
| 327 |
+
}
|
| 328 |
+
|
| 329 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_b, 8, 32, 16, unsigned char, row_major>& a, const unsigned char* p, unsigned ldm) {
|
| 330 |
+
__imma_m8n32k16_ld_b_u8((int *)&a, (const int *)p, ldm, 0);
|
| 331 |
+
}
|
| 332 |
+
|
| 333 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_b, 8, 32, 16, unsigned char, col_major>& a, const unsigned char* p, unsigned ldm) {
|
| 334 |
+
__imma_m8n32k16_ld_b_u8((int *)&a, (const int *)p, ldm, 1);
|
| 335 |
+
}
|
| 336 |
+
|
| 337 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<accumulator, 8, 32, 16, int>& a, const int* p, unsigned ldm, layout_t layout) {
|
| 338 |
+
if (layout == mem_row_major)
|
| 339 |
+
__imma_m8n32k16_ld_c((int *)&a, (const int*)p, ldm, 0);
|
| 340 |
+
else
|
| 341 |
+
__imma_m8n32k16_ld_c((int *)&a, (const int*)p, ldm, 1);
|
| 342 |
+
}
|
| 343 |
+
#endif /* __CUDA_IMMA__ */
|
| 344 |
+
|
| 345 |
+
#ifdef __CUDA_AMPERE_MMA__
|
| 346 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_a, 8, 32, 16, __nv_bfloat16, row_major>& a, const __nv_bfloat16* p, unsigned ldm) {
|
| 347 |
+
__mma_bf16_m8n32k16_ld_a((int*)&a, (const int*)p, ldm, 0);
|
| 348 |
+
}
|
| 349 |
+
|
| 350 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_a, 8, 32, 16, __nv_bfloat16, col_major>& a, const __nv_bfloat16* p, unsigned ldm) {
|
| 351 |
+
__mma_bf16_m8n32k16_ld_a((int*)&a, (const int*)p, ldm, 1);
|
| 352 |
+
}
|
| 353 |
+
|
| 354 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_b, 8, 32, 16, __nv_bfloat16, row_major>& a, const __nv_bfloat16* p, unsigned ldm) {
|
| 355 |
+
__mma_bf16_m8n32k16_ld_b((int*)&a, (const int*)p, ldm, 0);
|
| 356 |
+
}
|
| 357 |
+
|
| 358 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_b, 8, 32, 16, __nv_bfloat16, col_major>& a, const __nv_bfloat16* p, unsigned ldm) {
|
| 359 |
+
__mma_bf16_m8n32k16_ld_b((int*)&a, (const int*)p, ldm, 1);
|
| 360 |
+
}
|
| 361 |
+
#endif /* __CUDA_AMPERE_MMA__ */
|
| 362 |
+
|
| 363 |
+
|
| 364 |
+
#ifdef __CUDA_SUBBYTE_IMMA__
|
| 365 |
+
//
|
| 366 |
+
// Load functions for frags of shape m8n8k32
|
| 367 |
+
//
|
| 368 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_a, 8, 8, 32, experimental::precision::s4, row_major>& a, const void* p, unsigned ldm) {
|
| 369 |
+
__imma_m8n8k32_ld_a_s4((int *)&a, (const int *)p, ldm, 0);
|
| 370 |
+
}
|
| 371 |
+
|
| 372 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_a, 8, 8, 32, experimental::precision::u4, row_major>& a, const void* p, unsigned ldm) {
|
| 373 |
+
__imma_m8n8k32_ld_a_u4((int *)&a, (const int *)p, ldm, 0);
|
| 374 |
+
}
|
| 375 |
+
|
| 376 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_b, 8, 8, 32, experimental::precision::s4, col_major>& a, const void* p, unsigned ldm) {
|
| 377 |
+
__imma_m8n8k32_ld_b_s4((int *)&a, (const int *)p, ldm, 1);
|
| 378 |
+
}
|
| 379 |
+
|
| 380 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_b, 8, 8, 32, experimental::precision::u4, col_major>& a, const void* p, unsigned ldm) {
|
| 381 |
+
__imma_m8n8k32_ld_b_u4((int *)&a, (const int *)p, ldm, 1);
|
| 382 |
+
}
|
| 383 |
+
|
| 384 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<accumulator, 8, 8, 32, int>& a, const int* p, unsigned ldm, layout_t layout) {
|
| 385 |
+
if (layout == mem_row_major)
|
| 386 |
+
__imma_m8n8k32_ld_c((int *)&a, (const int*)p, ldm, 0);
|
| 387 |
+
else
|
| 388 |
+
__imma_m8n8k32_ld_c((int *)&a, (const int*)p, ldm, 1);
|
| 389 |
+
}
|
| 390 |
+
|
| 391 |
+
//
|
| 392 |
+
// Load functions for frags of shape m8n8k128
|
| 393 |
+
//
|
| 394 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_a, 8, 8, 128, experimental::precision::b1, row_major>& a, const void* p, unsigned ldm) {
|
| 395 |
+
__bmma_m8n8k128_ld_a_b1((int *)&a, (const int *)p, ldm, 0);
|
| 396 |
+
}
|
| 397 |
+
|
| 398 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_b, 8, 8, 128, experimental::precision::b1, col_major>& a, const void* p, unsigned ldm) {
|
| 399 |
+
__bmma_m8n8k128_ld_b_b1((int *)&a, (const int *)p, ldm, 1);
|
| 400 |
+
}
|
| 401 |
+
|
| 402 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<accumulator, 8, 8, 128, int>& a, const int* p, unsigned ldm, layout_t layout) {
|
| 403 |
+
if (layout == mem_row_major)
|
| 404 |
+
__bmma_m8n8k128_ld_c((int *)&a, (const int*)p, ldm, 0);
|
| 405 |
+
else
|
| 406 |
+
__bmma_m8n8k128_ld_c((int *)&a, (const int*)p, ldm, 1);
|
| 407 |
+
}
|
| 408 |
+
#endif /* __CUDA_SUBBYTE_IMMA__ */
|
| 409 |
+
|
| 410 |
+
|
| 411 |
+
|
| 412 |
+
#ifdef __CUDA_AMPERE_MMA__
|
| 413 |
+
// load functions for frags of shape m16n16k8
|
| 414 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_a, 16, 16, 8, precision::tf32, row_major>& a, const float* p, unsigned ldm) {
|
| 415 |
+
__mma_tf32_m16n16k8_ld_a((int *)&a, (const int *)p, ldm, 0);
|
| 416 |
+
}
|
| 417 |
+
|
| 418 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_a, 16, 16, 8, precision::tf32, col_major>& a, const float* p, unsigned ldm) {
|
| 419 |
+
__mma_tf32_m16n16k8_ld_a((int *)&a, (const int *)p, ldm, 1);
|
| 420 |
+
}
|
| 421 |
+
|
| 422 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_b, 16, 16, 8, precision::tf32, row_major>& a, const float* p, unsigned ldm) {
|
| 423 |
+
__mma_tf32_m16n16k8_ld_b((int *)&a, (const int *)p, ldm, 0);
|
| 424 |
+
}
|
| 425 |
+
|
| 426 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_b, 16, 16, 8, precision::tf32, col_major>& a, const float* p, unsigned ldm) {
|
| 427 |
+
__mma_tf32_m16n16k8_ld_b((int *)&a, (const int *)p, ldm, 1);
|
| 428 |
+
}
|
| 429 |
+
|
| 430 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<accumulator, 16, 16, 8, float>& a, const float* p, unsigned ldm, layout_t layout) {
|
| 431 |
+
if (layout == mem_row_major)
|
| 432 |
+
__mma_tf32_m16n16k8_ld_c((float *)&a, p, ldm, 0);
|
| 433 |
+
else
|
| 434 |
+
__mma_tf32_m16n16k8_ld_c((float *)&a, p, ldm, 1);
|
| 435 |
+
}
|
| 436 |
+
|
| 437 |
+
// load functions for frags of shape m8n8k4
|
| 438 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_a, 8, 8, 4, double, row_major>& a, const double* p, unsigned ldm) {
|
| 439 |
+
__dmma_m8n8k4_ld_a((double *)&a, p, ldm, 0);
|
| 440 |
+
}
|
| 441 |
+
|
| 442 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_a, 8, 8, 4, double, col_major>& a, const double* p, unsigned ldm) {
|
| 443 |
+
__dmma_m8n8k4_ld_a((double *)&a, p, ldm, 1);
|
| 444 |
+
}
|
| 445 |
+
|
| 446 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_b, 8, 8, 4, double, row_major>& a, const double* p, unsigned ldm) {
|
| 447 |
+
__dmma_m8n8k4_ld_b((double *)&a, p, ldm, 0);
|
| 448 |
+
}
|
| 449 |
+
|
| 450 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<matrix_b, 8, 8, 4, double, col_major>& a, const double* p, unsigned ldm) {
|
| 451 |
+
__dmma_m8n8k4_ld_b((double *)&a, p, ldm, 1);
|
| 452 |
+
}
|
| 453 |
+
|
| 454 |
+
__CUDA_MMA_DEVICE_DECL__ void load_matrix_sync(fragment<accumulator, 8, 8, 4, double>& a, const double* p, unsigned ldm, layout_t layout) {
|
| 455 |
+
if (layout == mem_row_major)
|
| 456 |
+
__dmma_m8n8k4_ld_c((double *)&a, p, ldm, 0);
|
| 457 |
+
else
|
| 458 |
+
__dmma_m8n8k4_ld_c((double *)&a, p, ldm, 1);
|
| 459 |
+
}
|
| 460 |
+
#endif /* __CUDA_AMPERE_MMA__ */
|
| 461 |
+
|
| 462 |
+
//
|
| 463 |
+
// Store functions for frags of shape m16n16k16
|
| 464 |
+
//
|
| 465 |
+
__CUDA_MMA_DEVICE_DECL__ void store_matrix_sync(__half *p, const fragment<accumulator,16, 16, 16, __half>& a, unsigned ldm, layout_t layout) {
|
| 466 |
+
if (layout == mem_row_major)
|
| 467 |
+
__hmma_m16n16k16_st_c_f16((int*)p, (int*)&a, ldm, 0);
|
| 468 |
+
else
|
| 469 |
+
__hmma_m16n16k16_st_c_f16((int*)p, (int*)&a, ldm, 1);
|
| 470 |
+
}
|
| 471 |
+
|
| 472 |
+
__CUDA_MMA_DEVICE_DECL__ void store_matrix_sync(float *p, const fragment<accumulator,16, 16, 16, float>& a, unsigned ldm, layout_t layout) {
|
| 473 |
+
if (layout == mem_row_major)
|
| 474 |
+
__hmma_m16n16k16_st_c_f32((float*)p, (float*)&a, ldm, 0);
|
| 475 |
+
else
|
| 476 |
+
__hmma_m16n16k16_st_c_f32((float*)p, (float*)&a, ldm, 1);
|
| 477 |
+
}
|
| 478 |
+
|
| 479 |
+
#ifdef __CUDA_IMMA__
|
| 480 |
+
__CUDA_MMA_DEVICE_DECL__ void store_matrix_sync(int *p, const fragment<accumulator,16, 16, 16, int>& a, unsigned ldm, layout_t layout) {
|
| 481 |
+
if (layout == mem_row_major)
|
| 482 |
+
__imma_m16n16k16_st_c_i32(p, (const int*)&a, ldm, 0);
|
| 483 |
+
else
|
| 484 |
+
__imma_m16n16k16_st_c_i32(p, (const int*)&a, ldm, 1);
|
| 485 |
+
}
|
| 486 |
+
#endif /* __CUDA_IMMA__ */
|
| 487 |
+
|
| 488 |
+
//
|
| 489 |
+
// Store functions for frags of shape m32n8k16
|
| 490 |
+
//
|
| 491 |
+
__CUDA_MMA_DEVICE_DECL__ void store_matrix_sync(__half *p, const fragment<accumulator, 32, 8, 16, __half>& a, unsigned ldm, layout_t layout) {
|
| 492 |
+
if (layout == mem_row_major)
|
| 493 |
+
__hmma_m32n8k16_st_c_f16((int*)p, (int*)&a, ldm, 0);
|
| 494 |
+
else
|
| 495 |
+
__hmma_m32n8k16_st_c_f16((int*)p, (int*)&a, ldm, 1);
|
| 496 |
+
}
|
| 497 |
+
|
| 498 |
+
__CUDA_MMA_DEVICE_DECL__ void store_matrix_sync(float *p, const fragment<accumulator, 32, 8, 16, float>& a, unsigned ldm, layout_t layout) {
|
| 499 |
+
if (layout == mem_row_major)
|
| 500 |
+
__hmma_m32n8k16_st_c_f32((float*)p, (float*)&a, ldm, 0);
|
| 501 |
+
else
|
| 502 |
+
__hmma_m32n8k16_st_c_f32((float*)p, (float*)&a, ldm, 1);
|
| 503 |
+
}
|
| 504 |
+
|
| 505 |
+
#ifdef __CUDA_IMMA__
|
| 506 |
+
__CUDA_MMA_DEVICE_DECL__ void store_matrix_sync(int *p, const fragment<accumulator, 32, 8, 16, int>& a, unsigned ldm, layout_t layout) {
|
| 507 |
+
if (layout == mem_row_major)
|
| 508 |
+
__imma_m32n8k16_st_c_i32(p, (const int*)&a, ldm, 0);
|
| 509 |
+
else
|
| 510 |
+
__imma_m32n8k16_st_c_i32(p, (const int*)&a, ldm, 1);
|
| 511 |
+
}
|
| 512 |
+
#endif /* __CUDA_IMMA__ */
|
| 513 |
+
|
| 514 |
+
//
|
| 515 |
+
// Store functions for frags of shape m8n32k16
|
| 516 |
+
//
|
| 517 |
+
__CUDA_MMA_DEVICE_DECL__ void store_matrix_sync(__half *p, const fragment<accumulator, 8, 32, 16, __half>& a, unsigned ldm, layout_t layout) {
|
| 518 |
+
if (layout == mem_row_major)
|
| 519 |
+
__hmma_m8n32k16_st_c_f16((int*)p, (int*)&a, ldm, 0);
|
| 520 |
+
else
|
| 521 |
+
__hmma_m8n32k16_st_c_f16((int*)p, (int*)&a, ldm, 1);
|
| 522 |
+
}
|
| 523 |
+
|
| 524 |
+
__CUDA_MMA_DEVICE_DECL__ void store_matrix_sync(float *p, const fragment<accumulator, 8, 32, 16, float>& a, unsigned ldm, layout_t layout) {
|
| 525 |
+
if (layout == mem_row_major)
|
| 526 |
+
__hmma_m8n32k16_st_c_f32((float*)p, (float*)&a, ldm, 0);
|
| 527 |
+
else
|
| 528 |
+
__hmma_m8n32k16_st_c_f32((float*)p, (float*)&a, ldm, 1);
|
| 529 |
+
}
|
| 530 |
+
|
| 531 |
+
#ifdef __CUDA_IMMA__
|
| 532 |
+
__CUDA_MMA_DEVICE_DECL__ void store_matrix_sync(int *p, const fragment<accumulator, 8, 32, 16, int>& a, unsigned ldm, layout_t layout) {
|
| 533 |
+
if (layout == mem_row_major)
|
| 534 |
+
__imma_m8n32k16_st_c_i32(p, (const int*)&a, ldm, 0);
|
| 535 |
+
else
|
| 536 |
+
__imma_m8n32k16_st_c_i32(p, (const int*)&a, ldm, 1);
|
| 537 |
+
}
|
| 538 |
+
#endif /* __CUDA_IMMA__ */
|
| 539 |
+
|
| 540 |
+
#ifdef __CUDA_SUBBYTE_IMMA__
|
| 541 |
+
//
|
| 542 |
+
// Store functions for frags of shape m8n8k32
|
| 543 |
+
//
|
| 544 |
+
__CUDA_MMA_DEVICE_DECL__ void store_matrix_sync(int *p, const fragment<accumulator, 8, 8, 32, int>& a, unsigned ldm, layout_t layout) {
|
| 545 |
+
if (layout == mem_row_major)
|
| 546 |
+
__imma_m8n8k32_st_c_i32(p, (const int*)&a, ldm, 0);
|
| 547 |
+
else
|
| 548 |
+
__imma_m8n8k32_st_c_i32(p, (const int*)&a, ldm, 1);
|
| 549 |
+
}
|
| 550 |
+
|
| 551 |
+
//
|
| 552 |
+
// Store functions for frags of shape m8n8k128
|
| 553 |
+
//
|
| 554 |
+
__CUDA_MMA_DEVICE_DECL__ void store_matrix_sync(int *p, const fragment<accumulator, 8, 8, 128, int>& a, unsigned ldm, layout_t layout) {
|
| 555 |
+
if (layout == mem_row_major)
|
| 556 |
+
__bmma_m8n8k128_st_c_i32(p, (const int*)&a, ldm, 0);
|
| 557 |
+
else
|
| 558 |
+
__bmma_m8n8k128_st_c_i32(p, (const int*)&a, ldm, 1);
|
| 559 |
+
}
|
| 560 |
+
#endif /* __CUDA_SUBBYTE_IMMA__ */
|
| 561 |
+
|
| 562 |
+
|
| 563 |
+
#ifdef __CUDA_AMPERE_MMA__
|
| 564 |
+
|
| 565 |
+
//
|
| 566 |
+
// Store functions for frags of shape m16n16k8
|
| 567 |
+
//
|
| 568 |
+
__CUDA_MMA_DEVICE_DECL__ void store_matrix_sync(float *p, const fragment<accumulator, 16, 16, 8, float>& a, unsigned ldm, layout_t layout) {
|
| 569 |
+
if (layout == mem_row_major)
|
| 570 |
+
__mma_m16n16k8_st_c_f32(p, (const float*)&a, ldm, 0);
|
| 571 |
+
else
|
| 572 |
+
__mma_m16n16k8_st_c_f32(p, (const float*)&a, ldm, 1);
|
| 573 |
+
}
|
| 574 |
+
|
| 575 |
+
|
| 576 |
+
//
|
| 577 |
+
// Store functions for frags of shape m8n8k4
|
| 578 |
+
//
|
| 579 |
+
__CUDA_MMA_DEVICE_DECL__ void store_matrix_sync(double *p, const fragment<accumulator, 8, 8, 4, double>& a, unsigned ldm, layout_t layout) {
|
| 580 |
+
if (layout == mem_row_major)
|
| 581 |
+
__dmma_m8n8k4_st_c_f64(p, (const double*)&a, ldm, 0);
|
| 582 |
+
else
|
| 583 |
+
__dmma_m8n8k4_st_c_f64(p, (const double*)&a, ldm, 1);
|
| 584 |
+
}
|
| 585 |
+
#endif /* __CUDA_AMPERE_MMA__ */
|
| 586 |
+
|
| 587 |
+
//
|
| 588 |
+
// MMA functions for shape m16n16k16
|
| 589 |
+
//
|
| 590 |
+
// D fp16, C fp16
|
| 591 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator,16, 16, 16, __half>& d, const fragment<matrix_a, 16, 16, 16, __half, row_major>& a, const fragment<matrix_b,16, 16, 16, __half, col_major>& b, const fragment<accumulator,16, 16, 16, __half>& c) {
|
| 592 |
+
__hmma_m16n16k16_mma_f16f16((int*)&d, (const int*)&a, (const int*)&b, (const int*)&c, 1, 0);
|
| 593 |
+
}
|
| 594 |
+
|
| 595 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator,16, 16, 16, __half>& d, const fragment<matrix_a, 16, 16, 16, __half, col_major>& a, const fragment<matrix_b,16, 16, 16, __half, col_major>& b, const fragment<accumulator,16, 16, 16, __half>& c) {
|
| 596 |
+
__hmma_m16n16k16_mma_f16f16((int*)&d, (const int*)&a, (const int*)&b, (const int*)&c, 3, 0);
|
| 597 |
+
}
|
| 598 |
+
|
| 599 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator,16, 16, 16, __half>& d, const fragment<matrix_a, 16, 16, 16, __half, row_major>& a, const fragment<matrix_b,16, 16, 16, __half, row_major>& b, const fragment<accumulator,16, 16, 16, __half>& c) {
|
| 600 |
+
__hmma_m16n16k16_mma_f16f16((int*)&d, (const int*)&a, (const int*)&b, (const int*)&c, 0, 0);
|
| 601 |
+
}
|
| 602 |
+
|
| 603 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator,16, 16, 16, __half>& d, const fragment<matrix_a, 16, 16, 16, __half, col_major>& a, const fragment<matrix_b,16, 16, 16, __half, row_major>& b, const fragment<accumulator,16, 16, 16, __half>& c) {
|
| 604 |
+
__hmma_m16n16k16_mma_f16f16((int*)&d, (const int*)&a, (const int*)&b, (const int*)&c, 2, 0);
|
| 605 |
+
}
|
| 606 |
+
|
| 607 |
+
// D fp32, C fp16
|
| 608 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator,16, 16, 16, float>& d, const fragment<matrix_a, 16, 16, 16, __half, row_major>& a, const fragment<matrix_b,16, 16, 16, __half, col_major>& b, const fragment<accumulator,16, 16, 16, __half>& c) {
|
| 609 |
+
__hmma_m16n16k16_mma_f32f16((float*)&d, (const int*)&a, (const int*)&b, (const int*)&c, 1, 0);
|
| 610 |
+
}
|
| 611 |
+
|
| 612 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator,16, 16, 16, float>& d, const fragment<matrix_a, 16, 16, 16, __half, col_major>& a, const fragment<matrix_b,16, 16, 16, __half, col_major>& b, const fragment<accumulator,16, 16, 16, __half>& c) {
|
| 613 |
+
__hmma_m16n16k16_mma_f32f16((float*)&d, (const int*)&a, (const int*)&b, (const int*)&c, 3, 0);
|
| 614 |
+
}
|
| 615 |
+
|
| 616 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator,16, 16, 16, float>& d, const fragment<matrix_a, 16, 16, 16, __half, row_major>& a, const fragment<matrix_b,16, 16, 16, __half, row_major>& b, const fragment<accumulator,16, 16, 16, __half>& c) {
|
| 617 |
+
__hmma_m16n16k16_mma_f32f16((float*)&d, (const int*)&a, (const int*)&b, (const int*)&c, 0, 0);
|
| 618 |
+
}
|
| 619 |
+
|
| 620 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator,16, 16, 16, float>& d, const fragment<matrix_a, 16, 16, 16, __half, col_major>& a, const fragment<matrix_b,16, 16, 16, __half, row_major>& b, const fragment<accumulator,16, 16, 16, __half>& c) {
|
| 621 |
+
__hmma_m16n16k16_mma_f32f16((float*)&d, (const int*)&a, (const int*)&b, (const int*)&c, 2, 0);
|
| 622 |
+
}
|
| 623 |
+
|
| 624 |
+
// D fp32, C fp32
|
| 625 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator,16, 16, 16, float>& d, const fragment<matrix_a, 16, 16, 16, __half, row_major>& a, const fragment<matrix_b,16, 16, 16, __half, col_major>& b, const fragment<accumulator,16, 16, 16, float>& c) {
|
| 626 |
+
__hmma_m16n16k16_mma_f32f32((float*)&d, (const int*)&a, (const int*)&b, (const float*)&c, 1, 0);
|
| 627 |
+
}
|
| 628 |
+
|
| 629 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator,16, 16, 16, float>& d, const fragment<matrix_a, 16, 16, 16, __half, col_major>& a, const fragment<matrix_b,16, 16, 16, __half, col_major>& b, const fragment<accumulator,16, 16, 16, float>& c) {
|
| 630 |
+
__hmma_m16n16k16_mma_f32f32((float*)&d, (const int*)&a, (const int*)&b, (const float*)&c, 3, 0);
|
| 631 |
+
}
|
| 632 |
+
|
| 633 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator,16, 16, 16, float>& d, const fragment<matrix_a, 16, 16, 16, __half, row_major>& a, const fragment<matrix_b,16, 16, 16, __half, row_major>& b, const fragment<accumulator,16, 16, 16, float>& c) {
|
| 634 |
+
__hmma_m16n16k16_mma_f32f32((float*)&d, (const int*)&a, (const int*)&b, (const float*)&c, 0, 0);
|
| 635 |
+
}
|
| 636 |
+
|
| 637 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator,16, 16, 16, float>& d, const fragment<matrix_a, 16, 16, 16, __half, col_major>& a, const fragment<matrix_b,16, 16, 16, __half, row_major>& b, const fragment<accumulator,16, 16, 16, float>& c) {
|
| 638 |
+
__hmma_m16n16k16_mma_f32f32((float*)&d, (const int*)&a, (const int*)&b, (const float*)&c, 2, 0);
|
| 639 |
+
}
|
| 640 |
+
|
| 641 |
+
// D fp16, C fp32
|
| 642 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator,16, 16, 16, __half>& d, const fragment<matrix_a, 16, 16, 16, __half, row_major>& a, const fragment<matrix_b,16, 16, 16, __half, col_major>& b, const fragment<accumulator,16, 16, 16, float>& c) {
|
| 643 |
+
__hmma_m16n16k16_mma_f16f32((int*)&d, (const int*)&a, (const int*)&b, (const float*)&c, 1, 0);
|
| 644 |
+
}
|
| 645 |
+
|
| 646 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator,16, 16, 16, __half>& d, const fragment<matrix_a, 16, 16, 16, __half, col_major>& a, const fragment<matrix_b,16, 16, 16, __half, col_major>& b, const fragment<accumulator,16, 16, 16, float>& c) {
|
| 647 |
+
__hmma_m16n16k16_mma_f16f32((int*)&d, (const int*)&a, (const int*)&b, (const float*)&c, 3, 0);
|
| 648 |
+
}
|
| 649 |
+
|
| 650 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator,16, 16, 16, __half>& d, const fragment<matrix_a, 16, 16, 16, __half, row_major>& a, const fragment<matrix_b,16, 16, 16, __half, row_major>& b, const fragment<accumulator,16, 16, 16, float>& c) {
|
| 651 |
+
__hmma_m16n16k16_mma_f16f32((int*)&d, (const int*)&a, (const int*)&b, (const float*)&c, 0, 0);
|
| 652 |
+
}
|
| 653 |
+
|
| 654 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator,16, 16, 16, __half>& d, const fragment<matrix_a, 16, 16, 16, __half, col_major>& a, const fragment<matrix_b,16, 16, 16, __half, row_major>& b, const fragment<accumulator,16, 16, 16, float>& c) {
|
| 655 |
+
__hmma_m16n16k16_mma_f16f32((int*)&d, (const int*)&a, (const int*)&b, (const float*)&c, 2, 0);
|
| 656 |
+
}
|
| 657 |
+
|
| 658 |
+
#ifdef __CUDA_IMMA__
|
| 659 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator,16, 16, 16, int>& d, const fragment<matrix_a, 16, 16, 16, signed char, row_major>& a, const fragment<matrix_b,16, 16, 16, signed char, col_major>& b, const fragment<accumulator,16, 16, 16, int>& c, bool satf) {
|
| 660 |
+
if (satf)
|
| 661 |
+
__imma_m16n16k16_mma_s8((int*)&d, (const int *)&a, (const int *)&b, (const int *)&c, 1, 1);
|
| 662 |
+
else
|
| 663 |
+
__imma_m16n16k16_mma_s8((int*)&d, (const int *)&a, (const int *)&b, (const int *)&c, 1, 0);
|
| 664 |
+
}
|
| 665 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator,16, 16, 16, int>& d, const fragment<matrix_a, 16, 16, 16, signed char, col_major>& a, const fragment<matrix_b,16, 16, 16, signed char, col_major>& b, const fragment<accumulator,16, 16, 16, int>& c, bool satf) {
|
| 666 |
+
if (satf)
|
| 667 |
+
__imma_m16n16k16_mma_s8((int*)&d, (const int *)&a, (const int *)&b, (const int *)&c, 3, 1);
|
| 668 |
+
else
|
| 669 |
+
__imma_m16n16k16_mma_s8((int*)&d, (const int *)&a, (const int *)&b, (const int *)&c, 3, 0);
|
| 670 |
+
}
|
| 671 |
+
|
| 672 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator,16, 16, 16, int>& d, const fragment<matrix_a, 16, 16, 16, signed char, row_major>& a, const fragment<matrix_b,16, 16, 16, signed char, row_major>& b, const fragment<accumulator,16, 16, 16, int>& c, bool satf) {
|
| 673 |
+
if (satf)
|
| 674 |
+
__imma_m16n16k16_mma_s8((int*)&d, (const int *)&a, (const int *)&b, (const int *)&c, 0, 1);
|
| 675 |
+
else
|
| 676 |
+
__imma_m16n16k16_mma_s8((int*)&d, (const int *)&a, (const int *)&b, (const int *)&c, 0, 0);
|
| 677 |
+
}
|
| 678 |
+
|
| 679 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator,16, 16, 16, int>& d, const fragment<matrix_a, 16, 16, 16, signed char, col_major>& a, const fragment<matrix_b,16, 16, 16, signed char, row_major>& b, const fragment<accumulator,16, 16, 16, int>& c, bool satf) {
|
| 680 |
+
if (satf)
|
| 681 |
+
__imma_m16n16k16_mma_s8((int*)&d, (const int *)&a, (const int *)&b, (const int *)&c, 2, 1);
|
| 682 |
+
else
|
| 683 |
+
__imma_m16n16k16_mma_s8((int*)&d, (const int *)&a, (const int *)&b, (const int *)&c, 2, 0);
|
| 684 |
+
}
|
| 685 |
+
|
| 686 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator,16, 16, 16, int>& d, const fragment<matrix_a, 16, 16, 16, unsigned char, row_major>& a, const fragment<matrix_b,16, 16, 16, unsigned char, col_major>& b, const fragment<accumulator,16, 16, 16, int>& c, bool satf) {
|
| 687 |
+
if (satf)
|
| 688 |
+
__imma_m16n16k16_mma_u8((int*)&d, (const int *)&a, (const int *)&b, (const int *)&c, 1, 1);
|
| 689 |
+
else
|
| 690 |
+
__imma_m16n16k16_mma_u8((int*)&d, (const int *)&a, (const int *)&b, (const int *)&c, 1, 0);
|
| 691 |
+
}
|
| 692 |
+
|
| 693 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator,16, 16, 16, int>& d, const fragment<matrix_a, 16, 16, 16, unsigned char, col_major>& a, const fragment<matrix_b,16, 16, 16, unsigned char, col_major>& b, const fragment<accumulator,16, 16, 16, int>& c, bool satf) {
|
| 694 |
+
if (satf)
|
| 695 |
+
__imma_m16n16k16_mma_u8((int*)&d, (const int *)&a, (const int *)&b, (const int *)&c, 3, 1);
|
| 696 |
+
else
|
| 697 |
+
__imma_m16n16k16_mma_u8((int*)&d, (const int *)&a, (const int *)&b, (const int *)&c, 3, 0);
|
| 698 |
+
}
|
| 699 |
+
|
| 700 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator,16, 16, 16, int>& d, const fragment<matrix_a, 16, 16, 16, unsigned char, row_major>& a, const fragment<matrix_b,16, 16, 16, unsigned char, row_major>& b, const fragment<accumulator,16, 16, 16, int>& c, bool satf) {
|
| 701 |
+
if (satf)
|
| 702 |
+
__imma_m16n16k16_mma_u8((int*)&d, (const int *)&a, (const int *)&b, (const int *)&c, 0, 1);
|
| 703 |
+
else
|
| 704 |
+
__imma_m16n16k16_mma_u8((int*)&d, (const int *)&a, (const int *)&b, (const int *)&c, 0, 0);
|
| 705 |
+
}
|
| 706 |
+
|
| 707 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator,16, 16, 16, int>& d, const fragment<matrix_a, 16, 16, 16, unsigned char, col_major>& a, const fragment<matrix_b,16, 16, 16, unsigned char, row_major>& b, const fragment<accumulator,16, 16, 16, int>& c, bool satf) {
|
| 708 |
+
if (satf)
|
| 709 |
+
__imma_m16n16k16_mma_u8((int*)&d, (const int *)&a, (const int *)&b, (const int *)&c, 2, 1);
|
| 710 |
+
else
|
| 711 |
+
__imma_m16n16k16_mma_u8((int*)&d, (const int *)&a, (const int *)&b, (const int *)&c, 2, 0);
|
| 712 |
+
}
|
| 713 |
+
#endif /* __CUDA_IMMA__ */
|
| 714 |
+
|
| 715 |
+
#ifdef __CUDA_AMPERE_MMA__
|
| 716 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator,16, 16, 16, float>& d, const fragment<matrix_a, 16, 16, 16, __nv_bfloat16, row_major>& a, const fragment<matrix_b,16, 16, 16, __nv_bfloat16, col_major>& b, const fragment<accumulator,16, 16, 16, float>& c) {
|
| 717 |
+
__mma_bf16_m16n16k16_mma_f32((float*)&d, (const int*)&a, (const int*)&b, (const float*)&c, 1, 0);
|
| 718 |
+
}
|
| 719 |
+
|
| 720 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator,16, 16, 16, float>& d, const fragment<matrix_a, 16, 16, 16, __nv_bfloat16, col_major>& a, const fragment<matrix_b,16, 16, 16, __nv_bfloat16, col_major>& b, const fragment<accumulator,16, 16, 16, float>& c) {
|
| 721 |
+
__mma_bf16_m16n16k16_mma_f32((float*)&d, (const int*)&a, (const int*)&b, (const float*)&c, 3, 0);
|
| 722 |
+
}
|
| 723 |
+
|
| 724 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator,16, 16, 16, float>& d, const fragment<matrix_a, 16, 16, 16, __nv_bfloat16, row_major>& a, const fragment<matrix_b,16, 16, 16, __nv_bfloat16, row_major>& b, const fragment<accumulator,16, 16, 16, float>& c) {
|
| 725 |
+
__mma_bf16_m16n16k16_mma_f32((float*)&d, (const int*)&a, (const int*)&b, (const float*)&c, 0, 0);
|
| 726 |
+
}
|
| 727 |
+
|
| 728 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator,16, 16, 16, float>& d, const fragment<matrix_a, 16, 16, 16, __nv_bfloat16, col_major>& a, const fragment<matrix_b,16, 16, 16, __nv_bfloat16, row_major>& b, const fragment<accumulator,16, 16, 16, float>& c) {
|
| 729 |
+
__mma_bf16_m16n16k16_mma_f32((float*)&d, (const int*)&a, (const int*)&b, (const float*)&c, 2, 0);
|
| 730 |
+
}
|
| 731 |
+
#endif /* __CUDA_AMPERE_MMA__ */
|
| 732 |
+
|
| 733 |
+
|
| 734 |
+
//
|
| 735 |
+
// MMA functions for shape m32n8k16
|
| 736 |
+
//
|
| 737 |
+
// D fp16, C fp16
|
| 738 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator,32, 8, 16, __half>& d, const fragment<matrix_a, 32, 8, 16, __half, row_major>& a, const fragment<matrix_b,32, 8, 16, __half, col_major>& b, const fragment<accumulator,32, 8, 16, __half>& c) {
|
| 739 |
+
__hmma_m32n8k16_mma_f16f16((int*)&d, (const int*)&a, (const int*)&b, (const int*)&c, 1, 0);
|
| 740 |
+
}
|
| 741 |
+
|
| 742 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator,32, 8, 16, __half>& d, const fragment<matrix_a, 32, 8, 16, __half, col_major>& a, const fragment<matrix_b,32, 8, 16, __half, col_major>& b, const fragment<accumulator,32, 8, 16, __half>& c) {
|
| 743 |
+
__hmma_m32n8k16_mma_f16f16((int*)&d, (const int*)&a, (const int*)&b, (const int*)&c, 3, 0);
|
| 744 |
+
}
|
| 745 |
+
|
| 746 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator,32, 8, 16, __half>& d, const fragment<matrix_a, 32, 8, 16, __half, row_major>& a, const fragment<matrix_b,32, 8, 16, __half, row_major>& b, const fragment<accumulator,32, 8, 16, __half>& c) {
|
| 747 |
+
__hmma_m32n8k16_mma_f16f16((int*)&d, (const int*)&a, (const int*)&b, (const int*)&c, 0, 0);
|
| 748 |
+
}
|
| 749 |
+
|
| 750 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator,32, 8, 16, __half>& d, const fragment<matrix_a, 32, 8, 16, __half, col_major>& a, const fragment<matrix_b,32, 8, 16, __half, row_major>& b, const fragment<accumulator,32, 8, 16, __half>& c) {
|
| 751 |
+
__hmma_m32n8k16_mma_f16f16((int*)&d, (const int*)&a, (const int*)&b, (const int*)&c, 2, 0);
|
| 752 |
+
}
|
| 753 |
+
|
| 754 |
+
// D fp32, C fp16
|
| 755 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator,32, 8, 16, float>& d, const fragment<matrix_a, 32, 8, 16, __half, row_major>& a, const fragment<matrix_b,32, 8, 16, __half, col_major>& b, const fragment<accumulator,32, 8, 16, __half>& c) {
|
| 756 |
+
__hmma_m32n8k16_mma_f32f16((float*)&d, (const int*)&a, (const int*)&b, (const int*)&c, 1, 0);
|
| 757 |
+
}
|
| 758 |
+
|
| 759 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator,32, 8, 16, float>& d, const fragment<matrix_a, 32, 8, 16, __half, col_major>& a, const fragment<matrix_b,32, 8, 16, __half, col_major>& b, const fragment<accumulator,32, 8, 16, __half>& c) {
|
| 760 |
+
__hmma_m32n8k16_mma_f32f16((float*)&d, (const int*)&a, (const int*)&b, (const int*)&c, 3, 0);
|
| 761 |
+
}
|
| 762 |
+
|
| 763 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator,32, 8, 16, float>& d, const fragment<matrix_a, 32, 8, 16, __half, row_major>& a, const fragment<matrix_b,32, 8, 16, __half, row_major>& b, const fragment<accumulator,32, 8, 16, __half>& c) {
|
| 764 |
+
__hmma_m32n8k16_mma_f32f16((float*)&d, (const int*)&a, (const int*)&b, (const int*)&c, 0, 0);
|
| 765 |
+
}
|
| 766 |
+
|
| 767 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator,32, 8, 16, float>& d, const fragment<matrix_a, 32, 8, 16, __half, col_major>& a, const fragment<matrix_b,32, 8, 16, __half, row_major>& b, const fragment<accumulator,32, 8, 16, __half>& c) {
|
| 768 |
+
__hmma_m32n8k16_mma_f32f16((float*)&d, (const int*)&a, (const int*)&b, (const int*)&c, 2, 0);
|
| 769 |
+
}
|
| 770 |
+
|
| 771 |
+
// D fp32, C fp32
|
| 772 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator,32, 8, 16, float>& d, const fragment<matrix_a, 32, 8, 16, __half, row_major>& a, const fragment<matrix_b,32, 8, 16, __half, col_major>& b, const fragment<accumulator,32, 8, 16, float>& c) {
|
| 773 |
+
__hmma_m32n8k16_mma_f32f32((float*)&d, (const int*)&a, (const int*)&b, (const float*)&c, 1, 0);
|
| 774 |
+
}
|
| 775 |
+
|
| 776 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator,32, 8, 16, float>& d, const fragment<matrix_a, 32, 8, 16, __half, col_major>& a, const fragment<matrix_b,32, 8, 16, __half, col_major>& b, const fragment<accumulator,32, 8, 16, float>& c) {
|
| 777 |
+
__hmma_m32n8k16_mma_f32f32((float*)&d, (const int*)&a, (const int*)&b, (const float*)&c, 3, 0);
|
| 778 |
+
}
|
| 779 |
+
|
| 780 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator,32, 8, 16, float>& d, const fragment<matrix_a, 32, 8, 16, __half, row_major>& a, const fragment<matrix_b,32, 8, 16, __half, row_major>& b, const fragment<accumulator,32, 8, 16, float>& c) {
|
| 781 |
+
__hmma_m32n8k16_mma_f32f32((float*)&d, (const int*)&a, (const int*)&b, (const float*)&c, 0, 0);
|
| 782 |
+
}
|
| 783 |
+
|
| 784 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator,32, 8, 16, float>& d, const fragment<matrix_a, 32, 8, 16, __half, col_major>& a, const fragment<matrix_b,32, 8, 16, __half, row_major>& b, const fragment<accumulator,32, 8, 16, float>& c) {
|
| 785 |
+
__hmma_m32n8k16_mma_f32f32((float*)&d, (const int*)&a, (const int*)&b, (const float*)&c, 2, 0);
|
| 786 |
+
}
|
| 787 |
+
|
| 788 |
+
// D fp16, C fp32
|
| 789 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator,32, 8, 16, __half>& d, const fragment<matrix_a, 32, 8, 16, __half, row_major>& a, const fragment<matrix_b,32, 8, 16, __half, col_major>& b, const fragment<accumulator,32, 8, 16, float>& c) {
|
| 790 |
+
__hmma_m32n8k16_mma_f16f32((int*)&d, (const int*)&a, (const int*)&b, (const float*)&c, 1, 0);
|
| 791 |
+
}
|
| 792 |
+
|
| 793 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator,32, 8, 16, __half>& d, const fragment<matrix_a, 32, 8, 16, __half, col_major>& a, const fragment<matrix_b,32, 8, 16, __half, col_major>& b, const fragment<accumulator,32, 8, 16, float>& c) {
|
| 794 |
+
__hmma_m32n8k16_mma_f16f32((int*)&d, (const int*)&a, (const int*)&b, (const float*)&c, 3, 0);
|
| 795 |
+
}
|
| 796 |
+
|
| 797 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator,32, 8, 16, __half>& d, const fragment<matrix_a, 32, 8, 16, __half, row_major>& a, const fragment<matrix_b,32, 8, 16, __half, row_major>& b, const fragment<accumulator,32, 8, 16, float>& c) {
|
| 798 |
+
__hmma_m32n8k16_mma_f16f32((int*)&d, (const int*)&a, (const int*)&b, (const float*)&c, 0, 0);
|
| 799 |
+
}
|
| 800 |
+
|
| 801 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator,32, 8, 16, __half>& d, const fragment<matrix_a, 32, 8, 16, __half, col_major>& a, const fragment<matrix_b,32, 8, 16, __half, row_major>& b, const fragment<accumulator,32, 8, 16, float>& c) {
|
| 802 |
+
__hmma_m32n8k16_mma_f16f32((int*)&d, (const int*)&a, (const int*)&b, (const float*)&c, 2, 0);
|
| 803 |
+
}
|
| 804 |
+
|
| 805 |
+
#ifdef __CUDA_IMMA__
|
| 806 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator, 32, 8, 16, int>& d, const fragment<matrix_a, 32, 8, 16, signed char, row_major>& a, const fragment<matrix_b, 32, 8, 16, signed char, col_major>& b, const fragment<accumulator, 32, 8, 16, int>& c, bool satf) {
|
| 807 |
+
if (satf)
|
| 808 |
+
__imma_m32n8k16_mma_s8((int*)&d, (const int *)&a, (const int *)&b, (const int*)&c, 1, 1);
|
| 809 |
+
else
|
| 810 |
+
__imma_m32n8k16_mma_s8((int*)&d, (const int *)&a, (const int *)&b, (const int*)&c, 1, 0);
|
| 811 |
+
}
|
| 812 |
+
|
| 813 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator, 32, 8, 16, int>& d, const fragment<matrix_a, 32, 8, 16, signed char, col_major>& a, const fragment<matrix_b, 32, 8, 16, signed char, col_major>& b, const fragment<accumulator, 32, 8, 16, int>& c, bool satf) {
|
| 814 |
+
if (satf)
|
| 815 |
+
__imma_m32n8k16_mma_s8((int*)&d, (const int *)&a, (const int *)&b, (const int*)&c, 3, 1);
|
| 816 |
+
else
|
| 817 |
+
__imma_m32n8k16_mma_s8((int*)&d, (const int *)&a, (const int *)&b, (const int*)&c, 3, 0);
|
| 818 |
+
}
|
| 819 |
+
|
| 820 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator, 32, 8, 16, int>& d, const fragment<matrix_a, 32, 8, 16, signed char, row_major>& a, const fragment<matrix_b, 32, 8, 16, signed char, row_major>& b, const fragment<accumulator, 32, 8, 16, int>& c, bool satf) {
|
| 821 |
+
if (satf)
|
| 822 |
+
__imma_m32n8k16_mma_s8((int*)&d, (const int *)&a, (const int *)&b, (const int*)&c, 0, 1);
|
| 823 |
+
else
|
| 824 |
+
__imma_m32n8k16_mma_s8((int*)&d, (const int *)&a, (const int *)&b, (const int*)&c, 0, 0);
|
| 825 |
+
}
|
| 826 |
+
|
| 827 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator, 32, 8, 16, int>& d, const fragment<matrix_a, 32, 8, 16, signed char, col_major>& a, const fragment<matrix_b, 32, 8, 16, signed char, row_major>& b, const fragment<accumulator, 32, 8, 16, int>& c, bool satf) {
|
| 828 |
+
if (satf)
|
| 829 |
+
__imma_m32n8k16_mma_s8((int*)&d, (const int *)&a, (const int *)&b, (const int*)&c, 2, 1);
|
| 830 |
+
else
|
| 831 |
+
__imma_m32n8k16_mma_s8((int*)&d, (const int *)&a, (const int *)&b, (const int*)&c, 2, 0);
|
| 832 |
+
}
|
| 833 |
+
|
| 834 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator, 32, 8, 16, int>& d, const fragment<matrix_a, 32, 8, 16, unsigned char, row_major>& a, const fragment<matrix_b, 32, 8, 16, unsigned char, col_major>& b, const fragment<accumulator, 32, 8, 16, int>& c, bool satf) {
|
| 835 |
+
if (satf)
|
| 836 |
+
__imma_m32n8k16_mma_u8((int*)&d, (const int *)&a, (const int *)&b, (const int*)&c, 1, 1);
|
| 837 |
+
else
|
| 838 |
+
__imma_m32n8k16_mma_u8((int*)&d, (const int *)&a, (const int *)&b, (const int*)&c, 1, 0);
|
| 839 |
+
}
|
| 840 |
+
|
| 841 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator, 32, 8, 16, int>& d, const fragment<matrix_a, 32, 8, 16, unsigned char, col_major>& a, const fragment<matrix_b, 32, 8, 16, unsigned char, col_major>& b, const fragment<accumulator, 32, 8, 16, int>& c, bool satf) {
|
| 842 |
+
if (satf)
|
| 843 |
+
__imma_m32n8k16_mma_u8((int*)&d, (const int *)&a, (const int *)&b, (const int*)&c, 3, 1);
|
| 844 |
+
else
|
| 845 |
+
__imma_m32n8k16_mma_u8((int*)&d, (const int *)&a, (const int *)&b, (const int*)&c, 3, 0);
|
| 846 |
+
|
| 847 |
+
}
|
| 848 |
+
|
| 849 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator, 32, 8, 16, int>& d, const fragment<matrix_a, 32, 8, 16, unsigned char, row_major>& a, const fragment<matrix_b, 32, 8, 16, unsigned char, row_major>& b, const fragment<accumulator, 32, 8, 16, int>& c, bool satf) {
|
| 850 |
+
if (satf)
|
| 851 |
+
__imma_m32n8k16_mma_u8((int*)&d, (const int *)&a, (const int *)&b, (const int*)&c, 0, 1);
|
| 852 |
+
else
|
| 853 |
+
__imma_m32n8k16_mma_u8((int*)&d, (const int *)&a, (const int *)&b, (const int*)&c, 0, 0);
|
| 854 |
+
|
| 855 |
+
}
|
| 856 |
+
|
| 857 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator, 32, 8, 16, int>& d, const fragment<matrix_a, 32, 8, 16, unsigned char, col_major>& a, const fragment<matrix_b, 32, 8, 16, unsigned char, row_major>& b, const fragment<accumulator, 32, 8, 16, int>& c, bool satf) {
|
| 858 |
+
if (satf)
|
| 859 |
+
__imma_m32n8k16_mma_u8((int*)&d, (const int *)&a, (const int *)&b, (const int*)&c, 2, 1);
|
| 860 |
+
else
|
| 861 |
+
__imma_m32n8k16_mma_u8((int*)&d, (const int *)&a, (const int *)&b, (const int*)&c, 2, 0);
|
| 862 |
+
|
| 863 |
+
}
|
| 864 |
+
#endif /* __CUDA_IMMA__ */
|
| 865 |
+
|
| 866 |
+
#ifdef __CUDA_AMPERE_MMA__
|
| 867 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator, 32, 8, 16, float>& d, const fragment<matrix_a, 32, 8, 16, __nv_bfloat16, row_major>& a, const fragment<matrix_b, 32, 8, 16, __nv_bfloat16, col_major>& b, const fragment<accumulator, 32, 8, 16, float>& c) {
|
| 868 |
+
__mma_bf16_m32n8k16_mma_f32((float*)&d, (const int*)&a, (const int*)&b, (const float*)&c, 1, 0);
|
| 869 |
+
}
|
| 870 |
+
|
| 871 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator, 32, 8, 16, float>& d, const fragment<matrix_a, 32, 8, 16, __nv_bfloat16, col_major>& a, const fragment<matrix_b, 32, 8, 16, __nv_bfloat16, col_major>& b, const fragment<accumulator, 32, 8, 16, float>& c) {
|
| 872 |
+
__mma_bf16_m32n8k16_mma_f32((float*)&d, (const int*)&a, (const int*)&b, (const float*)&c, 3, 0);
|
| 873 |
+
}
|
| 874 |
+
|
| 875 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator, 32, 8, 16, float>& d, const fragment<matrix_a, 32, 8, 16, __nv_bfloat16, row_major>& a, const fragment<matrix_b, 32, 8, 16, __nv_bfloat16, row_major>& b, const fragment<accumulator, 32, 8, 16, float>& c) {
|
| 876 |
+
__mma_bf16_m32n8k16_mma_f32((float*)&d, (const int*)&a, (const int*)&b, (const float*)&c, 0, 0);
|
| 877 |
+
}
|
| 878 |
+
|
| 879 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator, 32, 8, 16, float>& d, const fragment<matrix_a, 32, 8, 16, __nv_bfloat16, col_major>& a, const fragment<matrix_b, 32, 8, 16, __nv_bfloat16, row_major>& b, const fragment<accumulator, 32, 8, 16, float>& c) {
|
| 880 |
+
__mma_bf16_m32n8k16_mma_f32((float*)&d, (const int*)&a, (const int*)&b, (const float*)&c, 2, 0);
|
| 881 |
+
}
|
| 882 |
+
#endif /* __CUDA_AMPERE_MMA__ */
|
| 883 |
+
|
| 884 |
+
//
|
| 885 |
+
// MMA functions for shape m8n32k16
|
| 886 |
+
//
|
| 887 |
+
// D fp16, C fp16
|
| 888 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator,8, 32, 16, __half>& d, const fragment<matrix_a, 8, 32, 16, __half, row_major>& a, const fragment<matrix_b,8, 32, 16, __half, col_major>& b, const fragment<accumulator,8, 32, 16, __half>& c) {
|
| 889 |
+
__hmma_m8n32k16_mma_f16f16((int*)&d, (const int*)&a, (const int*)&b, (const int*)&c, 1, 0);
|
| 890 |
+
}
|
| 891 |
+
|
| 892 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator,8, 32, 16, __half>& d, const fragment<matrix_a, 8, 32, 16, __half, col_major>& a, const fragment<matrix_b,8, 32, 16, __half, col_major>& b, const fragment<accumulator,8, 32, 16, __half>& c) {
|
| 893 |
+
__hmma_m8n32k16_mma_f16f16((int*)&d, (const int*)&a, (const int*)&b, (const int*)&c, 3, 0);
|
| 894 |
+
}
|
| 895 |
+
|
| 896 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator,8, 32, 16, __half>& d, const fragment<matrix_a, 8, 32, 16, __half, row_major>& a, const fragment<matrix_b,8, 32, 16, __half, row_major>& b, const fragment<accumulator,8, 32, 16, __half>& c) {
|
| 897 |
+
__hmma_m8n32k16_mma_f16f16((int*)&d, (const int*)&a, (const int*)&b, (const int*)&c, 0, 0);
|
| 898 |
+
}
|
| 899 |
+
|
| 900 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator,8, 32, 16, __half>& d, const fragment<matrix_a, 8, 32, 16, __half, col_major>& a, const fragment<matrix_b,8, 32, 16, __half, row_major>& b, const fragment<accumulator,8, 32, 16, __half>& c) {
|
| 901 |
+
__hmma_m8n32k16_mma_f16f16((int*)&d, (const int*)&a, (const int*)&b, (const int*)&c, 2, 0);
|
| 902 |
+
}
|
| 903 |
+
|
| 904 |
+
// D fp32, C fp16
|
| 905 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator,8, 32, 16, float>& d, const fragment<matrix_a, 8, 32, 16, __half, row_major>& a, const fragment<matrix_b,8, 32, 16, __half, col_major>& b, const fragment<accumulator,8, 32, 16, __half>& c) {
|
| 906 |
+
__hmma_m8n32k16_mma_f32f16((float*)&d, (const int*)&a, (const int*)&b, (const int*)&c, 1, 0);
|
| 907 |
+
}
|
| 908 |
+
|
| 909 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator,8, 32, 16, float>& d, const fragment<matrix_a, 8, 32, 16, __half, col_major>& a, const fragment<matrix_b,8, 32, 16, __half, col_major>& b, const fragment<accumulator,8, 32, 16, __half>& c) {
|
| 910 |
+
__hmma_m8n32k16_mma_f32f16((float*)&d, (const int*)&a, (const int*)&b, (const int*)&c, 3, 0);
|
| 911 |
+
}
|
| 912 |
+
|
| 913 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator,8, 32, 16, float>& d, const fragment<matrix_a, 8, 32, 16, __half, row_major>& a, const fragment<matrix_b,8, 32, 16, __half, row_major>& b, const fragment<accumulator,8, 32, 16, __half>& c) {
|
| 914 |
+
__hmma_m8n32k16_mma_f32f16((float*)&d, (const int*)&a, (const int*)&b, (const int*)&c, 0, 0);
|
| 915 |
+
}
|
| 916 |
+
|
| 917 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator,8, 32, 16, float>& d, const fragment<matrix_a, 8, 32, 16, __half, col_major>& a, const fragment<matrix_b,8, 32, 16, __half, row_major>& b, const fragment<accumulator,8, 32, 16, __half>& c) {
|
| 918 |
+
__hmma_m8n32k16_mma_f32f16((float*)&d, (const int*)&a, (const int*)&b, (const int*)&c, 2, 0);
|
| 919 |
+
}
|
| 920 |
+
|
| 921 |
+
// D fp32, C fp32
|
| 922 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator,8, 32, 16, float>& d, const fragment<matrix_a, 8, 32, 16, __half, row_major>& a, const fragment<matrix_b,8, 32, 16, __half, col_major>& b, const fragment<accumulator,8, 32, 16, float>& c) {
|
| 923 |
+
__hmma_m8n32k16_mma_f32f32((float*)&d, (const int*)&a, (const int*)&b, (const float*)&c, 1, 0);
|
| 924 |
+
}
|
| 925 |
+
|
| 926 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator,8, 32, 16, float>& d, const fragment<matrix_a, 8, 32, 16, __half, col_major>& a, const fragment<matrix_b,8, 32, 16, __half, col_major>& b, const fragment<accumulator,8, 32, 16, float>& c) {
|
| 927 |
+
__hmma_m8n32k16_mma_f32f32((float*)&d, (const int*)&a, (const int*)&b, (const float*)&c, 3, 0);
|
| 928 |
+
}
|
| 929 |
+
|
| 930 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator,8, 32, 16, float>& d, const fragment<matrix_a, 8, 32, 16, __half, row_major>& a, const fragment<matrix_b,8, 32, 16, __half, row_major>& b, const fragment<accumulator,8, 32, 16, float>& c) {
|
| 931 |
+
__hmma_m8n32k16_mma_f32f32((float*)&d, (const int*)&a, (const int*)&b, (const float*)&c, 0, 0);
|
| 932 |
+
}
|
| 933 |
+
|
| 934 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator,8, 32, 16, float>& d, const fragment<matrix_a, 8, 32, 16, __half, col_major>& a, const fragment<matrix_b,8, 32, 16, __half, row_major>& b, const fragment<accumulator,8, 32, 16, float>& c) {
|
| 935 |
+
__hmma_m8n32k16_mma_f32f32((float*)&d, (const int*)&a, (const int*)&b, (const float*)&c, 2, 0);
|
| 936 |
+
}
|
| 937 |
+
|
| 938 |
+
// D fp16, C fp32
|
| 939 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator,8, 32, 16, __half>& d, const fragment<matrix_a, 8, 32, 16, __half, row_major>& a, const fragment<matrix_b,8, 32, 16, __half, col_major>& b, const fragment<accumulator,8, 32, 16, float>& c) {
|
| 940 |
+
__hmma_m8n32k16_mma_f16f32((int*)&d, (const int*)&a, (const int*)&b, (const float*)&c, 1, 0);
|
| 941 |
+
}
|
| 942 |
+
|
| 943 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator,8, 32, 16, __half>& d, const fragment<matrix_a, 8, 32, 16, __half, col_major>& a, const fragment<matrix_b,8, 32, 16, __half, col_major>& b, const fragment<accumulator,8, 32, 16, float>& c) {
|
| 944 |
+
__hmma_m8n32k16_mma_f16f32((int*)&d, (const int*)&a, (const int*)&b, (const float*)&c, 3, 0);
|
| 945 |
+
}
|
| 946 |
+
|
| 947 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator,8, 32, 16, __half>& d, const fragment<matrix_a, 8, 32, 16, __half, row_major>& a, const fragment<matrix_b,8, 32, 16, __half, row_major>& b, const fragment<accumulator,8, 32, 16, float>& c) {
|
| 948 |
+
__hmma_m8n32k16_mma_f16f32((int*)&d, (const int*)&a, (const int*)&b, (const float*)&c, 0, 0);
|
| 949 |
+
}
|
| 950 |
+
|
| 951 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator,8, 32, 16, __half>& d, const fragment<matrix_a, 8, 32, 16, __half, col_major>& a, const fragment<matrix_b,8, 32, 16, __half, row_major>& b, const fragment<accumulator,8, 32, 16, float>& c) {
|
| 952 |
+
__hmma_m8n32k16_mma_f16f32((int*)&d, (const int*)&a, (const int*)&b, (const float*)&c, 2, 0);
|
| 953 |
+
}
|
| 954 |
+
|
| 955 |
+
#ifdef __CUDA_IMMA__
|
| 956 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator, 8, 32, 16, int>& d, const fragment<matrix_a, 8, 32, 16, signed char, row_major>& a, const fragment<matrix_b, 8, 32, 16, signed char, col_major>& b, const fragment<accumulator, 8, 32, 16, int>& c, bool satf) {
|
| 957 |
+
if (satf)
|
| 958 |
+
__imma_m8n32k16_mma_s8((int*)&d, (const int *)&a, (const int *)&b, (const int*)&c, 1, 1);
|
| 959 |
+
else
|
| 960 |
+
__imma_m8n32k16_mma_s8((int*)&d, (const int *)&a, (const int *)&b, (const int*)&c, 1, 0);
|
| 961 |
+
}
|
| 962 |
+
|
| 963 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator, 8, 32, 16, int>& d, const fragment<matrix_a, 8, 32, 16, signed char, col_major>& a, const fragment<matrix_b, 8, 32, 16, signed char, col_major>& b, const fragment<accumulator, 8, 32, 16, int>& c, bool satf) {
|
| 964 |
+
if (satf)
|
| 965 |
+
__imma_m8n32k16_mma_s8((int*)&d, (const int *)&a, (const int *)&b, (const int*)&c, 3, 1);
|
| 966 |
+
else
|
| 967 |
+
__imma_m8n32k16_mma_s8((int*)&d, (const int *)&a, (const int *)&b, (const int*)&c, 3, 0);
|
| 968 |
+
}
|
| 969 |
+
|
| 970 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator, 8, 32, 16, int>& d, const fragment<matrix_a, 8, 32, 16, signed char, row_major>& a, const fragment<matrix_b, 8, 32, 16, signed char, row_major>& b, const fragment<accumulator, 8, 32, 16, int>& c, bool satf) {
|
| 971 |
+
if (satf)
|
| 972 |
+
__imma_m8n32k16_mma_s8((int*)&d, (const int *)&a, (const int *)&b, (const int*)&c, 0, 1);
|
| 973 |
+
else
|
| 974 |
+
__imma_m8n32k16_mma_s8((int*)&d, (const int *)&a, (const int *)&b, (const int*)&c, 0, 0);
|
| 975 |
+
}
|
| 976 |
+
|
| 977 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator, 8, 32, 16, int>& d, const fragment<matrix_a, 8, 32, 16, signed char, col_major>& a, const fragment<matrix_b, 8, 32, 16, signed char, row_major>& b, const fragment<accumulator, 8, 32, 16, int>& c, bool satf) {
|
| 978 |
+
if (satf)
|
| 979 |
+
__imma_m8n32k16_mma_s8((int*)&d, (const int *)&a, (const int *)&b, (const int*)&c, 2, 1);
|
| 980 |
+
else
|
| 981 |
+
__imma_m8n32k16_mma_s8((int*)&d, (const int *)&a, (const int *)&b, (const int*)&c, 2, 0);
|
| 982 |
+
}
|
| 983 |
+
|
| 984 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator, 8, 32, 16, int>& d, const fragment<matrix_a, 8, 32, 16, unsigned char, row_major>& a, const fragment<matrix_b, 8, 32, 16, unsigned char, col_major>& b, const fragment<accumulator, 8, 32, 16, int>& c, bool satf) {
|
| 985 |
+
if (satf)
|
| 986 |
+
__imma_m8n32k16_mma_u8((int*)&d, (const int *)&a, (const int *)&b, (const int*)&c, 1, 1);
|
| 987 |
+
else
|
| 988 |
+
__imma_m8n32k16_mma_u8((int*)&d, (const int *)&a, (const int *)&b, (const int*)&c, 1, 0);
|
| 989 |
+
}
|
| 990 |
+
|
| 991 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator, 8, 32, 16, int>& d, const fragment<matrix_a, 8, 32, 16, unsigned char, col_major>& a, const fragment<matrix_b, 8, 32, 16, unsigned char, col_major>& b, const fragment<accumulator, 8, 32, 16, int>& c, bool satf) {
|
| 992 |
+
if (satf)
|
| 993 |
+
__imma_m8n32k16_mma_u8((int*)&d, (const int *)&a, (const int *)&b, (const int*)&c, 3, 1);
|
| 994 |
+
else
|
| 995 |
+
__imma_m8n32k16_mma_u8((int*)&d, (const int *)&a, (const int *)&b, (const int*)&c, 3, 0);
|
| 996 |
+
}
|
| 997 |
+
|
| 998 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator, 8, 32, 16, int>& d, const fragment<matrix_a, 8, 32, 16, unsigned char, row_major>& a, const fragment<matrix_b, 8, 32, 16, unsigned char, row_major>& b, const fragment<accumulator, 8, 32, 16, int>& c, bool satf) {
|
| 999 |
+
if (satf)
|
| 1000 |
+
__imma_m8n32k16_mma_u8((int*)&d, (const int *)&a, (const int *)&b, (const int*)&c, 0, 1);
|
| 1001 |
+
else
|
| 1002 |
+
__imma_m8n32k16_mma_u8((int*)&d, (const int *)&a, (const int *)&b, (const int*)&c, 0, 0);
|
| 1003 |
+
}
|
| 1004 |
+
|
| 1005 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator, 8, 32, 16, int>& d, const fragment<matrix_a, 8, 32, 16, unsigned char, col_major>& a, const fragment<matrix_b, 8, 32, 16, unsigned char, row_major>& b, const fragment<accumulator, 8, 32, 16, int>& c, bool satf) {
|
| 1006 |
+
if (satf)
|
| 1007 |
+
__imma_m8n32k16_mma_u8((int*)&d, (const int *)&a, (const int *)&b, (const int*)&c, 2, 1);
|
| 1008 |
+
else
|
| 1009 |
+
__imma_m8n32k16_mma_u8((int*)&d, (const int *)&a, (const int *)&b, (const int*)&c, 2, 0);
|
| 1010 |
+
}
|
| 1011 |
+
#endif /* __CUDA_IMMA__ */
|
| 1012 |
+
|
| 1013 |
+
#ifdef __CUDA_AMPERE_MMA__
|
| 1014 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator, 8, 32, 16, float>& d, const fragment<matrix_a, 8, 32, 16, __nv_bfloat16, row_major>& a, const fragment<matrix_b, 8, 32, 16, __nv_bfloat16, col_major>& b, const fragment<accumulator, 8, 32, 16, float>& c) {
|
| 1015 |
+
__mma_bf16_m8n32k16_mma_f32((float*)&d, (const int*)&a, (const int*)&b, (const float*)&c, 1, 0);
|
| 1016 |
+
}
|
| 1017 |
+
|
| 1018 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator, 8, 32, 16, float>& d, const fragment<matrix_a, 8, 32, 16, __nv_bfloat16, col_major>& a, const fragment<matrix_b, 8, 32, 16, __nv_bfloat16, col_major>& b, const fragment<accumulator, 8, 32, 16, float>& c) {
|
| 1019 |
+
__mma_bf16_m8n32k16_mma_f32((float*)&d, (const int*)&a, (const int*)&b, (const float*)&c, 3, 0);
|
| 1020 |
+
}
|
| 1021 |
+
|
| 1022 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator, 8, 32, 16, float>& d, const fragment<matrix_a, 8, 32, 16, __nv_bfloat16, row_major>& a, const fragment<matrix_b, 8, 32, 16, __nv_bfloat16, row_major>& b, const fragment<accumulator, 8, 32, 16, float>& c) {
|
| 1023 |
+
__mma_bf16_m8n32k16_mma_f32((float*)&d, (const int*)&a, (const int*)&b, (const float*)&c, 0, 0);
|
| 1024 |
+
}
|
| 1025 |
+
|
| 1026 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator, 8, 32, 16, float>& d, const fragment<matrix_a, 8, 32, 16, __nv_bfloat16, col_major>& a, const fragment<matrix_b, 8, 32, 16, __nv_bfloat16, row_major>& b, const fragment<accumulator, 8, 32, 16, float>& c) {
|
| 1027 |
+
__mma_bf16_m8n32k16_mma_f32((float*)&d, (const int*)&a, (const int*)&b, (const float*)&c, 2, 0);
|
| 1028 |
+
}
|
| 1029 |
+
#endif /* __CUDA_AMPERE_MMA__ */
|
| 1030 |
+
|
| 1031 |
+
|
| 1032 |
+
#ifdef __CUDA_SUBBYTE_IMMA__
|
| 1033 |
+
//
|
| 1034 |
+
// MMA functions for shape m8n8k32
|
| 1035 |
+
//
|
| 1036 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator, 8, 8, 32, int>& d, const fragment<matrix_a, 8, 8, 32, experimental::precision::s4, row_major>& a, const fragment<matrix_b, 8, 8, 32, experimental::precision::s4, col_major>& b, const fragment<accumulator, 8, 8, 32, int>& c, bool satf) {
|
| 1037 |
+
if (satf)
|
| 1038 |
+
__imma_m8n8k32_mma_s4((int*)&d, (const int *)&a, (const int *)&b, (const int*)&c, 1, 1);
|
| 1039 |
+
else
|
| 1040 |
+
__imma_m8n8k32_mma_s4((int*)&d, (const int *)&a, (const int *)&b, (const int*)&c, 1, 0);
|
| 1041 |
+
}
|
| 1042 |
+
|
| 1043 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator, 8, 8, 32, int>& d, const fragment<matrix_a, 8, 8, 32, experimental::precision::u4, row_major>& a, const fragment<matrix_b, 8, 8, 32, experimental::precision::u4, col_major>& b, const fragment<accumulator, 8, 8, 32, int>& c, bool satf) {
|
| 1044 |
+
if (satf)
|
| 1045 |
+
__imma_m8n8k32_mma_u4((int*)&d, (const int *)&a, (const int *)&b, (const int*)&c, 1, 1);
|
| 1046 |
+
else
|
| 1047 |
+
__imma_m8n8k32_mma_u4((int*)&d, (const int *)&a, (const int *)&b, (const int*)&c, 1, 0);
|
| 1048 |
+
}
|
| 1049 |
+
|
| 1050 |
+
//
|
| 1051 |
+
// MMA functions for shape m8n8k128
|
| 1052 |
+
//
|
| 1053 |
+
__CUDA_MMA_DEVICE_DECL__ void bmma_sync(fragment<accumulator, 8, 8, 128, int>& d, const fragment<matrix_a, 8, 8, 128, experimental::precision::b1, row_major>& a, const fragment<matrix_b, 8, 8, 128, experimental::precision::b1, col_major>& b, const fragment<accumulator, 8, 8, 128, int>& c,
|
| 1054 |
+
experimental::bmmaBitOp op, experimental::bmmaAccumulateOp)
|
| 1055 |
+
{
|
| 1056 |
+
|
| 1057 |
+
#ifdef __CUDA_AMPERE_MMA__
|
| 1058 |
+
if (op == experimental::bmmaBitOpAND)
|
| 1059 |
+
__bmma_m8n8k128_mma_and_popc_b1((int*)&d, (const int *)&a, (const int *)&b, (const int*)&c, 1);
|
| 1060 |
+
else
|
| 1061 |
+
#endif /* __CUDA_AMPERE_MMA__ */
|
| 1062 |
+
__bmma_m8n8k128_mma_xor_popc_b1((int*)&d, (const int *)&a, (const int *)&b, (const int*)&c, 1);
|
| 1063 |
+
}
|
| 1064 |
+
|
| 1065 |
+
|
| 1066 |
+
#endif /* __CUDA_SUBBYTE_IMMA__ */
|
| 1067 |
+
|
| 1068 |
+
#ifdef __CUDA_AMPERE_MMA__
|
| 1069 |
+
//
|
| 1070 |
+
// MMA functions for shape m16n16k8
|
| 1071 |
+
//
|
| 1072 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator, 16, 16, 8, float>& d, const fragment<matrix_a, 16, 16, 8, precision::tf32, row_major>& a, const fragment<matrix_b, 16, 16, 8, precision::tf32, col_major>& b, const fragment<accumulator, 16, 16, 8, float>& c) {
|
| 1073 |
+
__mma_tf32_m16n16k8_mma_f32((float *)&d, (const int*)&a, (const int*)&b, (const float*)&c, 1, 0);
|
| 1074 |
+
}
|
| 1075 |
+
|
| 1076 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator, 16, 16, 8, float>& d, const fragment<matrix_a, 16, 16, 8, precision::tf32, col_major>& a, const fragment<matrix_b, 16, 16, 8, precision::tf32, col_major>& b, const fragment<accumulator, 16, 16, 8, float>& c) {
|
| 1077 |
+
__mma_tf32_m16n16k8_mma_f32((float *)&d, (const int*)&a, (const int*)&b, (const float*)&c, 3, 0);
|
| 1078 |
+
}
|
| 1079 |
+
|
| 1080 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator, 16, 16, 8, float>& d, const fragment<matrix_a, 16, 16, 8, precision::tf32, row_major>& a, const fragment<matrix_b, 16, 16, 8, precision::tf32, row_major>& b, const fragment<accumulator, 16, 16, 8, float>& c) {
|
| 1081 |
+
__mma_tf32_m16n16k8_mma_f32((float *)&d, (const int*)&a, (const int*)&b, (const float*)&c, 0, 0);
|
| 1082 |
+
}
|
| 1083 |
+
|
| 1084 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator, 16, 16, 8, float>& d, const fragment<matrix_a, 16, 16, 8, precision::tf32, col_major>& a, const fragment<matrix_b, 16, 16, 8, precision::tf32, row_major>& b, const fragment<accumulator, 16, 16, 8, float>& c) {
|
| 1085 |
+
__mma_tf32_m16n16k8_mma_f32((float *)&d, (const int*)&a, (const int*)&b, (const float*)&c, 2, 0);
|
| 1086 |
+
}
|
| 1087 |
+
|
| 1088 |
+
|
| 1089 |
+
//
|
| 1090 |
+
// MMA functions for shape m8n8k4
|
| 1091 |
+
//
|
| 1092 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator, 8, 8, 4, double>& d, const fragment<matrix_a, 8, 8, 4, double, row_major>& a, const fragment<matrix_b, 8, 8, 4, double, col_major>& b, const fragment<accumulator, 8, 8, 4, double>& c) {
|
| 1093 |
+
__dmma_m8n8k4_mma_f64((double *)&d, (const double*)&a, (const double*)&b, (const double*)&c, 1, 0);
|
| 1094 |
+
}
|
| 1095 |
+
|
| 1096 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator, 8, 8, 4, double>& d, const fragment<matrix_a, 8, 8, 4, double, col_major>& a, const fragment<matrix_b, 8, 8, 4, double, col_major>& b, const fragment<accumulator, 8, 8, 4, double>& c) {
|
| 1097 |
+
__dmma_m8n8k4_mma_f64((double *)&d, (const double*)&a, (const double*)&b, (const double*)&c, 3, 0);
|
| 1098 |
+
}
|
| 1099 |
+
|
| 1100 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator, 8, 8, 4, double>& d, const fragment<matrix_a, 8, 8, 4, double, row_major>& a, const fragment<matrix_b, 8, 8, 4, double, row_major>& b, const fragment<accumulator, 8, 8, 4, double>& c) {
|
| 1101 |
+
__dmma_m8n8k4_mma_f64((double *)&d, (const double*)&a, (const double*)&b, (const double*)&c, 0, 0);
|
| 1102 |
+
}
|
| 1103 |
+
|
| 1104 |
+
__CUDA_MMA_DEVICE_DECL__ void mma_sync(fragment<accumulator, 8, 8, 4, double>& d, const fragment<matrix_a, 8, 8, 4, double, col_major>& a, const fragment<matrix_b, 8, 8, 4, double, row_major>& b, const fragment<accumulator, 8, 8, 4, double>& c) {
|
| 1105 |
+
__dmma_m8n8k4_mma_f64((double *)&d, (const double*)&a, (const double*)&b, (const double*)&c, 2, 0);
|
| 1106 |
+
}
|
| 1107 |
+
|
| 1108 |
+
#endif /* __CUDA_AMPERE_MMA__ */
|
| 1109 |
+
|
| 1110 |
+
};
|
| 1111 |
+
};
|
| 1112 |
+
|
| 1113 |
+
#undef __CUDA_IMMA__
|
| 1114 |
+
#undef __CUDA_SUBBYTE_IMMA__
|
| 1115 |
+
#undef __CUDA_MMA_DEVICE_DECL__
|
| 1116 |
+
#undef __CUDA_AMPERE_MMA__
|
| 1117 |
+
|
| 1118 |
+
#endif /* !__CUDA_ARCH__ || __CUDA_ARCH__ >= 700 */
|
| 1119 |
+
|
| 1120 |
+
#endif /* __cplusplus && __CUDACC__ */
|
| 1121 |
+
|
| 1122 |
+
|
| 1123 |
+
#endif /* __CUDA_MMA_HPP__ */
|
| 1124 |
+
|
| 1125 |
+
#if defined(__UNDEF_CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS_CUDA_MMA_HPP__)
|
| 1126 |
+
#undef __CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS__
|
| 1127 |
+
#undef __UNDEF_CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS_CUDA_MMA_HPP__
|
| 1128 |
+
#endif
|
data/miniconda3/pkgs/cuda-crt-dev_linux-64-12.8.93-h06a4308_3/targets/x86_64-linux/include/crt/nvfunctional
ADDED
|
@@ -0,0 +1,621 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
* NVIDIA_COPYRIGHT_BEGIN
|
| 3 |
+
*
|
| 4 |
+
* Copyright (c) 2014-2018, NVIDIA CORPORATION. All rights reserved.
|
| 5 |
+
*
|
| 6 |
+
* NVIDIA CORPORATION and its licensors retain all intellectual property
|
| 7 |
+
* and proprietary rights in and to this software, related documentation
|
| 8 |
+
* and any modifications thereto. Any use, reproduction, disclosure or
|
| 9 |
+
* distribution of this software and related documentation without an express
|
| 10 |
+
* license agreement from NVIDIA CORPORATION is strictly prohibited.
|
| 11 |
+
*
|
| 12 |
+
* NVIDIA_COPYRIGHT_END
|
| 13 |
+
*/
|
| 14 |
+
|
| 15 |
+
#if !defined(__CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS__)
|
| 16 |
+
#if defined(_MSC_VER)
|
| 17 |
+
#pragma message("crt/nvfunctional is an internal header file and must not be used directly. Please use nvfunctional instead.")
|
| 18 |
+
#else
|
| 19 |
+
#warning "crt/nvfunctional is an internal header file and must not be used directly. Please use nvfunctional instead."
|
| 20 |
+
#endif
|
| 21 |
+
#define __CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS__
|
| 22 |
+
#define __UNDEF_CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS_NV_LIBCXX_FUNCTIONAL_H__
|
| 23 |
+
#endif
|
| 24 |
+
|
| 25 |
+
#ifndef __NV_LIBCXX_FUNCTIONAL_H__
|
| 26 |
+
#define __NV_LIBCXX_FUNCTIONAL_H__
|
| 27 |
+
|
| 28 |
+
#if __cplusplus < 201103L
|
| 29 |
+
#if defined(_MSC_VER)
|
| 30 |
+
#if _MSC_VER < 1800
|
| 31 |
+
#error This library requires VS 2013 and above
|
| 32 |
+
#endif /* _MSC_VER < 1800 */
|
| 33 |
+
#else /* !_MSC_VER */
|
| 34 |
+
#error This library requires support for the ISO C++ 2011 standard
|
| 35 |
+
#endif /* _MSC_VER */
|
| 36 |
+
#endif /* __cplusplus */
|
| 37 |
+
|
| 38 |
+
#if defined(_MSC_VER)
|
| 39 |
+
#define __NV_ALIGNOF __alignof
|
| 40 |
+
#define __NV_NOEXCEPT
|
| 41 |
+
#define __NV_CONSTEXPR
|
| 42 |
+
#else /* !_MSC_VER */
|
| 43 |
+
#define __NV_ALIGNOF alignof
|
| 44 |
+
#define __NV_NOEXCEPT noexcept
|
| 45 |
+
#define __NV_CONSTEXPR constexpr
|
| 46 |
+
#endif /* _MSC_VER */
|
| 47 |
+
|
| 48 |
+
#include <type_traits>
|
| 49 |
+
#include <cstddef>
|
| 50 |
+
#include <new>
|
| 51 |
+
|
| 52 |
+
// n3290 20.8
|
| 53 |
+
namespace nvstd
|
| 54 |
+
{
|
| 55 |
+
|
| 56 |
+
namespace internal {
|
| 57 |
+
|
| 58 |
+
// D.8.1 base (deprecated) [depr.base]
|
| 59 |
+
template <class _Arg, class _Result>
|
| 60 |
+
struct unary_function
|
| 61 |
+
{
|
| 62 |
+
typedef _Arg argument_type;
|
| 63 |
+
typedef _Result result_type;
|
| 64 |
+
};
|
| 65 |
+
|
| 66 |
+
template <class _Arg1, class _Arg2, class _Result>
|
| 67 |
+
struct binary_function
|
| 68 |
+
{
|
| 69 |
+
typedef _Arg1 first_argument_type;
|
| 70 |
+
typedef _Arg2 second_argument_type;
|
| 71 |
+
typedef _Result result_type;
|
| 72 |
+
};
|
| 73 |
+
|
| 74 |
+
// move
|
| 75 |
+
template <class _T>
|
| 76 |
+
inline __device__ __host__
|
| 77 |
+
typename std::remove_reference<_T>::type&& move(_T&& __t) __NV_NOEXCEPT
|
| 78 |
+
{
|
| 79 |
+
return static_cast<typename std::remove_reference<_T>::type&&>(__t);
|
| 80 |
+
}
|
| 81 |
+
|
| 82 |
+
// 20.2.2 swap [utility.swap]
|
| 83 |
+
// swap
|
| 84 |
+
template<class _T,
|
| 85 |
+
class = typename std::enable_if<
|
| 86 |
+
std::is_move_constructible<_T>::value &&
|
| 87 |
+
std::is_move_assignable<_T>::value>::type>
|
| 88 |
+
inline __device__ __host__
|
| 89 |
+
void swap(_T& __a, _T& __b)
|
| 90 |
+
#if !defined(_MSC_VER)
|
| 91 |
+
noexcept(std::is_nothrow_move_constructible<_T>::value &&
|
| 92 |
+
std::is_nothrow_move_assignable<_T>::value)
|
| 93 |
+
#endif /* !defined(_MSC_VER) */
|
| 94 |
+
{
|
| 95 |
+
_T __t(internal::move(__a));
|
| 96 |
+
__a = internal::move(__b);
|
| 97 |
+
__b = internal::move(__t);
|
| 98 |
+
}
|
| 99 |
+
|
| 100 |
+
// 20.2.3 forward/move helpers [forward]
|
| 101 |
+
// forward
|
| 102 |
+
template <class _T>
|
| 103 |
+
inline __device__ __host__
|
| 104 |
+
_T&& forward(typename std::remove_reference<_T>::type& __t) __NV_NOEXCEPT
|
| 105 |
+
{
|
| 106 |
+
return static_cast<_T&&>(__t);
|
| 107 |
+
}
|
| 108 |
+
|
| 109 |
+
template <class _T>
|
| 110 |
+
inline __device__ __host__
|
| 111 |
+
_T&& forward(typename std::remove_reference<_T>::type&& __t) __NV_NOEXCEPT
|
| 112 |
+
{
|
| 113 |
+
static_assert(!std::is_lvalue_reference<_T>::value,
|
| 114 |
+
"Error: __t is instantiated with an lvalue reference type");
|
| 115 |
+
return static_cast<_T&&>(__t);
|
| 116 |
+
}
|
| 117 |
+
|
| 118 |
+
} // namespace internal
|
| 119 |
+
|
| 120 |
+
namespace __functional_helpers
|
| 121 |
+
{
|
| 122 |
+
|
| 123 |
+
struct __dummy_class;
|
| 124 |
+
|
| 125 |
+
// Store small functors locally:
|
| 126 |
+
// a functor is legitimate to local storage if it is one of the following types:
|
| 127 |
+
// * member object pointer;
|
| 128 |
+
// * member function pointer;
|
| 129 |
+
// * closure type of size less than or equal to the largest size of
|
| 130 |
+
// the above types;
|
| 131 |
+
// * function pointer;
|
| 132 |
+
// * any callable class whose size is less than or equal to
|
| 133 |
+
// the largest one of the above types;
|
| 134 |
+
union _Small_functor_types
|
| 135 |
+
{
|
| 136 |
+
void *__obj;
|
| 137 |
+
void (*__func_ptr)();
|
| 138 |
+
void (__dummy_class::*mem_fn_ptr)();
|
| 139 |
+
};
|
| 140 |
+
|
| 141 |
+
struct _Small_functor_data {
|
| 142 |
+
char __data[sizeof(_Small_functor_types)];
|
| 143 |
+
};
|
| 144 |
+
|
| 145 |
+
template <class _RetType, class ..._ArgTypes>
|
| 146 |
+
struct __maybe_base_function
|
| 147 |
+
{ };
|
| 148 |
+
|
| 149 |
+
template <class _RetType, class _T1>
|
| 150 |
+
struct __maybe_base_function<_RetType(_T1)>
|
| 151 |
+
: public internal::unary_function<_T1, _RetType>
|
| 152 |
+
{ };
|
| 153 |
+
|
| 154 |
+
template <class _RetType, class _T1, class _T2>
|
| 155 |
+
struct __maybe_base_function<_RetType(_T1, _T2)>
|
| 156 |
+
: public internal::binary_function<_T1, _T2, _RetType>
|
| 157 |
+
{ };
|
| 158 |
+
|
| 159 |
+
} // namespace __functional_helpers
|
| 160 |
+
|
| 161 |
+
// 20.8.11 Polymorphic function wrappers [func.wrap]
|
| 162 |
+
|
| 163 |
+
// 20.8.11.1 Class bad_function_call [func.wrap.badcall]
|
| 164 |
+
// unimplemented because of exception
|
| 165 |
+
// class bad_function_call : public std::exception
|
| 166 |
+
|
| 167 |
+
// 20.8.11.2 Class template function [func.wrap.func]
|
| 168 |
+
|
| 169 |
+
template<class> class function; // undefined
|
| 170 |
+
|
| 171 |
+
// Simplified version of template class function, which
|
| 172 |
+
// * does not support allocator_arg_t;
|
| 173 |
+
// * does not support target and target_type that rely on RTTI
|
| 174 |
+
// * does not throw bad_function_call exception on invoking a NULL target
|
| 175 |
+
template <class _RetType, class ..._ArgTypes>
|
| 176 |
+
class function<_RetType(_ArgTypes...)>
|
| 177 |
+
: public __functional_helpers::__maybe_base_function<_RetType(_ArgTypes...)>
|
| 178 |
+
{
|
| 179 |
+
__functional_helpers::_Small_functor_data __small_functor_data;
|
| 180 |
+
void *__obj;
|
| 181 |
+
typedef _RetType(*__meta_fn_type)(void *, _ArgTypes...);
|
| 182 |
+
__meta_fn_type __meta_fn;
|
| 183 |
+
typedef void(*__cloner_type)(function &, const function &);
|
| 184 |
+
__cloner_type __cloner;
|
| 185 |
+
typedef void(*__destructor_type)(function *);
|
| 186 |
+
__destructor_type __destructor;
|
| 187 |
+
|
| 188 |
+
#pragma nv_exec_check_disable
|
| 189 |
+
template <class _F>
|
| 190 |
+
__device__ __host__
|
| 191 |
+
__NV_CONSTEXPR bool __use_small_functor_data() const
|
| 192 |
+
{
|
| 193 |
+
return (sizeof(_F) <= sizeof(__small_functor_data) &&
|
| 194 |
+
__NV_ALIGNOF(_F) <= __NV_ALIGNOF(
|
| 195 |
+
__functional_helpers::_Small_functor_types));
|
| 196 |
+
}
|
| 197 |
+
|
| 198 |
+
#pragma nv_exec_check_disable
|
| 199 |
+
__device__ __host__
|
| 200 |
+
void* __get_small_functor_data() const
|
| 201 |
+
{
|
| 202 |
+
return (void*)(&__small_functor_data.__data[0]);
|
| 203 |
+
}
|
| 204 |
+
|
| 205 |
+
#pragma nv_exec_check_disable
|
| 206 |
+
__device__ __host__
|
| 207 |
+
bool __is_small_functor_data() const
|
| 208 |
+
{
|
| 209 |
+
return __obj == __get_small_functor_data();
|
| 210 |
+
}
|
| 211 |
+
|
| 212 |
+
#pragma nv_exec_check_disable
|
| 213 |
+
template <class _F>
|
| 214 |
+
__device__ __host__
|
| 215 |
+
static _F& __get_functor(void *__p)
|
| 216 |
+
{
|
| 217 |
+
return *((_F*)__p);
|
| 218 |
+
}
|
| 219 |
+
|
| 220 |
+
#pragma nv_exec_check_disable
|
| 221 |
+
template <class _F>
|
| 222 |
+
__device__ __host__
|
| 223 |
+
static bool __is_empty_functor(const _F& /*__p*/)
|
| 224 |
+
{
|
| 225 |
+
return false;
|
| 226 |
+
}
|
| 227 |
+
|
| 228 |
+
#pragma nv_exec_check_disable
|
| 229 |
+
template <class _F>
|
| 230 |
+
__device__ __host__
|
| 231 |
+
static bool __is_empty_functor(const _F* __p)
|
| 232 |
+
{
|
| 233 |
+
return !__p;
|
| 234 |
+
}
|
| 235 |
+
|
| 236 |
+
#pragma nv_exec_check_disable
|
| 237 |
+
template <class _Res, class _C>
|
| 238 |
+
__device__ __host__
|
| 239 |
+
static bool __is_empty_functor(const _Res _C::* __p)
|
| 240 |
+
{
|
| 241 |
+
return !__p;
|
| 242 |
+
}
|
| 243 |
+
|
| 244 |
+
#pragma nv_exec_check_disable
|
| 245 |
+
template <class _Res, class... _Args>
|
| 246 |
+
__device__ __host__
|
| 247 |
+
static bool __is_empty_functor(const function<_Res(_Args...)>& __p)
|
| 248 |
+
{
|
| 249 |
+
return !__p;
|
| 250 |
+
}
|
| 251 |
+
|
| 252 |
+
template <class _F>
|
| 253 |
+
struct __make_cloner
|
| 254 |
+
{
|
| 255 |
+
#pragma nv_exec_check_disable
|
| 256 |
+
__device__ __host__
|
| 257 |
+
static void __clone_data(function &__dest, const function &__src)
|
| 258 |
+
{
|
| 259 |
+
if (__dest.__use_small_functor_data<_F>()) {
|
| 260 |
+
__dest.__obj = __dest.__get_small_functor_data();
|
| 261 |
+
new (__dest.__obj) _F(__src.__get_functor<_F>(__src.__obj));
|
| 262 |
+
}
|
| 263 |
+
else {
|
| 264 |
+
__dest.__obj = new _F(__src.__get_functor<_F>(__src.__obj));
|
| 265 |
+
}
|
| 266 |
+
}
|
| 267 |
+
};
|
| 268 |
+
|
| 269 |
+
template <class _F>
|
| 270 |
+
struct __make_destructor
|
| 271 |
+
{
|
| 272 |
+
#pragma nv_exec_check_disable
|
| 273 |
+
__device__ __host__
|
| 274 |
+
static void __destruct(function *__fn)
|
| 275 |
+
{
|
| 276 |
+
if (__fn->__use_small_functor_data<_F>()) {
|
| 277 |
+
(__fn->__get_functor<_F>(__fn->__obj)).~_F();
|
| 278 |
+
}
|
| 279 |
+
else {
|
| 280 |
+
delete (_F*)(__fn->__obj);
|
| 281 |
+
}
|
| 282 |
+
}
|
| 283 |
+
};
|
| 284 |
+
|
| 285 |
+
// We cannot simple define __make_functor in the following way:
|
| 286 |
+
// template <class _T, _F>
|
| 287 |
+
// __make_functor;
|
| 288 |
+
// template <class _RetType1, class _F, class... _ArgTypes1>
|
| 289 |
+
// struct __make_functor<_RetType1(_ArgTypes1...), _F>
|
| 290 |
+
//
|
| 291 |
+
// because VS 2013 cannot unpack _RetType1(_ArgTypes1...)
|
| 292 |
+
template <class _RetType1, class _F, class... _ArgTypes1>
|
| 293 |
+
struct __make_functor
|
| 294 |
+
{
|
| 295 |
+
typedef _RetType1 type;
|
| 296 |
+
|
| 297 |
+
#pragma nv_exec_check_disable
|
| 298 |
+
__device__ __host__
|
| 299 |
+
static _RetType1 __invoke(void *__d, _ArgTypes1... __args)
|
| 300 |
+
{
|
| 301 |
+
return __get_functor<_F>(__d)(
|
| 302 |
+
internal::forward<_ArgTypes1>(__args)...);
|
| 303 |
+
}
|
| 304 |
+
};
|
| 305 |
+
|
| 306 |
+
template <class _RetType1, class _C, class _M, class... _ArgTypes1>
|
| 307 |
+
struct __make_functor<_RetType1, _M _C::*,_ArgTypes1...>
|
| 308 |
+
{
|
| 309 |
+
typedef _RetType1 type;
|
| 310 |
+
typedef _RetType1(*_Fn)(_ArgTypes1...);
|
| 311 |
+
|
| 312 |
+
#pragma nv_exec_check_disable
|
| 313 |
+
__device__ __host__
|
| 314 |
+
static _RetType1 __invoke(void *__d, _ArgTypes1... __args)
|
| 315 |
+
{
|
| 316 |
+
return __get_functor<_Fn>(__d)(
|
| 317 |
+
internal::forward<_ArgTypes1>(__args)...);
|
| 318 |
+
}
|
| 319 |
+
};
|
| 320 |
+
|
| 321 |
+
// workaround for GCC version below 4.8
|
| 322 |
+
#if (__GNUC__ == 4) && (__GNUC_MINOR__ < 8)
|
| 323 |
+
template <class _F>
|
| 324 |
+
struct __check_callability
|
| 325 |
+
: public std::integral_constant<bool,
|
| 326 |
+
!std::is_same<_F, std::nullptr_t>::value>
|
| 327 |
+
{ };
|
| 328 |
+
#elif defined(_MSC_VER)
|
| 329 |
+
// simulate VC 2013's behavior...
|
| 330 |
+
template <class _F>
|
| 331 |
+
struct __check_callability1
|
| 332 |
+
: public
|
| 333 |
+
std::integral_constant<bool,
|
| 334 |
+
// std::result_of does not handle member pointers well
|
| 335 |
+
std::is_member_pointer<_F>::value ||
|
| 336 |
+
std::is_convertible<
|
| 337 |
+
_RetType,
|
| 338 |
+
typename std::result_of<_F(_ArgTypes...)>::type
|
| 339 |
+
>::value
|
| 340 |
+
>
|
| 341 |
+
{ };
|
| 342 |
+
|
| 343 |
+
template <class _F>
|
| 344 |
+
struct __check_callability
|
| 345 |
+
: public std::integral_constant<
|
| 346 |
+
bool,
|
| 347 |
+
!std::is_same<_F, function>::value &&
|
| 348 |
+
__check_callability1<typename std::remove_cv<_F>::type>::value>
|
| 349 |
+
{ };
|
| 350 |
+
#else /* !((__GNUC__ == 4) && (__GNUC_MINOR__ < 8)) _MSC_VER */
|
| 351 |
+
template <class _F,
|
| 352 |
+
class _T = typename std::result_of<_F(_ArgTypes...)>::type>
|
| 353 |
+
struct __check_callability
|
| 354 |
+
: public std::integral_constant<
|
| 355 |
+
bool,
|
| 356 |
+
!std::is_same<_F, function>::value &&
|
| 357 |
+
std::is_convertible< _T, _RetType>::value>
|
| 358 |
+
{ };
|
| 359 |
+
#endif /* __GNUC__ == 4) && (__GNUC_MINOR__ < 8) */
|
| 360 |
+
|
| 361 |
+
#pragma nv_exec_check_disable
|
| 362 |
+
__device__ __host__
|
| 363 |
+
void __destroy()
|
| 364 |
+
{
|
| 365 |
+
if (__obj) {
|
| 366 |
+
__destructor(this);
|
| 367 |
+
__obj = 0;
|
| 368 |
+
}
|
| 369 |
+
}
|
| 370 |
+
|
| 371 |
+
#pragma nv_exec_check_disable
|
| 372 |
+
__device__ __host__
|
| 373 |
+
void __clear()
|
| 374 |
+
{
|
| 375 |
+
__obj = 0;
|
| 376 |
+
__meta_fn = 0;
|
| 377 |
+
__cloner = 0;
|
| 378 |
+
__destructor = 0;
|
| 379 |
+
}
|
| 380 |
+
|
| 381 |
+
public:
|
| 382 |
+
typedef _RetType result_type;
|
| 383 |
+
|
| 384 |
+
/*
|
| 385 |
+
* These typedef(s) are derived from __maybe_base_function
|
| 386 |
+
* typedef T1 argument_type; // only if sizeof...(ArgTypes) == 1 and
|
| 387 |
+
* // the type in ArgTypes is T1
|
| 388 |
+
* typedef T1 first_argument_type; // only if sizeof...(ArgTypes) == 2 and
|
| 389 |
+
* // ArgTypes contains T1 and T2
|
| 390 |
+
* typedef T2 second_argument_type; // only if sizeof...(ArgTypes) == 2 and
|
| 391 |
+
* // ArgTypes contains T1 and T2
|
| 392 |
+
*/
|
| 393 |
+
|
| 394 |
+
// 20.8.11.2.1 construct/copy/destroy [func.wrap.con]
|
| 395 |
+
|
| 396 |
+
#pragma nv_exec_check_disable
|
| 397 |
+
__device__ __host__
|
| 398 |
+
function() __NV_NOEXCEPT
|
| 399 |
+
: __obj(0), __meta_fn(0), __cloner(0), __destructor(0) {}
|
| 400 |
+
|
| 401 |
+
#pragma nv_exec_check_disable
|
| 402 |
+
__device__ __host__
|
| 403 |
+
function(std::nullptr_t) __NV_NOEXCEPT
|
| 404 |
+
: __obj(0), __meta_fn(0), __cloner(0), __destructor(0) {}
|
| 405 |
+
|
| 406 |
+
#pragma nv_exec_check_disable
|
| 407 |
+
__device__ __host__
|
| 408 |
+
function(const function &__fn)
|
| 409 |
+
{
|
| 410 |
+
if (__fn.__obj == 0) {
|
| 411 |
+
__clear();
|
| 412 |
+
}
|
| 413 |
+
else {
|
| 414 |
+
__meta_fn = __fn.__meta_fn;
|
| 415 |
+
__destructor = __fn.__destructor;
|
| 416 |
+
__fn.__cloner(*this, __fn);
|
| 417 |
+
__cloner = __fn.__cloner;
|
| 418 |
+
}
|
| 419 |
+
}
|
| 420 |
+
|
| 421 |
+
#pragma nv_exec_check_disable
|
| 422 |
+
__device__ __host__
|
| 423 |
+
function(function &&__fn)
|
| 424 |
+
{
|
| 425 |
+
__fn.swap(*this);
|
| 426 |
+
}
|
| 427 |
+
|
| 428 |
+
// VS 2013 cannot process __check_callability type trait.
|
| 429 |
+
// So, we check callability using static_assert instead of
|
| 430 |
+
// using SFINAE such as
|
| 431 |
+
// template<class _F,
|
| 432 |
+
// class = typename std::enable_if<
|
| 433 |
+
// __check_callability<_F>::value
|
| 434 |
+
// >::type>
|
| 435 |
+
|
| 436 |
+
#pragma nv_exec_check_disable
|
| 437 |
+
template<class _F>
|
| 438 |
+
__device__ __host__
|
| 439 |
+
function(_F);
|
| 440 |
+
|
| 441 |
+
// copy and swap
|
| 442 |
+
#pragma nv_exec_check_disable
|
| 443 |
+
__device__ __host__
|
| 444 |
+
function& operator=(const function& __fn)
|
| 445 |
+
{
|
| 446 |
+
function(__fn).swap(*this);
|
| 447 |
+
return *this;
|
| 448 |
+
}
|
| 449 |
+
|
| 450 |
+
#pragma nv_exec_check_disable
|
| 451 |
+
__device__ __host__
|
| 452 |
+
function& operator=(function&& __fn)
|
| 453 |
+
{
|
| 454 |
+
function(internal::move(__fn)).swap(*this);
|
| 455 |
+
return *this;
|
| 456 |
+
}
|
| 457 |
+
|
| 458 |
+
#pragma nv_exec_check_disable
|
| 459 |
+
__device__ __host__
|
| 460 |
+
function& operator=(std::nullptr_t)
|
| 461 |
+
{
|
| 462 |
+
__destroy();
|
| 463 |
+
return *this;
|
| 464 |
+
}
|
| 465 |
+
|
| 466 |
+
#pragma nv_exec_check_disable
|
| 467 |
+
template<class _F>
|
| 468 |
+
__device__ __host__
|
| 469 |
+
function&
|
| 470 |
+
operator=(_F&& __fn)
|
| 471 |
+
{
|
| 472 |
+
static_assert(__check_callability<_F>::value,
|
| 473 |
+
"Unable to create functor object!");
|
| 474 |
+
function(internal::forward<_F>(__fn)).swap(*this);
|
| 475 |
+
return *this;
|
| 476 |
+
}
|
| 477 |
+
|
| 478 |
+
#pragma nv_exec_check_disable
|
| 479 |
+
__device__ __host__
|
| 480 |
+
~function()
|
| 481 |
+
{
|
| 482 |
+
__destroy();
|
| 483 |
+
}
|
| 484 |
+
|
| 485 |
+
// 20.8.11.2.2 function modifiers [func.wrap.func.mod]
|
| 486 |
+
#pragma nv_exec_check_disable
|
| 487 |
+
__device__ __host__
|
| 488 |
+
void swap(function& __fn) __NV_NOEXCEPT
|
| 489 |
+
{
|
| 490 |
+
internal::swap(__meta_fn, __fn.__meta_fn);
|
| 491 |
+
internal::swap(__cloner, __fn.__cloner);
|
| 492 |
+
internal::swap(__destructor, __fn.__destructor);
|
| 493 |
+
|
| 494 |
+
if (__is_small_functor_data() && __fn.__is_small_functor_data()) {
|
| 495 |
+
internal::swap(__small_functor_data, __fn.__small_functor_data);
|
| 496 |
+
}
|
| 497 |
+
else if (__is_small_functor_data()) {
|
| 498 |
+
internal::swap(__small_functor_data, __fn.__small_functor_data);
|
| 499 |
+
internal::swap(__obj, __fn.__obj);
|
| 500 |
+
__fn.__obj = __fn.__get_small_functor_data();
|
| 501 |
+
}
|
| 502 |
+
else if (__fn.__is_small_functor_data()) {
|
| 503 |
+
internal::swap(__small_functor_data, __fn.__small_functor_data);
|
| 504 |
+
internal::swap(__obj, __fn.__obj);
|
| 505 |
+
__obj = __get_small_functor_data();
|
| 506 |
+
}
|
| 507 |
+
else {
|
| 508 |
+
internal::swap(__obj, __fn.__obj);
|
| 509 |
+
}
|
| 510 |
+
}
|
| 511 |
+
|
| 512 |
+
// 20.8.11.2.3 function capacity [func.wrap.func.cap]
|
| 513 |
+
#pragma nv_exec_check_disable
|
| 514 |
+
__device__ __host__
|
| 515 |
+
explicit operator bool() const __NV_NOEXCEPT
|
| 516 |
+
{
|
| 517 |
+
return __obj;
|
| 518 |
+
}
|
| 519 |
+
|
| 520 |
+
// 20.8.11.2.4 function invocation [func.wrap.func.inv]
|
| 521 |
+
// function::operator() can only be called in device code
|
| 522 |
+
// to avoid cross-execution space calls
|
| 523 |
+
#pragma nv_exec_check_disable
|
| 524 |
+
__device__ __host__
|
| 525 |
+
_RetType operator()(_ArgTypes...) const;
|
| 526 |
+
|
| 527 |
+
};
|
| 528 |
+
|
| 529 |
+
// Out-of-line definitions
|
| 530 |
+
#pragma nv_exec_check_disable
|
| 531 |
+
template<class _RetType, class... _ArgTypes>
|
| 532 |
+
template<class _F>
|
| 533 |
+
__device__ __host__
|
| 534 |
+
function<_RetType(_ArgTypes...)>::function(_F __fn)
|
| 535 |
+
: __obj(0), __meta_fn(0), __cloner(0), __destructor(0)
|
| 536 |
+
{
|
| 537 |
+
static_assert(__check_callability<_F>::value,
|
| 538 |
+
"Unable to construct functor object!");
|
| 539 |
+
if (__is_empty_functor(__fn))
|
| 540 |
+
return;
|
| 541 |
+
__meta_fn = &__make_functor<_RetType, _F, _ArgTypes...>::__invoke;
|
| 542 |
+
__cloner = &__make_cloner<_F>::__clone_data;
|
| 543 |
+
__destructor = &__make_destructor<_F>::__destruct;
|
| 544 |
+
|
| 545 |
+
if (__use_small_functor_data<_F>()) {
|
| 546 |
+
__obj = __get_small_functor_data();
|
| 547 |
+
new ((void*)__obj) _F(internal::move(__fn));
|
| 548 |
+
}
|
| 549 |
+
else {
|
| 550 |
+
__obj = new _F(internal::move(__fn));
|
| 551 |
+
}
|
| 552 |
+
}
|
| 553 |
+
|
| 554 |
+
#pragma nv_exec_check_disable
|
| 555 |
+
template <class _RetType, class..._ArgTypes>
|
| 556 |
+
__device__ __host__
|
| 557 |
+
_RetType
|
| 558 |
+
function<_RetType(_ArgTypes...)>::operator()(_ArgTypes... __args) const
|
| 559 |
+
{
|
| 560 |
+
return __meta_fn(__obj, internal::forward<_ArgTypes>(__args)...);
|
| 561 |
+
}
|
| 562 |
+
|
| 563 |
+
// 20.8.11.2.6, Null pointer comparisons:
|
| 564 |
+
|
| 565 |
+
#pragma nv_exec_check_disable
|
| 566 |
+
template <class _R, class... _ArgTypes>
|
| 567 |
+
__device__ __host__
|
| 568 |
+
bool operator==(const function<_R(_ArgTypes...)>& __fn, std::nullptr_t)
|
| 569 |
+
__NV_NOEXCEPT
|
| 570 |
+
{
|
| 571 |
+
return !__fn;
|
| 572 |
+
}
|
| 573 |
+
|
| 574 |
+
#pragma nv_exec_check_disable
|
| 575 |
+
template <class _R, class... _ArgTypes>
|
| 576 |
+
__device__ __host__
|
| 577 |
+
bool operator==(std::nullptr_t, const function<_R(_ArgTypes...)>& __fn)
|
| 578 |
+
__NV_NOEXCEPT
|
| 579 |
+
{
|
| 580 |
+
return !__fn;
|
| 581 |
+
}
|
| 582 |
+
|
| 583 |
+
#pragma nv_exec_check_disable
|
| 584 |
+
template <class _R, class... _ArgTypes>
|
| 585 |
+
__device__ __host__
|
| 586 |
+
bool operator!=(const function<_R(_ArgTypes...)>& __fn, std::nullptr_t)
|
| 587 |
+
__NV_NOEXCEPT
|
| 588 |
+
{
|
| 589 |
+
return static_cast<bool>(__fn);
|
| 590 |
+
}
|
| 591 |
+
|
| 592 |
+
#pragma nv_exec_check_disable
|
| 593 |
+
template <class _R, class... _ArgTypes>
|
| 594 |
+
__device__ __host__
|
| 595 |
+
bool operator!=(std::nullptr_t, const function<_R(_ArgTypes...)>& __fn)
|
| 596 |
+
__NV_NOEXCEPT
|
| 597 |
+
{
|
| 598 |
+
return static_cast<bool>(__fn);
|
| 599 |
+
}
|
| 600 |
+
|
| 601 |
+
// 20.8.11.2.7, specialized algorithms:
|
| 602 |
+
#pragma nv_exec_check_disable
|
| 603 |
+
template <class _R, class... _ArgTypes>
|
| 604 |
+
__device__ __host__
|
| 605 |
+
void swap(function<_R(_ArgTypes...)>& __fn1, function<_R(_ArgTypes...)>& __fn2)
|
| 606 |
+
{
|
| 607 |
+
__fn1.swap(__fn2);
|
| 608 |
+
}
|
| 609 |
+
|
| 610 |
+
} // namespace nvstd
|
| 611 |
+
|
| 612 |
+
#undef __NV_NOEXCEPT
|
| 613 |
+
#undef __NV_CONSTEXPR
|
| 614 |
+
#undef __NV_ALIGNOF
|
| 615 |
+
|
| 616 |
+
#endif // __NV_LIBCXX_FUNCTIONAL_H__
|
| 617 |
+
|
| 618 |
+
#if defined(__UNDEF_CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS_NV_LIBCXX_FUNCTIONAL_H__)
|
| 619 |
+
#undef __CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS__
|
| 620 |
+
#undef __UNDEF_CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS_NV_LIBCXX_FUNCTIONAL_H__
|
| 621 |
+
#endif
|
data/miniconda3/pkgs/cuda-crt-dev_linux-64-12.8.93-h06a4308_3/targets/x86_64-linux/include/crt/sm_100_rt.h
ADDED
|
@@ -0,0 +1,252 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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property rights under U.S. and
|
| 8 |
+
* international Copyright laws.
|
| 9 |
+
*
|
| 10 |
+
* These Licensed Deliverables contained herein is PROPRIETARY and
|
| 11 |
+
* CONFIDENTIAL to NVIDIA and is being provided under the terms and
|
| 12 |
+
* conditions of a form of NVIDIA software license agreement by and
|
| 13 |
+
* between NVIDIA and Licensee ("License Agreement") or electronically
|
| 14 |
+
* accepted by Licensee. Notwithstanding any terms or conditions to
|
| 15 |
+
* the contrary in the License Agreement, reproduction or disclosure
|
| 16 |
+
* of the Licensed Deliverables to any third party without the express
|
| 17 |
+
* written consent of NVIDIA is prohibited.
|
| 18 |
+
*
|
| 19 |
+
* NOTWITHSTANDING ANY TERMS OR CONDITIONS TO THE CONTRARY IN THE
|
| 20 |
+
* LICENSE AGREEMENT, NVIDIA MAKES NO REPRESENTATION ABOUT THE
|
| 21 |
+
* SUITABILITY OF THESE LICENSED DELIVERABLES FOR ANY PURPOSE. IT IS
|
| 22 |
+
* PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY OF ANY KIND.
|
| 23 |
+
* NVIDIA DISCLAIMS ALL WARRANTIES WITH REGARD TO THESE LICENSED
|
| 24 |
+
* DELIVERABLES, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY,
|
| 25 |
+
* NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE.
|
| 26 |
+
* NOTWITHSTANDING ANY TERMS OR CONDITIONS TO THE CONTRARY IN THE
|
| 27 |
+
* LICENSE AGREEMENT, IN NO EVENT SHALL NVIDIA BE LIABLE FOR ANY
|
| 28 |
+
* SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, OR ANY
|
| 29 |
+
* DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
|
| 30 |
+
* WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
|
| 31 |
+
* ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
|
| 32 |
+
* OF THESE LICENSED DELIVERABLES.
|
| 33 |
+
*
|
| 34 |
+
* U.S. Government End Users. These Licensed Deliverables are a
|
| 35 |
+
* "commercial item" as that term is defined at 48 C.F.R. 2.101 (OCT
|
| 36 |
+
* 1995), consisting of "commercial computer software" and "commercial
|
| 37 |
+
* computer software documentation" as such terms are used in 48
|
| 38 |
+
* C.F.R. 12.212 (SEPT 1995) and is provided to the U.S. Government
|
| 39 |
+
* only as a commercial end item. Consistent with 48 C.F.R.12.212 and
|
| 40 |
+
* 48 C.F.R. 227.7202-1 through 227.7202-4 (JUNE 1995), all
|
| 41 |
+
* U.S. Government End Users acquire the Licensed Deliverables with
|
| 42 |
+
* only those rights set forth herein.
|
| 43 |
+
*
|
| 44 |
+
* Any use of the Licensed Deliverables in individual and commercial
|
| 45 |
+
* software must include, in the user documentation and internal
|
| 46 |
+
* comments to the code, the above Disclaimer and U.S. Government End
|
| 47 |
+
* Users Notice.
|
| 48 |
+
*/
|
| 49 |
+
|
| 50 |
+
#if !defined(__CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS__)
|
| 51 |
+
#if defined(_MSC_VER)
|
| 52 |
+
#pragma message("crt/sm_100_rt.h is an internal header file and must not be used directly. Please use cuda_runtime_api.h or cuda_runtime.h instead.")
|
| 53 |
+
#else
|
| 54 |
+
#warning "crt/sm_100_rt.h is an internal header file and must not be used directly. Please use cuda_runtime_api.h or cuda_runtime.h instead."
|
| 55 |
+
#endif
|
| 56 |
+
#define __CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS__
|
| 57 |
+
#define __UNDEF_CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS_SM_100_RT_H__
|
| 58 |
+
#endif
|
| 59 |
+
|
| 60 |
+
#if !defined(__SM_100_RT_H__)
|
| 61 |
+
#define __SM_100_RT_H__
|
| 62 |
+
|
| 63 |
+
#if defined(__CUDACC_RTC__)
|
| 64 |
+
#define __SM_100_RT_DECL__ __host__ __device__
|
| 65 |
+
#else /* !__CUDACC_RTC__ */
|
| 66 |
+
#define __SM_100_RT_DECL__ static __device__ __inline__
|
| 67 |
+
#endif /* __CUDACC_RTC__ */
|
| 68 |
+
|
| 69 |
+
#if defined(__cplusplus) && defined(__CUDACC__)
|
| 70 |
+
|
| 71 |
+
#if !defined(__CUDA_ARCH__) || __CUDA_ARCH__ >= 1000
|
| 72 |
+
|
| 73 |
+
/*******************************************************************************
|
| 74 |
+
* *
|
| 75 |
+
* *
|
| 76 |
+
* *
|
| 77 |
+
*******************************************************************************/
|
| 78 |
+
|
| 79 |
+
#include "builtin_types.h"
|
| 80 |
+
#include "device_types.h"
|
| 81 |
+
#include "host_defines.h"
|
| 82 |
+
|
| 83 |
+
#if !defined(__CUDA_ARCH__) && !defined(_NVHPC_CUDA)
|
| 84 |
+
#define __DEF_IF_HOST { }
|
| 85 |
+
#else /* !__CUDA_ARCH__ && !_NVHPC_CUDA */
|
| 86 |
+
#define __DEF_IF_HOST ;
|
| 87 |
+
#endif /* __CUDA_ARCH__ || _NVHPC_CUDA */
|
| 88 |
+
|
| 89 |
+
/**
|
| 90 |
+
* \ingroup CUDA_MATH_INTRINSIC_SINGLE
|
| 91 |
+
* \brief Compute vector fused multiply-add operation
|
| 92 |
+
* \cuda_math_formula x \times y + z \end_cuda_math_formula
|
| 93 |
+
* in round-to-nearest-even mode.
|
| 94 |
+
*
|
| 95 |
+
* Numeric behavior per component is the same as ::__fmaf_rn().
|
| 96 |
+
*
|
| 97 |
+
* \note_requires_sm100
|
| 98 |
+
* \note_float2_perf
|
| 99 |
+
*/
|
| 100 |
+
__SM_100_RT_DECL__ float2 __ffma2_rn(float2 x, float2 y, float2 z) __DEF_IF_HOST
|
| 101 |
+
/**
|
| 102 |
+
* \ingroup CUDA_MATH_INTRINSIC_SINGLE
|
| 103 |
+
* \brief Compute vector fused multiply-add operation
|
| 104 |
+
* \cuda_math_formula x \times y + z \end_cuda_math_formula
|
| 105 |
+
* in round-towards-zero mode.
|
| 106 |
+
*
|
| 107 |
+
* Numeric behavior per component is the same as ::__fmaf_rz().
|
| 108 |
+
*
|
| 109 |
+
* \note_requires_sm100
|
| 110 |
+
* \note_float2_perf
|
| 111 |
+
*/
|
| 112 |
+
__SM_100_RT_DECL__ float2 __ffma2_rz(float2 x, float2 y, float2 z) __DEF_IF_HOST
|
| 113 |
+
/**
|
| 114 |
+
* \ingroup CUDA_MATH_INTRINSIC_SINGLE
|
| 115 |
+
* \brief Compute vector fused multiply-add operation
|
| 116 |
+
* \cuda_math_formula x \times y + z \end_cuda_math_formula
|
| 117 |
+
* in round-down mode.
|
| 118 |
+
*
|
| 119 |
+
* Numeric behavior per component is the same as ::__fmaf_rd().
|
| 120 |
+
*
|
| 121 |
+
* \note_requires_sm100
|
| 122 |
+
* \note_float2_perf
|
| 123 |
+
*/
|
| 124 |
+
__SM_100_RT_DECL__ float2 __ffma2_rd(float2 x, float2 y, float2 z) __DEF_IF_HOST
|
| 125 |
+
/**
|
| 126 |
+
* \ingroup CUDA_MATH_INTRINSIC_SINGLE
|
| 127 |
+
* \brief Compute vector fused multiply-add operation
|
| 128 |
+
* \cuda_math_formula x \times y + z \end_cuda_math_formula
|
| 129 |
+
* in round-up mode.
|
| 130 |
+
*
|
| 131 |
+
* Numeric behavior per component is the same as ::__fmaf_ru().
|
| 132 |
+
*
|
| 133 |
+
* \note_requires_sm100
|
| 134 |
+
* \note_float2_perf
|
| 135 |
+
*/
|
| 136 |
+
__SM_100_RT_DECL__ float2 __ffma2_ru(float2 x, float2 y, float2 z) __DEF_IF_HOST
|
| 137 |
+
|
| 138 |
+
/**
|
| 139 |
+
* \ingroup CUDA_MATH_INTRINSIC_SINGLE
|
| 140 |
+
* \brief Compute vector add operation
|
| 141 |
+
* \cuda_math_formula x + y \end_cuda_math_formula
|
| 142 |
+
* in round-to-nearest-even mode.
|
| 143 |
+
*
|
| 144 |
+
* Numeric behavior per component is the same as ::__fadd_rn().
|
| 145 |
+
*
|
| 146 |
+
* \note_requires_sm100
|
| 147 |
+
* \note_float2_perf
|
| 148 |
+
*/
|
| 149 |
+
__SM_100_RT_DECL__ float2 __fadd2_rn(float2 x, float2 y) __DEF_IF_HOST
|
| 150 |
+
/**
|
| 151 |
+
* \ingroup CUDA_MATH_INTRINSIC_SINGLE
|
| 152 |
+
* \brief Compute vector add operation
|
| 153 |
+
* \cuda_math_formula x + y \end_cuda_math_formula
|
| 154 |
+
* in round-towards-zero mode.
|
| 155 |
+
*
|
| 156 |
+
* Numeric behavior per component is the same as ::__fadd_rz().
|
| 157 |
+
*
|
| 158 |
+
* \note_requires_sm100
|
| 159 |
+
* \note_float2_perf
|
| 160 |
+
*/
|
| 161 |
+
__SM_100_RT_DECL__ float2 __fadd2_rz(float2 x, float2 y) __DEF_IF_HOST
|
| 162 |
+
/**
|
| 163 |
+
* \ingroup CUDA_MATH_INTRINSIC_SINGLE
|
| 164 |
+
* \brief Compute vector add operation
|
| 165 |
+
* \cuda_math_formula x + y \end_cuda_math_formula
|
| 166 |
+
* in round-down mode.
|
| 167 |
+
*
|
| 168 |
+
* Numeric behavior per component is the same as ::__fadd_rd().
|
| 169 |
+
*
|
| 170 |
+
* \note_requires_sm100
|
| 171 |
+
* \note_float2_perf
|
| 172 |
+
*/
|
| 173 |
+
__SM_100_RT_DECL__ float2 __fadd2_rd(float2 x, float2 y) __DEF_IF_HOST
|
| 174 |
+
/**
|
| 175 |
+
* \ingroup CUDA_MATH_INTRINSIC_SINGLE
|
| 176 |
+
* \brief Compute vector add operation
|
| 177 |
+
* \cuda_math_formula x + y \end_cuda_math_formula
|
| 178 |
+
* in round-up mode.
|
| 179 |
+
*
|
| 180 |
+
* Numeric behavior per component is the same as ::__fadd_ru().
|
| 181 |
+
*
|
| 182 |
+
* \note_requires_sm100
|
| 183 |
+
* \note_float2_perf
|
| 184 |
+
*/
|
| 185 |
+
__SM_100_RT_DECL__ float2 __fadd2_ru(float2 x, float2 y) __DEF_IF_HOST
|
| 186 |
+
|
| 187 |
+
/**
|
| 188 |
+
* \ingroup CUDA_MATH_INTRINSIC_SINGLE
|
| 189 |
+
* \brief Compute vector multiply operation
|
| 190 |
+
* \cuda_math_formula x \times y \end_cuda_math_formula
|
| 191 |
+
* in round-to-nearest-even mode.
|
| 192 |
+
*
|
| 193 |
+
* Numeric behavior per component is the same as ::__fmul_rn().
|
| 194 |
+
*
|
| 195 |
+
* \note_requires_sm100
|
| 196 |
+
* \note_float2_perf
|
| 197 |
+
*/
|
| 198 |
+
__SM_100_RT_DECL__ float2 __fmul2_rn(float2 x, float2 y) __DEF_IF_HOST
|
| 199 |
+
/**
|
| 200 |
+
* \ingroup CUDA_MATH_INTRINSIC_SINGLE
|
| 201 |
+
* \brief Compute vector multiply operation
|
| 202 |
+
* \cuda_math_formula x \times y \end_cuda_math_formula
|
| 203 |
+
* in round-towards-zero mode.
|
| 204 |
+
*
|
| 205 |
+
* Numeric behavior per component is the same as ::__fmul_rz().
|
| 206 |
+
*
|
| 207 |
+
* \note_requires_sm100
|
| 208 |
+
* \note_float2_perf
|
| 209 |
+
*/
|
| 210 |
+
__SM_100_RT_DECL__ float2 __fmul2_rz(float2 x, float2 y) __DEF_IF_HOST
|
| 211 |
+
/**
|
| 212 |
+
* \ingroup CUDA_MATH_INTRINSIC_SINGLE
|
| 213 |
+
* \brief Compute vector multiply operation
|
| 214 |
+
* \cuda_math_formula x \times y \end_cuda_math_formula
|
| 215 |
+
* in round-down mode.
|
| 216 |
+
*
|
| 217 |
+
* Numeric behavior per component is the same as ::__fmul_rd().
|
| 218 |
+
*
|
| 219 |
+
* \note_requires_sm100
|
| 220 |
+
* \note_float2_perf
|
| 221 |
+
*/
|
| 222 |
+
__SM_100_RT_DECL__ float2 __fmul2_rd(float2 x, float2 y) __DEF_IF_HOST
|
| 223 |
+
/**
|
| 224 |
+
* \ingroup CUDA_MATH_INTRINSIC_SINGLE
|
| 225 |
+
* \brief Compute vector multiply operation
|
| 226 |
+
* \cuda_math_formula x \times y \end_cuda_math_formula
|
| 227 |
+
* in round-up mode.
|
| 228 |
+
*
|
| 229 |
+
* Numeric behavior per component is the same as ::__fmul_ru().
|
| 230 |
+
*
|
| 231 |
+
* \note_requires_sm100
|
| 232 |
+
* \note_float2_perf
|
| 233 |
+
*/
|
| 234 |
+
__SM_100_RT_DECL__ float2 __fmul2_ru(float2 x, float2 y) __DEF_IF_HOST
|
| 235 |
+
|
| 236 |
+
#endif /* !__CUDA_ARCH__ || __CUDA_ARCH__ >= 1000 */
|
| 237 |
+
|
| 238 |
+
#endif /* __cplusplus && __CUDACC__ */
|
| 239 |
+
|
| 240 |
+
#undef __DEF_IF_HOST
|
| 241 |
+
#undef __SM_100_RT_DECL__
|
| 242 |
+
|
| 243 |
+
#if (!defined(__CUDACC_RTC__) && defined(__CUDA_ARCH__)) || defined(_NVHPC_CUDA)
|
| 244 |
+
#include "sm_100_rt.hpp"
|
| 245 |
+
#endif /* (!defined(__CUDACC_RTC__) && defined(__CUDA_ARCH__)) || defined(_NVHPC_CUDA) */
|
| 246 |
+
|
| 247 |
+
#endif /* !__SM_100_RT_H__ */
|
| 248 |
+
|
| 249 |
+
#if defined(__UNDEF_CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS_SM_100_RT_H__)
|
| 250 |
+
#undef __CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS__
|
| 251 |
+
#undef __UNDEF_CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS_SM_100_RT_H__
|
| 252 |
+
#endif
|
data/miniconda3/pkgs/cuda-crt-dev_linux-64-12.8.93-h06a4308_3/targets/x86_64-linux/include/crt/sm_100_rt.hpp
ADDED
|
@@ -0,0 +1,157 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
* Copyright 2024 NVIDIA Corporation. All rights reserved.
|
| 3 |
+
*
|
| 4 |
+
* NOTICE TO LICENSEE:
|
| 5 |
+
*
|
| 6 |
+
* This source code and/or documentation ("Licensed Deliverables") are
|
| 7 |
+
* subject to NVIDIA intellectual property rights under U.S. and
|
| 8 |
+
* international Copyright laws.
|
| 9 |
+
*
|
| 10 |
+
* These Licensed Deliverables contained herein is PROPRIETARY and
|
| 11 |
+
* CONFIDENTIAL to NVIDIA and is being provided under the terms and
|
| 12 |
+
* conditions of a form of NVIDIA software license agreement by and
|
| 13 |
+
* between NVIDIA and Licensee ("License Agreement") or electronically
|
| 14 |
+
* accepted by Licensee. Notwithstanding any terms or conditions to
|
| 15 |
+
* the contrary in the License Agreement, reproduction or disclosure
|
| 16 |
+
* of the Licensed Deliverables to any third party without the express
|
| 17 |
+
* written consent of NVIDIA is prohibited.
|
| 18 |
+
*
|
| 19 |
+
* NOTWITHSTANDING ANY TERMS OR CONDITIONS TO THE CONTRARY IN THE
|
| 20 |
+
* LICENSE AGREEMENT, NVIDIA MAKES NO REPRESENTATION ABOUT THE
|
| 21 |
+
* SUITABILITY OF THESE LICENSED DELIVERABLES FOR ANY PURPOSE. IT IS
|
| 22 |
+
* PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY OF ANY KIND.
|
| 23 |
+
* NVIDIA DISCLAIMS ALL WARRANTIES WITH REGARD TO THESE LICENSED
|
| 24 |
+
* DELIVERABLES, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY,
|
| 25 |
+
* NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE.
|
| 26 |
+
* NOTWITHSTANDING ANY TERMS OR CONDITIONS TO THE CONTRARY IN THE
|
| 27 |
+
* LICENSE AGREEMENT, IN NO EVENT SHALL NVIDIA BE LIABLE FOR ANY
|
| 28 |
+
* SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, OR ANY
|
| 29 |
+
* DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
|
| 30 |
+
* WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
|
| 31 |
+
* ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
|
| 32 |
+
* OF THESE LICENSED DELIVERABLES.
|
| 33 |
+
*
|
| 34 |
+
* U.S. Government End Users. These Licensed Deliverables are a
|
| 35 |
+
* "commercial item" as that term is defined at 48 C.F.R. 2.101 (OCT
|
| 36 |
+
* 1995), consisting of "commercial computer software" and "commercial
|
| 37 |
+
* computer software documentation" as such terms are used in 48
|
| 38 |
+
* C.F.R. 12.212 (SEPT 1995) and is provided to the U.S. Government
|
| 39 |
+
* only as a commercial end item. Consistent with 48 C.F.R.12.212 and
|
| 40 |
+
* 48 C.F.R. 227.7202-1 through 227.7202-4 (JUNE 1995), all
|
| 41 |
+
* U.S. Government End Users acquire the Licensed Deliverables with
|
| 42 |
+
* only those rights set forth herein.
|
| 43 |
+
*
|
| 44 |
+
* Any use of the Licensed Deliverables in individual and commercial
|
| 45 |
+
* software must include, in the user documentation and internal
|
| 46 |
+
* comments to the code, the above Disclaimer and U.S. Government End
|
| 47 |
+
* Users Notice.
|
| 48 |
+
*/
|
| 49 |
+
|
| 50 |
+
#if !defined(__CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS__)
|
| 51 |
+
#if defined(_MSC_VER)
|
| 52 |
+
#pragma message("crt/sm_100_rt.hpp is an internal header file and must not be used directly. Please use cuda_runtime_api.h or cuda_runtime.h instead.")
|
| 53 |
+
#else
|
| 54 |
+
#warning "crt/sm_100_rt.hpp is an internal header file and must not be used directly. Please use cuda_runtime_api.h or cuda_runtime.h instead."
|
| 55 |
+
#endif
|
| 56 |
+
#define __CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS__
|
| 57 |
+
#define __UNDEF_CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS_SM_100_RT_HPP__
|
| 58 |
+
#endif
|
| 59 |
+
|
| 60 |
+
#if !defined(__SM_100_RT_HPP__)
|
| 61 |
+
#define __SM_100_RT_HPP__
|
| 62 |
+
|
| 63 |
+
#if defined(__CUDACC_RTC__)
|
| 64 |
+
#define __SM_100_RT_DECL__ __host__ __device__
|
| 65 |
+
#else /* !__CUDACC_RTC__ */
|
| 66 |
+
#define __SM_100_RT_DECL__ static __device__ __inline__
|
| 67 |
+
#endif /* __CUDACC_RTC__ */
|
| 68 |
+
|
| 69 |
+
#if defined(__cplusplus) && defined(__CUDACC__)
|
| 70 |
+
|
| 71 |
+
#if !defined(__CUDA_ARCH__) || __CUDA_ARCH__ >= 1000
|
| 72 |
+
|
| 73 |
+
/*******************************************************************************
|
| 74 |
+
* *
|
| 75 |
+
* *
|
| 76 |
+
* *
|
| 77 |
+
*******************************************************************************/
|
| 78 |
+
|
| 79 |
+
#include "builtin_types.h"
|
| 80 |
+
#include "device_types.h"
|
| 81 |
+
#include "host_defines.h"
|
| 82 |
+
|
| 83 |
+
/*******************************************************************************
|
| 84 |
+
* *
|
| 85 |
+
* Below are implementations of SM-10.0 builtin functions which are included *
|
| 86 |
+
* as source (instead of being built in to the compiler) *
|
| 87 |
+
* *
|
| 88 |
+
*******************************************************************************/
|
| 89 |
+
|
| 90 |
+
extern "C" {
|
| 91 |
+
__device__ __device_builtin__ float2 __ffma2_rn_impl(float2 x, float2 y, float2 z);
|
| 92 |
+
__device__ __device_builtin__ float2 __ffma2_rz_impl(float2 x, float2 y, float2 z);
|
| 93 |
+
__device__ __device_builtin__ float2 __ffma2_rd_impl(float2 x, float2 y, float2 z);
|
| 94 |
+
__device__ __device_builtin__ float2 __ffma2_ru_impl(float2 x, float2 y, float2 z);
|
| 95 |
+
|
| 96 |
+
__device__ __device_builtin__ float2 __fadd2_rn_impl(float2 x, float2 y);
|
| 97 |
+
__device__ __device_builtin__ float2 __fadd2_rz_impl(float2 x, float2 y);
|
| 98 |
+
__device__ __device_builtin__ float2 __fadd2_rd_impl(float2 x, float2 y);
|
| 99 |
+
__device__ __device_builtin__ float2 __fadd2_ru_impl(float2 x, float2 y);
|
| 100 |
+
|
| 101 |
+
__device__ __device_builtin__ float2 __fmul2_rn_impl(float2 x, float2 y);
|
| 102 |
+
__device__ __device_builtin__ float2 __fmul2_rz_impl(float2 x, float2 y);
|
| 103 |
+
__device__ __device_builtin__ float2 __fmul2_rd_impl(float2 x, float2 y);
|
| 104 |
+
__device__ __device_builtin__ float2 __fmul2_ru_impl(float2 x, float2 y);
|
| 105 |
+
} // extern "C"
|
| 106 |
+
|
| 107 |
+
__SM_100_RT_DECL__ float2 __ffma2_rn(float2 x, float2 y, float2 z) {
|
| 108 |
+
return __ffma2_rn_impl(x, y, z);
|
| 109 |
+
}
|
| 110 |
+
__SM_100_RT_DECL__ float2 __ffma2_rz(float2 x, float2 y, float2 z) {
|
| 111 |
+
return __ffma2_rz_impl(x, y, z);
|
| 112 |
+
}
|
| 113 |
+
__SM_100_RT_DECL__ float2 __ffma2_rd(float2 x, float2 y, float2 z) {
|
| 114 |
+
return __ffma2_rd_impl(x, y, z);
|
| 115 |
+
}
|
| 116 |
+
__SM_100_RT_DECL__ float2 __ffma2_ru(float2 x, float2 y, float2 z) {
|
| 117 |
+
return __ffma2_ru_impl(x, y, z);
|
| 118 |
+
}
|
| 119 |
+
|
| 120 |
+
__SM_100_RT_DECL__ float2 __fadd2_rn(float2 x, float2 y) {
|
| 121 |
+
return __fadd2_rn_impl(x, y);
|
| 122 |
+
}
|
| 123 |
+
__SM_100_RT_DECL__ float2 __fadd2_rz(float2 x, float2 y) {
|
| 124 |
+
return __fadd2_rz_impl(x, y);
|
| 125 |
+
}
|
| 126 |
+
__SM_100_RT_DECL__ float2 __fadd2_rd(float2 x, float2 y) {
|
| 127 |
+
return __fadd2_rd_impl(x, y);
|
| 128 |
+
}
|
| 129 |
+
__SM_100_RT_DECL__ float2 __fadd2_ru(float2 x, float2 y) {
|
| 130 |
+
return __fadd2_ru_impl(x, y);
|
| 131 |
+
}
|
| 132 |
+
|
| 133 |
+
__SM_100_RT_DECL__ float2 __fmul2_rn(float2 x, float2 y) {
|
| 134 |
+
return __fmul2_rn_impl(x, y);
|
| 135 |
+
}
|
| 136 |
+
__SM_100_RT_DECL__ float2 __fmul2_rz(float2 x, float2 y) {
|
| 137 |
+
return __fmul2_rz_impl(x, y);
|
| 138 |
+
}
|
| 139 |
+
__SM_100_RT_DECL__ float2 __fmul2_rd(float2 x, float2 y) {
|
| 140 |
+
return __fmul2_rd_impl(x, y);
|
| 141 |
+
}
|
| 142 |
+
__SM_100_RT_DECL__ float2 __fmul2_ru(float2 x, float2 y) {
|
| 143 |
+
return __fmul2_ru_impl(x, y);
|
| 144 |
+
}
|
| 145 |
+
|
| 146 |
+
#endif /* !__CUDA_ARCH__ || __CUDA_ARCH__ >= 1000 */
|
| 147 |
+
|
| 148 |
+
#endif /* __cplusplus && __CUDACC__ */
|
| 149 |
+
|
| 150 |
+
#undef __SM_100_RT_DECL__
|
| 151 |
+
|
| 152 |
+
#endif /* !__SM_100_RT_HPP__ */
|
| 153 |
+
|
| 154 |
+
#if defined(__UNDEF_CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS_SM_100_RT_HPP__)
|
| 155 |
+
#undef __CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS__
|
| 156 |
+
#undef __UNDEF_CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS_SM_100_RT_HPP__
|
| 157 |
+
#endif
|
data/miniconda3/pkgs/cuda-crt-dev_linux-64-12.8.93-h06a4308_3/targets/x86_64-linux/include/crt/sm_70_rt.h
ADDED
|
@@ -0,0 +1,139 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
* Copyright 2017-2018 NVIDIA Corporation. All rights reserved.
|
| 3 |
+
*
|
| 4 |
+
* NOTICE TO LICENSEE:
|
| 5 |
+
*
|
| 6 |
+
* This source code and/or documentation ("Licensed Deliverables") are
|
| 7 |
+
* subject to NVIDIA intellectual property rights under U.S. and
|
| 8 |
+
* international Copyright laws.
|
| 9 |
+
*
|
| 10 |
+
* These Licensed Deliverables contained herein is PROPRIETARY and
|
| 11 |
+
* CONFIDENTIAL to NVIDIA and is being provided under the terms and
|
| 12 |
+
* conditions of a form of NVIDIA software license agreement by and
|
| 13 |
+
* between NVIDIA and Licensee ("License Agreement") or electronically
|
| 14 |
+
* accepted by Licensee. Notwithstanding any terms or conditions to
|
| 15 |
+
* the contrary in the License Agreement, reproduction or disclosure
|
| 16 |
+
* of the Licensed Deliverables to any third party without the express
|
| 17 |
+
* written consent of NVIDIA is prohibited.
|
| 18 |
+
*
|
| 19 |
+
* NOTWITHSTANDING ANY TERMS OR CONDITIONS TO THE CONTRARY IN THE
|
| 20 |
+
* LICENSE AGREEMENT, NVIDIA MAKES NO REPRESENTATION ABOUT THE
|
| 21 |
+
* SUITABILITY OF THESE LICENSED DELIVERABLES FOR ANY PURPOSE. IT IS
|
| 22 |
+
* PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY OF ANY KIND.
|
| 23 |
+
* NVIDIA DISCLAIMS ALL WARRANTIES WITH REGARD TO THESE LICENSED
|
| 24 |
+
* DELIVERABLES, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY,
|
| 25 |
+
* NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE.
|
| 26 |
+
* NOTWITHSTANDING ANY TERMS OR CONDITIONS TO THE CONTRARY IN THE
|
| 27 |
+
* LICENSE AGREEMENT, IN NO EVENT SHALL NVIDIA BE LIABLE FOR ANY
|
| 28 |
+
* SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, OR ANY
|
| 29 |
+
* DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
|
| 30 |
+
* WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
|
| 31 |
+
* ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
|
| 32 |
+
* OF THESE LICENSED DELIVERABLES.
|
| 33 |
+
*
|
| 34 |
+
* U.S. Government End Users. These Licensed Deliverables are a
|
| 35 |
+
* "commercial item" as that term is defined at 48 C.F.R. 2.101 (OCT
|
| 36 |
+
* 1995), consisting of "commercial computer software" and "commercial
|
| 37 |
+
* computer software documentation" as such terms are used in 48
|
| 38 |
+
* C.F.R. 12.212 (SEPT 1995) and is provided to the U.S. Government
|
| 39 |
+
* only as a commercial end item. Consistent with 48 C.F.R.12.212 and
|
| 40 |
+
* 48 C.F.R. 227.7202-1 through 227.7202-4 (JUNE 1995), all
|
| 41 |
+
* U.S. Government End Users acquire the Licensed Deliverables with
|
| 42 |
+
* only those rights set forth herein.
|
| 43 |
+
*
|
| 44 |
+
* Any use of the Licensed Deliverables in individual and commercial
|
| 45 |
+
* software must include, in the user documentation and internal
|
| 46 |
+
* comments to the code, the above Disclaimer and U.S. Government End
|
| 47 |
+
* Users Notice.
|
| 48 |
+
*/
|
| 49 |
+
|
| 50 |
+
//NOTE: For NVRTC, these declarations have been moved into the compiler (to reduce compile time)
|
| 51 |
+
#define EXCLUDE_FROM_RTC
|
| 52 |
+
|
| 53 |
+
#if !defined(__CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS__)
|
| 54 |
+
#if defined(_MSC_VER)
|
| 55 |
+
#pragma message("crt/sm_70_rt.h is an internal header file and must not be used directly. Please use cuda_runtime_api.h or cuda_runtime.h instead.")
|
| 56 |
+
#else
|
| 57 |
+
#warning "crt/sm_70_rt.h is an internal header file and must not be used directly. Please use cuda_runtime_api.h or cuda_runtime.h instead."
|
| 58 |
+
#endif
|
| 59 |
+
#define __CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS__
|
| 60 |
+
#define __UNDEF_CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS_SM_70_RT_H__
|
| 61 |
+
#endif
|
| 62 |
+
|
| 63 |
+
#if !defined(__SM_70_RT_H__)
|
| 64 |
+
#define __SM_70_RT_H__
|
| 65 |
+
|
| 66 |
+
#if defined(__CUDACC_RTC__)
|
| 67 |
+
#define __SM_70_RT_DECL__ __host__ __device__
|
| 68 |
+
#elif defined(_NVHPC_CUDA)
|
| 69 |
+
#define __SM_70_RT_DECL__ extern __device__ __cudart_builtin__
|
| 70 |
+
#else /* !__CUDACC_RTC__ */
|
| 71 |
+
#define __SM_70_RT_DECL__ static __device__ __inline__
|
| 72 |
+
#endif /* __CUDACC_RTC__ */
|
| 73 |
+
|
| 74 |
+
#if defined(__cplusplus) && defined(__CUDACC__)
|
| 75 |
+
|
| 76 |
+
#if !defined(__CUDA_ARCH__) || __CUDA_ARCH__ >= 700
|
| 77 |
+
|
| 78 |
+
/*******************************************************************************
|
| 79 |
+
* *
|
| 80 |
+
* *
|
| 81 |
+
* *
|
| 82 |
+
*******************************************************************************/
|
| 83 |
+
|
| 84 |
+
#include "builtin_types.h"
|
| 85 |
+
#include "device_types.h"
|
| 86 |
+
#include "host_defines.h"
|
| 87 |
+
|
| 88 |
+
#if !defined(__CUDA_ARCH__) && !defined(_NVHPC_CUDA)
|
| 89 |
+
#define __DEF_IF_HOST { }
|
| 90 |
+
#else /* !__CUDA_ARCH__ */
|
| 91 |
+
#define __DEF_IF_HOST ;
|
| 92 |
+
#endif /* __CUDA_ARCH__ */
|
| 93 |
+
|
| 94 |
+
|
| 95 |
+
/******************************************************************************
|
| 96 |
+
* match *
|
| 97 |
+
******************************************************************************/
|
| 98 |
+
__SM_70_RT_DECL__ unsigned int __match_any_sync(unsigned mask, unsigned value) __DEF_IF_HOST
|
| 99 |
+
__SM_70_RT_DECL__ unsigned int __match_any_sync(unsigned mask, int value) __DEF_IF_HOST
|
| 100 |
+
__SM_70_RT_DECL__ unsigned int __match_any_sync(unsigned mask, unsigned long value) __DEF_IF_HOST
|
| 101 |
+
__SM_70_RT_DECL__ unsigned int __match_any_sync(unsigned mask, long value) __DEF_IF_HOST
|
| 102 |
+
__SM_70_RT_DECL__ unsigned int __match_any_sync(unsigned mask, unsigned long long value) __DEF_IF_HOST
|
| 103 |
+
__SM_70_RT_DECL__ unsigned int __match_any_sync(unsigned mask, long long value) __DEF_IF_HOST
|
| 104 |
+
__SM_70_RT_DECL__ unsigned int __match_any_sync(unsigned mask, float value) __DEF_IF_HOST
|
| 105 |
+
__SM_70_RT_DECL__ unsigned int __match_any_sync(unsigned mask, double value) __DEF_IF_HOST
|
| 106 |
+
|
| 107 |
+
__SM_70_RT_DECL__ unsigned int __match_all_sync(unsigned mask, unsigned value, int *pred) __DEF_IF_HOST
|
| 108 |
+
__SM_70_RT_DECL__ unsigned int __match_all_sync(unsigned mask, int value, int *pred) __DEF_IF_HOST
|
| 109 |
+
__SM_70_RT_DECL__ unsigned int __match_all_sync(unsigned mask, unsigned long value, int *pred) __DEF_IF_HOST
|
| 110 |
+
__SM_70_RT_DECL__ unsigned int __match_all_sync(unsigned mask, long value, int *pred) __DEF_IF_HOST
|
| 111 |
+
__SM_70_RT_DECL__ unsigned int __match_all_sync(unsigned mask, unsigned long long value, int *pred) __DEF_IF_HOST
|
| 112 |
+
__SM_70_RT_DECL__ unsigned int __match_all_sync(unsigned mask, long long value, int *pred) __DEF_IF_HOST
|
| 113 |
+
__SM_70_RT_DECL__ unsigned int __match_all_sync(unsigned mask, float value, int *pred) __DEF_IF_HOST
|
| 114 |
+
__SM_70_RT_DECL__ unsigned int __match_all_sync(unsigned mask, double value, int *pred) __DEF_IF_HOST
|
| 115 |
+
|
| 116 |
+
__SM_70_RT_DECL__ void __nanosleep(unsigned int ns) __DEF_IF_HOST
|
| 117 |
+
|
| 118 |
+
__SM_70_RT_DECL__ unsigned short int atomicCAS(unsigned short int *address, unsigned short int compare, unsigned short int val) __DEF_IF_HOST
|
| 119 |
+
|
| 120 |
+
#endif /* !__CUDA_ARCH__ || __CUDA_ARCH__ >= 700 */
|
| 121 |
+
|
| 122 |
+
#endif /* __cplusplus && __CUDACC__ */
|
| 123 |
+
|
| 124 |
+
#undef __DEF_IF_HOST
|
| 125 |
+
#undef __SM_70_RT_DECL__
|
| 126 |
+
|
| 127 |
+
#if (!defined(__CUDACC_RTC__) && defined(__CUDA_ARCH__)) || defined(_NVHPC_CUDA)
|
| 128 |
+
#include "sm_70_rt.hpp"
|
| 129 |
+
#endif /* (!defined(__CUDACC_RTC__) && defined(__CUDA_ARCH__)) || defined(_NVHPC_CUDA) */
|
| 130 |
+
|
| 131 |
+
#endif /* !__SM_70_RT_H__ */
|
| 132 |
+
|
| 133 |
+
#if defined(__UNDEF_CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS_SM_70_RT_H__)
|
| 134 |
+
#undef __CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS__
|
| 135 |
+
#undef __UNDEF_CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS_SM_70_RT_H__
|
| 136 |
+
#endif
|
| 137 |
+
|
| 138 |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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
* Copyright 2017-2021 NVIDIA Corporation. All rights reserved.
|
| 3 |
+
*
|
| 4 |
+
* NOTICE TO LICENSEE:
|
| 5 |
+
*
|
| 6 |
+
* This source code and/or documentation ("Licensed Deliverables") are
|
| 7 |
+
* subject to NVIDIA intellectual property rights under U.S. and
|
| 8 |
+
* international Copyright laws.
|
| 9 |
+
*
|
| 10 |
+
* These Licensed Deliverables contained herein is PROPRIETARY and
|
| 11 |
+
* CONFIDENTIAL to NVIDIA and is being provided under the terms and
|
| 12 |
+
* conditions of a form of NVIDIA software license agreement by and
|
| 13 |
+
* between NVIDIA and Licensee ("License Agreement") or electronically
|
| 14 |
+
* accepted by Licensee. Notwithstanding any terms or conditions to
|
| 15 |
+
* the contrary in the License Agreement, reproduction or disclosure
|
| 16 |
+
* of the Licensed Deliverables to any third party without the express
|
| 17 |
+
* written consent of NVIDIA is prohibited.
|
| 18 |
+
*
|
| 19 |
+
* NOTWITHSTANDING ANY TERMS OR CONDITIONS TO THE CONTRARY IN THE
|
| 20 |
+
* LICENSE AGREEMENT, NVIDIA MAKES NO REPRESENTATION ABOUT THE
|
| 21 |
+
* SUITABILITY OF THESE LICENSED DELIVERABLES FOR ANY PURPOSE. IT IS
|
| 22 |
+
* PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY OF ANY KIND.
|
| 23 |
+
* NVIDIA DISCLAIMS ALL WARRANTIES WITH REGARD TO THESE LICENSED
|
| 24 |
+
* DELIVERABLES, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY,
|
| 25 |
+
* NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE.
|
| 26 |
+
* NOTWITHSTANDING ANY TERMS OR CONDITIONS TO THE CONTRARY IN THE
|
| 27 |
+
* LICENSE AGREEMENT, IN NO EVENT SHALL NVIDIA BE LIABLE FOR ANY
|
| 28 |
+
* SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, OR ANY
|
| 29 |
+
* DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
|
| 30 |
+
* WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
|
| 31 |
+
* ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
|
| 32 |
+
* OF THESE LICENSED DELIVERABLES.
|
| 33 |
+
*
|
| 34 |
+
* U.S. Government End Users. These Licensed Deliverables are a
|
| 35 |
+
* "commercial item" as that term is defined at 48 C.F.R. 2.101 (OCT
|
| 36 |
+
* 1995), consisting of "commercial computer software" and "commercial
|
| 37 |
+
* computer software documentation" as such terms are used in 48
|
| 38 |
+
* C.F.R. 12.212 (SEPT 1995) and is provided to the U.S. Government
|
| 39 |
+
* only as a commercial end item. Consistent with 48 C.F.R.12.212 and
|
| 40 |
+
* 48 C.F.R. 227.7202-1 through 227.7202-4 (JUNE 1995), all
|
| 41 |
+
* U.S. Government End Users acquire the Licensed Deliverables with
|
| 42 |
+
* only those rights set forth herein.
|
| 43 |
+
*
|
| 44 |
+
* Any use of the Licensed Deliverables in individual and commercial
|
| 45 |
+
* software must include, in the user documentation and internal
|
| 46 |
+
* comments to the code, the above Disclaimer and U.S. Government End
|
| 47 |
+
* Users Notice.
|
| 48 |
+
*/
|
| 49 |
+
|
| 50 |
+
#if !defined(__CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS__)
|
| 51 |
+
#if defined(_MSC_VER)
|
| 52 |
+
#pragma message("crt/sm_70_rt.hpp is an internal header file and must not be used directly. Please use cuda_runtime_api.h or cuda_runtime.h instead.")
|
| 53 |
+
#else
|
| 54 |
+
#warning "crt/sm_70_rt.hpp is an internal header file and must not be used directly. Please use cuda_runtime_api.h or cuda_runtime.h instead."
|
| 55 |
+
#endif
|
| 56 |
+
#define __CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS__
|
| 57 |
+
#define __UNDEF_CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS_SM_70_RT_HPP__
|
| 58 |
+
#endif
|
| 59 |
+
|
| 60 |
+
#if !defined(__SM_70_RT_HPP__)
|
| 61 |
+
#define __SM_70_RT_HPP__
|
| 62 |
+
|
| 63 |
+
#if defined(__CUDACC_RTC__)
|
| 64 |
+
#define __SM_70_RT_DECL__ __host__ __device__
|
| 65 |
+
#else /* !__CUDACC_RTC__ */
|
| 66 |
+
#define __SM_70_RT_DECL__ static __device__ __inline__
|
| 67 |
+
#endif /* __CUDACC_RTC__ */
|
| 68 |
+
|
| 69 |
+
#if defined(__cplusplus) && defined(__CUDACC__)
|
| 70 |
+
|
| 71 |
+
#if !defined(__CUDA_ARCH__) || __CUDA_ARCH__ >= 700
|
| 72 |
+
|
| 73 |
+
/*******************************************************************************
|
| 74 |
+
* *
|
| 75 |
+
* *
|
| 76 |
+
* *
|
| 77 |
+
*******************************************************************************/
|
| 78 |
+
|
| 79 |
+
#include "builtin_types.h"
|
| 80 |
+
#include "device_types.h"
|
| 81 |
+
#include "host_defines.h"
|
| 82 |
+
|
| 83 |
+
/*******************************************************************************
|
| 84 |
+
* *
|
| 85 |
+
* Below are implementations of SM-7.0 builtin functions which are included as *
|
| 86 |
+
* source (instead of being built in to the compiler) *
|
| 87 |
+
* *
|
| 88 |
+
*******************************************************************************/
|
| 89 |
+
|
| 90 |
+
//
|
| 91 |
+
// __match_any_sync
|
| 92 |
+
//
|
| 93 |
+
__SM_70_RT_DECL__ unsigned int __match_any_sync(unsigned mask, unsigned value) {
|
| 94 |
+
return __match32_any_sync(mask, value);
|
| 95 |
+
}
|
| 96 |
+
|
| 97 |
+
__SM_70_RT_DECL__ unsigned int __match_any_sync(unsigned mask, int value) {
|
| 98 |
+
return __match32_any_sync(mask, value);
|
| 99 |
+
}
|
| 100 |
+
|
| 101 |
+
__SM_70_RT_DECL__ unsigned int __match_any_sync(unsigned mask, unsigned long value) {
|
| 102 |
+
return (sizeof(long) == sizeof(long long)) ?
|
| 103 |
+
__match64_any_sync(mask, (unsigned long long)value):
|
| 104 |
+
__match32_any_sync(mask, (unsigned)value);
|
| 105 |
+
}
|
| 106 |
+
|
| 107 |
+
__SM_70_RT_DECL__ unsigned int __match_any_sync(unsigned mask, long value) {
|
| 108 |
+
return (sizeof(long) == sizeof(long long)) ?
|
| 109 |
+
__match64_any_sync(mask, (unsigned long long)value):
|
| 110 |
+
__match32_any_sync(mask, (unsigned)value);
|
| 111 |
+
}
|
| 112 |
+
|
| 113 |
+
__SM_70_RT_DECL__ unsigned int __match_any_sync(unsigned mask, unsigned long long value) {
|
| 114 |
+
return __match64_any_sync(mask, value);
|
| 115 |
+
}
|
| 116 |
+
|
| 117 |
+
__SM_70_RT_DECL__ unsigned int __match_any_sync(unsigned mask, long long value) {
|
| 118 |
+
return __match64_any_sync(mask, value);
|
| 119 |
+
}
|
| 120 |
+
|
| 121 |
+
__SM_70_RT_DECL__ unsigned int __match_any_sync(unsigned mask, float value) {
|
| 122 |
+
return __match32_any_sync(mask, __float_as_uint(value));
|
| 123 |
+
}
|
| 124 |
+
|
| 125 |
+
__SM_70_RT_DECL__ unsigned int __match_any_sync(unsigned mask, double value) {
|
| 126 |
+
return __match64_any_sync(mask, __double_as_longlong(value));
|
| 127 |
+
}
|
| 128 |
+
|
| 129 |
+
//
|
| 130 |
+
// __match_all_sync
|
| 131 |
+
//
|
| 132 |
+
__SM_70_RT_DECL__ unsigned int __match_all_sync(unsigned mask, unsigned value, int *pred) {
|
| 133 |
+
return __match32_all_sync(mask, value, pred);
|
| 134 |
+
}
|
| 135 |
+
|
| 136 |
+
__SM_70_RT_DECL__ unsigned int __match_all_sync(unsigned mask, int value, int *pred) {
|
| 137 |
+
return __match32_all_sync(mask, value, pred);
|
| 138 |
+
}
|
| 139 |
+
|
| 140 |
+
__SM_70_RT_DECL__ unsigned int __match_all_sync(unsigned mask, unsigned long value, int *pred) {
|
| 141 |
+
return (sizeof(long) == sizeof(long long)) ?
|
| 142 |
+
__match64_all_sync(mask, (unsigned long long)value, pred):
|
| 143 |
+
__match32_all_sync(mask, (unsigned)value, pred);
|
| 144 |
+
}
|
| 145 |
+
|
| 146 |
+
__SM_70_RT_DECL__ unsigned int __match_all_sync(unsigned mask, long value, int *pred) {
|
| 147 |
+
return (sizeof(long) == sizeof(long long)) ?
|
| 148 |
+
__match64_all_sync(mask, (unsigned long long)value, pred):
|
| 149 |
+
__match32_all_sync(mask, (unsigned)value, pred);
|
| 150 |
+
}
|
| 151 |
+
|
| 152 |
+
__SM_70_RT_DECL__ unsigned int __match_all_sync(unsigned mask, unsigned long long value, int *pred) {
|
| 153 |
+
return __match64_all_sync(mask, value, pred);
|
| 154 |
+
}
|
| 155 |
+
|
| 156 |
+
__SM_70_RT_DECL__ unsigned int __match_all_sync(unsigned mask, long long value, int *pred) {
|
| 157 |
+
return __match64_all_sync(mask, value, pred);
|
| 158 |
+
}
|
| 159 |
+
|
| 160 |
+
__SM_70_RT_DECL__ unsigned int __match_all_sync(unsigned mask, float value, int *pred) {
|
| 161 |
+
return __match32_all_sync(mask, __float_as_uint(value), pred);
|
| 162 |
+
}
|
| 163 |
+
|
| 164 |
+
__SM_70_RT_DECL__ unsigned int __match_all_sync(unsigned mask, double value, int *pred) {
|
| 165 |
+
return __match64_all_sync(mask, __double_as_longlong(value), pred);
|
| 166 |
+
}
|
| 167 |
+
|
| 168 |
+
__SM_70_RT_DECL__ void __nanosleep(unsigned int ns) {
|
| 169 |
+
asm volatile("nanosleep.u32 %0;" :: "r"(ns));
|
| 170 |
+
}
|
| 171 |
+
|
| 172 |
+
|
| 173 |
+
extern "C" __device__ __device_builtin__
|
| 174 |
+
unsigned short __usAtomicCAS(unsigned short *, unsigned short, unsigned short);
|
| 175 |
+
|
| 176 |
+
__SM_70_RT_DECL__ unsigned short int atomicCAS(unsigned short int *address, unsigned short int compare, unsigned short int val) {
|
| 177 |
+
return __usAtomicCAS(address, compare, val);
|
| 178 |
+
}
|
| 179 |
+
|
| 180 |
+
|
| 181 |
+
#endif /* !__CUDA_ARCH__ || __CUDA_ARCH__ >= 700 */
|
| 182 |
+
|
| 183 |
+
#endif /* __cplusplus && __CUDACC__ */
|
| 184 |
+
|
| 185 |
+
#undef __SM_70_RT_DECL__
|
| 186 |
+
|
| 187 |
+
#endif /* !__SM_70_RT_HPP__ */
|
| 188 |
+
|
| 189 |
+
#if defined(__UNDEF_CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS_SM_70_RT_HPP__)
|
| 190 |
+
#undef __CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS__
|
| 191 |
+
#undef __UNDEF_CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS_SM_70_RT_HPP__
|
| 192 |
+
#endif
|
data/miniconda3/pkgs/cuda-crt-dev_linux-64-12.8.93-h06a4308_3/targets/x86_64-linux/include/crt/sm_80_rt.h
ADDED
|
@@ -0,0 +1,164 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
* Copyright 2017-2021 NVIDIA Corporation. All rights reserved.
|
| 3 |
+
*
|
| 4 |
+
* NOTICE TO LICENSEE:
|
| 5 |
+
*
|
| 6 |
+
* This source code and/or documentation ("Licensed Deliverables") are
|
| 7 |
+
* subject to NVIDIA intellectual property rights under U.S. and
|
| 8 |
+
* international Copyright laws.
|
| 9 |
+
*
|
| 10 |
+
* These Licensed Deliverables contained herein is PROPRIETARY and
|
| 11 |
+
* CONFIDENTIAL to NVIDIA and is being provided under the terms and
|
| 12 |
+
* conditions of a form of NVIDIA software license agreement by and
|
| 13 |
+
* between NVIDIA and Licensee ("License Agreement") or electronically
|
| 14 |
+
* accepted by Licensee. Notwithstanding any terms or conditions to
|
| 15 |
+
* the contrary in the License Agreement, reproduction or disclosure
|
| 16 |
+
* of the Licensed Deliverables to any third party without the express
|
| 17 |
+
* written consent of NVIDIA is prohibited.
|
| 18 |
+
*
|
| 19 |
+
* NOTWITHSTANDING ANY TERMS OR CONDITIONS TO THE CONTRARY IN THE
|
| 20 |
+
* LICENSE AGREEMENT, NVIDIA MAKES NO REPRESENTATION ABOUT THE
|
| 21 |
+
* SUITABILITY OF THESE LICENSED DELIVERABLES FOR ANY PURPOSE. IT IS
|
| 22 |
+
* PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY OF ANY KIND.
|
| 23 |
+
* NVIDIA DISCLAIMS ALL WARRANTIES WITH REGARD TO THESE LICENSED
|
| 24 |
+
* DELIVERABLES, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY,
|
| 25 |
+
* NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE.
|
| 26 |
+
* NOTWITHSTANDING ANY TERMS OR CONDITIONS TO THE CONTRARY IN THE
|
| 27 |
+
* LICENSE AGREEMENT, IN NO EVENT SHALL NVIDIA BE LIABLE FOR ANY
|
| 28 |
+
* SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, OR ANY
|
| 29 |
+
* DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
|
| 30 |
+
* WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
|
| 31 |
+
* ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
|
| 32 |
+
* OF THESE LICENSED DELIVERABLES.
|
| 33 |
+
*
|
| 34 |
+
* U.S. Government End Users. These Licensed Deliverables are a
|
| 35 |
+
* "commercial item" as that term is defined at 48 C.F.R. 2.101 (OCT
|
| 36 |
+
* 1995), consisting of "commercial computer software" and "commercial
|
| 37 |
+
* computer software documentation" as such terms are used in 48
|
| 38 |
+
* C.F.R. 12.212 (SEPT 1995) and is provided to the U.S. Government
|
| 39 |
+
* only as a commercial end item. Consistent with 48 C.F.R.12.212 and
|
| 40 |
+
* 48 C.F.R. 227.7202-1 through 227.7202-4 (JUNE 1995), all
|
| 41 |
+
* U.S. Government End Users acquire the Licensed Deliverables with
|
| 42 |
+
* only those rights set forth herein.
|
| 43 |
+
*
|
| 44 |
+
* Any use of the Licensed Deliverables in individual and commercial
|
| 45 |
+
* software must include, in the user documentation and internal
|
| 46 |
+
* comments to the code, the above Disclaimer and U.S. Government End
|
| 47 |
+
* Users Notice.
|
| 48 |
+
*/
|
| 49 |
+
|
| 50 |
+
#if !defined(__CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS__)
|
| 51 |
+
#if defined(_MSC_VER)
|
| 52 |
+
#pragma message("crt/sm_80_rt.h is an internal header file and must not be used directly. Please use cuda_runtime_api.h or cuda_runtime.h instead.")
|
| 53 |
+
#else
|
| 54 |
+
#warning "crt/sm_80_rt.h is an internal header file and must not be used directly. Please use cuda_runtime_api.h or cuda_runtime.h instead."
|
| 55 |
+
#endif
|
| 56 |
+
#define __CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS__
|
| 57 |
+
#define __UNDEF_CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS_SM_80_RT_H__
|
| 58 |
+
#endif
|
| 59 |
+
|
| 60 |
+
#if !defined(__SM_80_RT_H__)
|
| 61 |
+
#define __SM_80_RT_H__
|
| 62 |
+
|
| 63 |
+
#if defined(__CUDACC_RTC__)
|
| 64 |
+
#define __SM_80_RT_DECL__ __host__ __device__
|
| 65 |
+
#elif defined(_NVHPC_CUDA)
|
| 66 |
+
#define __SM_80_RT_DECL__ extern __device__ __cudart_builtin__
|
| 67 |
+
#else /* !__CUDACC_RTC__ */
|
| 68 |
+
#define __SM_80_RT_DECL__ static __device__ __inline__
|
| 69 |
+
#endif /* __CUDACC_RTC__ */
|
| 70 |
+
|
| 71 |
+
#if defined(__cplusplus) && defined(__CUDACC__)
|
| 72 |
+
|
| 73 |
+
#if !defined(__CUDA_ARCH__) || __CUDA_ARCH__ >= 800
|
| 74 |
+
|
| 75 |
+
/*******************************************************************************
|
| 76 |
+
* *
|
| 77 |
+
* *
|
| 78 |
+
* *
|
| 79 |
+
*******************************************************************************/
|
| 80 |
+
|
| 81 |
+
#include "builtin_types.h"
|
| 82 |
+
#include "device_types.h"
|
| 83 |
+
#include "host_defines.h"
|
| 84 |
+
|
| 85 |
+
#if !defined(__CUDA_ARCH__) && !defined(_NVHPC_CUDA)
|
| 86 |
+
#define __DEF_IF_HOST { }
|
| 87 |
+
#else /* !__CUDA_ARCH__ */
|
| 88 |
+
#define __DEF_IF_HOST ;
|
| 89 |
+
#endif /* __CUDA_ARCH__ */
|
| 90 |
+
|
| 91 |
+
|
| 92 |
+
//NOTE: For NVRTC, these declarations have been moved into the compiler (to reduce compile time)
|
| 93 |
+
#define EXCLUDE_FROM_RTC
|
| 94 |
+
/******************************************************************************
|
| 95 |
+
* reduce *
|
| 96 |
+
******************************************************************************/
|
| 97 |
+
__SM_80_RT_DECL__ unsigned __reduce_add_sync(unsigned mask, unsigned value) __DEF_IF_HOST
|
| 98 |
+
__SM_80_RT_DECL__ unsigned __reduce_min_sync(unsigned mask, unsigned value) __DEF_IF_HOST
|
| 99 |
+
__SM_80_RT_DECL__ unsigned __reduce_max_sync(unsigned mask, unsigned value) __DEF_IF_HOST
|
| 100 |
+
|
| 101 |
+
__SM_80_RT_DECL__ int __reduce_add_sync(unsigned mask, int value) __DEF_IF_HOST
|
| 102 |
+
__SM_80_RT_DECL__ int __reduce_min_sync(unsigned mask, int value) __DEF_IF_HOST
|
| 103 |
+
__SM_80_RT_DECL__ int __reduce_max_sync(unsigned mask, int value) __DEF_IF_HOST
|
| 104 |
+
|
| 105 |
+
__SM_80_RT_DECL__ unsigned __reduce_and_sync(unsigned mask, unsigned value) __DEF_IF_HOST
|
| 106 |
+
__SM_80_RT_DECL__ unsigned __reduce_or_sync(unsigned mask, unsigned value) __DEF_IF_HOST
|
| 107 |
+
__SM_80_RT_DECL__ unsigned __reduce_xor_sync(unsigned mask, unsigned value) __DEF_IF_HOST
|
| 108 |
+
|
| 109 |
+
#undef EXCLUDE_FROM_RTC
|
| 110 |
+
|
| 111 |
+
|
| 112 |
+
extern "C" {
|
| 113 |
+
inline __device__ void *__nv_associate_access_property(const void *ptr,
|
| 114 |
+
unsigned long long property) {
|
| 115 |
+
extern __device__ void *__nv_associate_access_property_impl(const void *,
|
| 116 |
+
unsigned long long);
|
| 117 |
+
return __nv_associate_access_property_impl(ptr, property);
|
| 118 |
+
}
|
| 119 |
+
|
| 120 |
+
inline __device__ void __nv_memcpy_async_shared_global_4(void *dst,
|
| 121 |
+
const void *src,
|
| 122 |
+
unsigned src_size) {
|
| 123 |
+
extern __device__ void __nv_memcpy_async_shared_global_4_impl(void *,
|
| 124 |
+
const void *,
|
| 125 |
+
unsigned);
|
| 126 |
+
__nv_memcpy_async_shared_global_4_impl(dst, src, src_size);
|
| 127 |
+
}
|
| 128 |
+
|
| 129 |
+
inline __device__ void __nv_memcpy_async_shared_global_8(void *dst,
|
| 130 |
+
const void *src,
|
| 131 |
+
unsigned src_size) {
|
| 132 |
+
extern __device__ void __nv_memcpy_async_shared_global_8_impl(void *,
|
| 133 |
+
const void *,
|
| 134 |
+
unsigned);
|
| 135 |
+
__nv_memcpy_async_shared_global_8_impl(dst, src, src_size);
|
| 136 |
+
}
|
| 137 |
+
|
| 138 |
+
inline __device__ void __nv_memcpy_async_shared_global_16(void *dst,
|
| 139 |
+
const void *src,
|
| 140 |
+
unsigned src_size) {
|
| 141 |
+
extern __device__ void __nv_memcpy_async_shared_global_16_impl(void *,
|
| 142 |
+
const void *,
|
| 143 |
+
unsigned);
|
| 144 |
+
__nv_memcpy_async_shared_global_16_impl(dst, src, src_size);
|
| 145 |
+
}
|
| 146 |
+
|
| 147 |
+
}
|
| 148 |
+
#endif /* !__CUDA_ARCH__ || __CUDA_ARCH__ >= 800 */
|
| 149 |
+
|
| 150 |
+
#endif /* __cplusplus && __CUDACC__ */
|
| 151 |
+
|
| 152 |
+
#undef __DEF_IF_HOST
|
| 153 |
+
#undef __SM_80_RT_DECL__
|
| 154 |
+
|
| 155 |
+
#if (!defined(__CUDACC_RTC__) && defined(__CUDA_ARCH__)) || defined(_NVHPC_CUDA)
|
| 156 |
+
#include "sm_80_rt.hpp"
|
| 157 |
+
#endif /* !__CUDACC_RTC__ && defined(__CUDA_ARCH__) */
|
| 158 |
+
|
| 159 |
+
#endif /* !__SM_80_RT_H__ */
|
| 160 |
+
|
| 161 |
+
#if defined(__UNDEF_CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS_SM_80_RT_H__)
|
| 162 |
+
#undef __CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS__
|
| 163 |
+
#undef __UNDEF_CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS_SM_80_RT_H__
|
| 164 |
+
#endif
|
data/miniconda3/pkgs/cuda-crt-dev_linux-64-12.8.93-h06a4308_3/targets/x86_64-linux/include/crt/sm_80_rt.hpp
ADDED
|
@@ -0,0 +1,148 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
* Copyright 2017-2021 NVIDIA Corporation. All rights reserved.
|
| 3 |
+
*
|
| 4 |
+
* NOTICE TO LICENSEE:
|
| 5 |
+
*
|
| 6 |
+
* This source code and/or documentation ("Licensed Deliverables") are
|
| 7 |
+
* subject to NVIDIA intellectual property rights under U.S. and
|
| 8 |
+
* international Copyright laws.
|
| 9 |
+
*
|
| 10 |
+
* These Licensed Deliverables contained herein is PROPRIETARY and
|
| 11 |
+
* CONFIDENTIAL to NVIDIA and is being provided under the terms and
|
| 12 |
+
* conditions of a form of NVIDIA software license agreement by and
|
| 13 |
+
* between NVIDIA and Licensee ("License Agreement") or electronically
|
| 14 |
+
* accepted by Licensee. Notwithstanding any terms or conditions to
|
| 15 |
+
* the contrary in the License Agreement, reproduction or disclosure
|
| 16 |
+
* of the Licensed Deliverables to any third party without the express
|
| 17 |
+
* written consent of NVIDIA is prohibited.
|
| 18 |
+
*
|
| 19 |
+
* NOTWITHSTANDING ANY TERMS OR CONDITIONS TO THE CONTRARY IN THE
|
| 20 |
+
* LICENSE AGREEMENT, NVIDIA MAKES NO REPRESENTATION ABOUT THE
|
| 21 |
+
* SUITABILITY OF THESE LICENSED DELIVERABLES FOR ANY PURPOSE. IT IS
|
| 22 |
+
* PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY OF ANY KIND.
|
| 23 |
+
* NVIDIA DISCLAIMS ALL WARRANTIES WITH REGARD TO THESE LICENSED
|
| 24 |
+
* DELIVERABLES, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY,
|
| 25 |
+
* NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE.
|
| 26 |
+
* NOTWITHSTANDING ANY TERMS OR CONDITIONS TO THE CONTRARY IN THE
|
| 27 |
+
* LICENSE AGREEMENT, IN NO EVENT SHALL NVIDIA BE LIABLE FOR ANY
|
| 28 |
+
* SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, OR ANY
|
| 29 |
+
* DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
|
| 30 |
+
* WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
|
| 31 |
+
* ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
|
| 32 |
+
* OF THESE LICENSED DELIVERABLES.
|
| 33 |
+
*
|
| 34 |
+
* U.S. Government End Users. These Licensed Deliverables are a
|
| 35 |
+
* "commercial item" as that term is defined at 48 C.F.R. 2.101 (OCT
|
| 36 |
+
* 1995), consisting of "commercial computer software" and "commercial
|
| 37 |
+
* computer software documentation" as such terms are used in 48
|
| 38 |
+
* C.F.R. 12.212 (SEPT 1995) and is provided to the U.S. Government
|
| 39 |
+
* only as a commercial end item. Consistent with 48 C.F.R.12.212 and
|
| 40 |
+
* 48 C.F.R. 227.7202-1 through 227.7202-4 (JUNE 1995), all
|
| 41 |
+
* U.S. Government End Users acquire the Licensed Deliverables with
|
| 42 |
+
* only those rights set forth herein.
|
| 43 |
+
*
|
| 44 |
+
* Any use of the Licensed Deliverables in individual and commercial
|
| 45 |
+
* software must include, in the user documentation and internal
|
| 46 |
+
* comments to the code, the above Disclaimer and U.S. Government End
|
| 47 |
+
* Users Notice.
|
| 48 |
+
*/
|
| 49 |
+
|
| 50 |
+
#if !defined(__CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS__)
|
| 51 |
+
#if defined(_MSC_VER)
|
| 52 |
+
#pragma message("crt/sm_80_rt.hpp is an internal header file and must not be used directly. Please use cuda_runtime_api.h or cuda_runtime.h instead.")
|
| 53 |
+
#else
|
| 54 |
+
#warning "crt/sm_80_rt.hpp is an internal header file and must not be used directly. Please use cuda_runtime_api.h or cuda_runtime.h instead."
|
| 55 |
+
#endif
|
| 56 |
+
#define __CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS__
|
| 57 |
+
#define __UNDEF_CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS_SM_80_RT_HPP__
|
| 58 |
+
#endif
|
| 59 |
+
|
| 60 |
+
#if !defined(__SM_80_RT_HPP__)
|
| 61 |
+
#define __SM_80_RT_HPP__
|
| 62 |
+
|
| 63 |
+
#if defined(__CUDACC_RTC__)
|
| 64 |
+
#define __SM_80_RT_DECL__ __host__ __device__
|
| 65 |
+
#else /* !__CUDACC_RTC__ */
|
| 66 |
+
#define __SM_80_RT_DECL__ static __device__ __inline__
|
| 67 |
+
#endif /* __CUDACC_RTC__ */
|
| 68 |
+
|
| 69 |
+
#if defined(__cplusplus) && defined(__CUDACC__)
|
| 70 |
+
|
| 71 |
+
#if !defined(__CUDA_ARCH__) || __CUDA_ARCH__ >= 800
|
| 72 |
+
|
| 73 |
+
/*******************************************************************************
|
| 74 |
+
* *
|
| 75 |
+
* *
|
| 76 |
+
* *
|
| 77 |
+
*******************************************************************************/
|
| 78 |
+
|
| 79 |
+
#include "builtin_types.h"
|
| 80 |
+
#include "device_types.h"
|
| 81 |
+
#include "host_defines.h"
|
| 82 |
+
|
| 83 |
+
/*******************************************************************************
|
| 84 |
+
* *
|
| 85 |
+
* Below are implementations of SM-8.0 builtin functions which are included as *
|
| 86 |
+
* source (instead of being built in to the compiler) *
|
| 87 |
+
* *
|
| 88 |
+
*******************************************************************************/
|
| 89 |
+
|
| 90 |
+
extern "C" {
|
| 91 |
+
__device_builtin__ __device__ unsigned __reduce_add_sync_unsigned_impl(unsigned, unsigned);
|
| 92 |
+
__device_builtin__ __device__ unsigned __reduce_min_sync_unsigned_impl(unsigned, unsigned);
|
| 93 |
+
__device_builtin__ __device__ unsigned __reduce_max_sync_unsigned_impl(unsigned, unsigned);
|
| 94 |
+
__device_builtin__ __device__ int __reduce_add_sync_signed_impl(unsigned, int);
|
| 95 |
+
__device_builtin__ __device__ int __reduce_min_sync_signed_impl(unsigned, int);
|
| 96 |
+
__device_builtin__ __device__ int __reduce_max_sync_signed_impl(unsigned, int);
|
| 97 |
+
__device_builtin__ __device__ unsigned __reduce_or_sync_unsigned_impl(unsigned, unsigned);
|
| 98 |
+
__device_builtin__ __device__ unsigned __reduce_and_sync_unsigned_impl(unsigned, unsigned);
|
| 99 |
+
__device_builtin__ __device__ unsigned __reduce_xor_sync_unsigned_impl(unsigned, unsigned);
|
| 100 |
+
}
|
| 101 |
+
|
| 102 |
+
__SM_80_RT_DECL__ unsigned __reduce_add_sync(unsigned mask, unsigned value) {
|
| 103 |
+
return __reduce_add_sync_unsigned_impl(mask, value);
|
| 104 |
+
}
|
| 105 |
+
|
| 106 |
+
__SM_80_RT_DECL__ unsigned __reduce_min_sync(unsigned mask, unsigned value) {
|
| 107 |
+
return __reduce_min_sync_unsigned_impl(mask, value);
|
| 108 |
+
}
|
| 109 |
+
|
| 110 |
+
__SM_80_RT_DECL__ unsigned __reduce_max_sync(unsigned mask, unsigned value) {
|
| 111 |
+
return __reduce_max_sync_unsigned_impl(mask, value);
|
| 112 |
+
}
|
| 113 |
+
|
| 114 |
+
__SM_80_RT_DECL__ int __reduce_add_sync(unsigned mask, int value) {
|
| 115 |
+
return __reduce_add_sync_signed_impl(mask, value);
|
| 116 |
+
}
|
| 117 |
+
|
| 118 |
+
__SM_80_RT_DECL__ int __reduce_min_sync(unsigned mask, int value) {
|
| 119 |
+
return __reduce_min_sync_signed_impl(mask, value);
|
| 120 |
+
}
|
| 121 |
+
|
| 122 |
+
__SM_80_RT_DECL__ int __reduce_max_sync(unsigned mask, int value) {
|
| 123 |
+
return __reduce_max_sync_signed_impl(mask, value);
|
| 124 |
+
}
|
| 125 |
+
|
| 126 |
+
__SM_80_RT_DECL__ unsigned __reduce_and_sync(unsigned mask, unsigned value) {
|
| 127 |
+
return __reduce_and_sync_unsigned_impl(mask, value);
|
| 128 |
+
}
|
| 129 |
+
|
| 130 |
+
__SM_80_RT_DECL__ unsigned __reduce_or_sync(unsigned mask, unsigned value) {
|
| 131 |
+
return __reduce_or_sync_unsigned_impl(mask, value);
|
| 132 |
+
}
|
| 133 |
+
|
| 134 |
+
__SM_80_RT_DECL__ unsigned __reduce_xor_sync(unsigned mask, unsigned value) {
|
| 135 |
+
return __reduce_xor_sync_unsigned_impl(mask, value);
|
| 136 |
+
}
|
| 137 |
+
#endif /* !__CUDA_ARCH__ || __CUDA_ARCH__ >= 800 */
|
| 138 |
+
|
| 139 |
+
#endif /* __cplusplus && __CUDACC__ */
|
| 140 |
+
|
| 141 |
+
#undef __SM_80_RT_DECL__
|
| 142 |
+
|
| 143 |
+
#endif /* !__SM_80_RT_HPP__ */
|
| 144 |
+
|
| 145 |
+
#if defined(__UNDEF_CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS_SM_80_RT_HPP__)
|
| 146 |
+
#undef __CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS__
|
| 147 |
+
#undef __UNDEF_CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS_SM_80_RT_HPP__
|
| 148 |
+
#endif
|
data/miniconda3/pkgs/cuda-crt-dev_linux-64-12.8.93-h06a4308_3/targets/x86_64-linux/include/crt/sm_90_rt.h
ADDED
|
@@ -0,0 +1,282 @@
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*
|
| 2 |
+
* Copyright 2022-2023 NVIDIA Corporation. All rights reserved.
|
| 3 |
+
*
|
| 4 |
+
* NOTICE TO LICENSEE:
|
| 5 |
+
*
|
| 6 |
+
* This source code and/or documentation ("Licensed Deliverables") are
|
| 7 |
+
* subject to NVIDIA intellectual property rights under U.S. and
|
| 8 |
+
* international Copyright laws.
|
| 9 |
+
*
|
| 10 |
+
* These Licensed Deliverables contained herein is PROPRIETARY and
|
| 11 |
+
* CONFIDENTIAL to NVIDIA and is being provided under the terms and
|
| 12 |
+
* conditions of a form of NVIDIA software license agreement by and
|
| 13 |
+
* between NVIDIA and Licensee ("License Agreement") or electronically
|
| 14 |
+
* accepted by Licensee. Notwithstanding any terms or conditions to
|
| 15 |
+
* the contrary in the License Agreement, reproduction or disclosure
|
| 16 |
+
* of the Licensed Deliverables to any third party without the express
|
| 17 |
+
* written consent of NVIDIA is prohibited.
|
| 18 |
+
*
|
| 19 |
+
* NOTWITHSTANDING ANY TERMS OR CONDITIONS TO THE CONTRARY IN THE
|
| 20 |
+
* LICENSE AGREEMENT, NVIDIA MAKES NO REPRESENTATION ABOUT THE
|
| 21 |
+
* SUITABILITY OF THESE LICENSED DELIVERABLES FOR ANY PURPOSE. IT IS
|
| 22 |
+
* PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY OF ANY KIND.
|
| 23 |
+
* NVIDIA DISCLAIMS ALL WARRANTIES WITH REGARD TO THESE LICENSED
|
| 24 |
+
* DELIVERABLES, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY,
|
| 25 |
+
* NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE.
|
| 26 |
+
* NOTWITHSTANDING ANY TERMS OR CONDITIONS TO THE CONTRARY IN THE
|
| 27 |
+
* LICENSE AGREEMENT, IN NO EVENT SHALL NVIDIA BE LIABLE FOR ANY
|
| 28 |
+
* SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, OR ANY
|
| 29 |
+
* DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
|
| 30 |
+
* WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
|
| 31 |
+
* ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
|
| 32 |
+
* OF THESE LICENSED DELIVERABLES.
|
| 33 |
+
*
|
| 34 |
+
* U.S. Government End Users. These Licensed Deliverables are a
|
| 35 |
+
* "commercial item" as that term is defined at 48 C.F.R. 2.101 (OCT
|
| 36 |
+
* 1995), consisting of "commercial computer software" and "commercial
|
| 37 |
+
* computer software documentation" as such terms are used in 48
|
| 38 |
+
* C.F.R. 12.212 (SEPT 1995) and is provided to the U.S. Government
|
| 39 |
+
* only as a commercial end item. Consistent with 48 C.F.R.12.212 and
|
| 40 |
+
* 48 C.F.R. 227.7202-1 through 227.7202-4 (JUNE 1995), all
|
| 41 |
+
* U.S. Government End Users acquire the Licensed Deliverables with
|
| 42 |
+
* only those rights set forth herein.
|
| 43 |
+
*
|
| 44 |
+
* Any use of the Licensed Deliverables in individual and commercial
|
| 45 |
+
* software must include, in the user documentation and internal
|
| 46 |
+
* comments to the code, the above Disclaimer and U.S. Government End
|
| 47 |
+
* Users Notice.
|
| 48 |
+
*/
|
| 49 |
+
|
| 50 |
+
#if !defined(__CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS__)
|
| 51 |
+
#if defined(_MSC_VER)
|
| 52 |
+
#pragma message("crt/sm_90_rt.h is an internal header file and must not be used directly. Please use cuda_runtime_api.h or cuda_runtime.h instead.")
|
| 53 |
+
#else
|
| 54 |
+
#warning "crt/sm_90_rt.h is an internal header file and must not be used directly. Please use cuda_runtime_api.h or cuda_runtime.h instead."
|
| 55 |
+
#endif
|
| 56 |
+
#define __CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS__
|
| 57 |
+
#define __UNDEF_CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS_SM_90_RT_H__
|
| 58 |
+
#endif
|
| 59 |
+
|
| 60 |
+
#if !defined(__SM_90_RT_H__)
|
| 61 |
+
#define __SM_90_RT_H__
|
| 62 |
+
|
| 63 |
+
#if defined(__CUDACC_RTC__)
|
| 64 |
+
#define __SM_90_RT_DECL__ __host__ __device__
|
| 65 |
+
#else /* !__CUDACC_RTC__ */
|
| 66 |
+
#define __SM_90_RT_DECL__ static __device__ __inline__
|
| 67 |
+
#endif /* __CUDACC_RTC__ */
|
| 68 |
+
|
| 69 |
+
#if defined(__cplusplus) && defined(__CUDACC__)
|
| 70 |
+
|
| 71 |
+
#if !defined(__CUDA_ARCH__) || __CUDA_ARCH__ >= 900
|
| 72 |
+
|
| 73 |
+
/*******************************************************************************
|
| 74 |
+
* *
|
| 75 |
+
* *
|
| 76 |
+
* *
|
| 77 |
+
*******************************************************************************/
|
| 78 |
+
|
| 79 |
+
#include "builtin_types.h"
|
| 80 |
+
#include "device_types.h"
|
| 81 |
+
#include "host_defines.h"
|
| 82 |
+
|
| 83 |
+
#if !defined(__CUDA_ARCH__) && !defined(_NVHPC_CUDA)
|
| 84 |
+
#define __DEF_IF_HOST { }
|
| 85 |
+
#else /* !__CUDA_ARCH__ && !_NVHPC_CUDA */
|
| 86 |
+
#define __DEF_IF_HOST ;
|
| 87 |
+
#endif /* __CUDA_ARCH__ || _NVHPC_CUDA */
|
| 88 |
+
|
| 89 |
+
//NOTE: For NVRTC, these declarations have been moved into the compiler (to reduce compile time)
|
| 90 |
+
#define EXCLUDE_FROM_RTC
|
| 91 |
+
|
| 92 |
+
__SM_90_RT_DECL__ unsigned __isCtaShared(const void *ptr) __DEF_IF_HOST
|
| 93 |
+
__SM_90_RT_DECL__ unsigned __isClusterShared(const void *ptr) __DEF_IF_HOST
|
| 94 |
+
__SM_90_RT_DECL__ void *__cluster_map_shared_rank(const void *ptr, unsigned target_block_rank) __DEF_IF_HOST
|
| 95 |
+
__SM_90_RT_DECL__ unsigned __cluster_query_shared_rank(const void *ptr) __DEF_IF_HOST
|
| 96 |
+
__SM_90_RT_DECL__ uint2 __cluster_map_shared_multicast(const void *ptr, unsigned cluster_cta_mask) __DEF_IF_HOST
|
| 97 |
+
__SM_90_RT_DECL__ unsigned __clusterDimIsSpecified() __DEF_IF_HOST
|
| 98 |
+
__SM_90_RT_DECL__ dim3 __clusterDim() __DEF_IF_HOST
|
| 99 |
+
__SM_90_RT_DECL__ dim3 __clusterRelativeBlockIdx() __DEF_IF_HOST
|
| 100 |
+
__SM_90_RT_DECL__ dim3 __clusterGridDimInClusters() __DEF_IF_HOST
|
| 101 |
+
__SM_90_RT_DECL__ dim3 __clusterIdx() __DEF_IF_HOST
|
| 102 |
+
__SM_90_RT_DECL__ unsigned __clusterRelativeBlockRank() __DEF_IF_HOST
|
| 103 |
+
__SM_90_RT_DECL__ unsigned __clusterSizeInBlocks() __DEF_IF_HOST
|
| 104 |
+
__SM_90_RT_DECL__ void __cluster_barrier_arrive() __DEF_IF_HOST
|
| 105 |
+
__SM_90_RT_DECL__ void __cluster_barrier_arrive_relaxed() __DEF_IF_HOST
|
| 106 |
+
__SM_90_RT_DECL__ void __cluster_barrier_wait() __DEF_IF_HOST
|
| 107 |
+
__SM_90_RT_DECL__ void __threadfence_cluster() __DEF_IF_HOST
|
| 108 |
+
|
| 109 |
+
__SM_90_RT_DECL__ float2 atomicAdd(float2 *__address, float2 val) __DEF_IF_HOST
|
| 110 |
+
__SM_90_RT_DECL__ float2 atomicAdd_block(float2 *__address, float2 val) __DEF_IF_HOST
|
| 111 |
+
__SM_90_RT_DECL__ float2 atomicAdd_system(float2 *__address, float2 val) __DEF_IF_HOST
|
| 112 |
+
__SM_90_RT_DECL__ float4 atomicAdd(float4 *__address, float4 val) __DEF_IF_HOST
|
| 113 |
+
__SM_90_RT_DECL__ float4 atomicAdd_block(float4 *__address, float4 val) __DEF_IF_HOST
|
| 114 |
+
__SM_90_RT_DECL__ float4 atomicAdd_system(float4 *__address, float4 val) __DEF_IF_HOST
|
| 115 |
+
|
| 116 |
+
#undef EXCLUDE_FROM_RTC
|
| 117 |
+
|
| 118 |
+
//Note: below atomic functions are templates, so cannot be represented in NVRTC
|
| 119 |
+
//builtins representation, so they have to be parsed on every NVRTC compilation.
|
| 120 |
+
//(notice 'EXCLUDE_FROM_RTC' ends above)
|
| 121 |
+
|
| 122 |
+
|
| 123 |
+
#ifndef __NV_DISABLE_128_ATOMICS
|
| 124 |
+
// lgen definitions for 128b atomics
|
| 125 |
+
extern "C" {
|
| 126 |
+
__device__ __device_builtin__ void __u128AtomicCAS(void *, void *, void *, void *);
|
| 127 |
+
__device__ __device_builtin__ void __u128AtomicCAS_block(void *, void *, void *, void *);
|
| 128 |
+
__device__ __device_builtin__ void __u128AtomicCAS_system(void *, void *, void *, void *);
|
| 129 |
+
__device__ __device_builtin__ void __u128AtomicExch(void *, void *, void *);
|
| 130 |
+
__device__ __device_builtin__ void __u128AtomicExch_block(void *, void *, void *);
|
| 131 |
+
__device__ __device_builtin__ void __u128AtomicExch_system(void *, void *, void *);
|
| 132 |
+
}
|
| 133 |
+
|
| 134 |
+
// macro to get address of object, to workaround situations where the type overloads the "&" operator
|
| 135 |
+
#define __NV_ATOMIC_ADDRESSOF(__val) \
|
| 136 |
+
(void *)(&(const_cast<char &>(reinterpret_cast<const volatile char &>(__val))))
|
| 137 |
+
|
| 138 |
+
// enable_if
|
| 139 |
+
template<bool __b, typename _T>
|
| 140 |
+
struct __nv_atomic_enable_if { };
|
| 141 |
+
|
| 142 |
+
template<typename _T>
|
| 143 |
+
struct __nv_atomic_enable_if<true, _T> { typedef _T __type; };
|
| 144 |
+
|
| 145 |
+
// alignof
|
| 146 |
+
#if defined(__CUDACC_RTC__)
|
| 147 |
+
#define __NV_ATOMIC_ALIGNOF __alignof__
|
| 148 |
+
#else
|
| 149 |
+
#define __NV_ATOMIC_ALIGNOF __alignof
|
| 150 |
+
#endif
|
| 151 |
+
|
| 152 |
+
// trivially copyable
|
| 153 |
+
template <typename _T>
|
| 154 |
+
struct __nv_atomic_triv_cp_helper {
|
| 155 |
+
#if defined(__GNUC__)
|
| 156 |
+
#if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 3)
|
| 157 |
+
static const bool __val = true;
|
| 158 |
+
#elif (__GNUC__ < 5)
|
| 159 |
+
static const bool __val = __has_trivial_copy(_T);
|
| 160 |
+
#else
|
| 161 |
+
static const bool __val = __is_trivially_copyable(_T);
|
| 162 |
+
#endif
|
| 163 |
+
#else
|
| 164 |
+
static const bool __val = __is_trivially_copyable(_T);
|
| 165 |
+
#endif
|
| 166 |
+
};
|
| 167 |
+
#define __NV_ATOMIC_TRIVIALLY_COPYABLE(_T) \
|
| 168 |
+
__nv_atomic_triv_cp_helper<_T>::__val
|
| 169 |
+
|
| 170 |
+
// return type
|
| 171 |
+
#if __cplusplus >= 202002L // C++20 or greater
|
| 172 |
+
#define __NV_ATOMIC_RET_TYPE(_T) _T
|
| 173 |
+
#else
|
| 174 |
+
#define __NV_ATOMIC_RET_TYPE(_T) typename \
|
| 175 |
+
__nv_atomic_enable_if<sizeof(_T) == 16 && \
|
| 176 |
+
__NV_ATOMIC_ALIGNOF(_T) >= 16 && \
|
| 177 |
+
__NV_ATOMIC_TRIVIALLY_COPYABLE(_T), _T>::__type
|
| 178 |
+
#endif
|
| 179 |
+
|
| 180 |
+
// requires
|
| 181 |
+
#if __cplusplus >= 202002L // C++20 or greater
|
| 182 |
+
#define __NV_ATOMIC_REQUIRES(_T) \
|
| 183 |
+
requires(sizeof(_T) == 16 && \
|
| 184 |
+
__NV_ATOMIC_ALIGNOF(_T) >= 16 && \
|
| 185 |
+
__NV_ATOMIC_TRIVIALLY_COPYABLE(_T))
|
| 186 |
+
#else
|
| 187 |
+
#define __NV_ATOMIC_REQUIRES(_T)
|
| 188 |
+
#endif
|
| 189 |
+
|
| 190 |
+
// temp value and return value
|
| 191 |
+
#if __cplusplus >= 201103L || defined(_MSC_VER) // C++11 or greater, or MSC
|
| 192 |
+
#define __NV_ATOMIC_TEMP(_T) union _U \
|
| 193 |
+
{_T __ret; __device__ __inline__ _U() {}}; _U __u
|
| 194 |
+
#define __NV_ATOMIC_RET(_T) __u.__ret
|
| 195 |
+
#else
|
| 196 |
+
#define __NV_ATOMIC_TEMP(_T) _T __ret
|
| 197 |
+
#define __NV_ATOMIC_RET(_T) __ret
|
| 198 |
+
#endif
|
| 199 |
+
|
| 200 |
+
// templated 128-bit atomics
|
| 201 |
+
template <typename _T>
|
| 202 |
+
__SM_90_RT_DECL__ __NV_ATOMIC_RET_TYPE(_T)
|
| 203 |
+
atomicCAS(_T *__address, _T __compare, _T __val) __NV_ATOMIC_REQUIRES(_T) {
|
| 204 |
+
__NV_ATOMIC_TEMP(_T);
|
| 205 |
+
__u128AtomicCAS((void *)(__address),
|
| 206 |
+
__NV_ATOMIC_ADDRESSOF(__compare),
|
| 207 |
+
__NV_ATOMIC_ADDRESSOF(__val),
|
| 208 |
+
__NV_ATOMIC_ADDRESSOF(__NV_ATOMIC_RET(_T)));
|
| 209 |
+
return __NV_ATOMIC_RET(_T);
|
| 210 |
+
}
|
| 211 |
+
|
| 212 |
+
template <typename _T>
|
| 213 |
+
__SM_90_RT_DECL__ __NV_ATOMIC_RET_TYPE(_T)
|
| 214 |
+
atomicCAS_block(_T *__address, _T __compare, _T __val) __NV_ATOMIC_REQUIRES(_T) {
|
| 215 |
+
__NV_ATOMIC_TEMP(_T);
|
| 216 |
+
__u128AtomicCAS_block((void *)(__address),
|
| 217 |
+
__NV_ATOMIC_ADDRESSOF(__compare),
|
| 218 |
+
__NV_ATOMIC_ADDRESSOF(__val),
|
| 219 |
+
__NV_ATOMIC_ADDRESSOF(__NV_ATOMIC_RET(_T)));
|
| 220 |
+
return __NV_ATOMIC_RET(_T);
|
| 221 |
+
}
|
| 222 |
+
|
| 223 |
+
template <typename _T>
|
| 224 |
+
__SM_90_RT_DECL__ __NV_ATOMIC_RET_TYPE(_T)
|
| 225 |
+
atomicCAS_system(_T *__address, _T __compare, _T __val) __NV_ATOMIC_REQUIRES(_T) {
|
| 226 |
+
__NV_ATOMIC_TEMP(_T);
|
| 227 |
+
__u128AtomicCAS_system((void *)(__address),
|
| 228 |
+
__NV_ATOMIC_ADDRESSOF(__compare),
|
| 229 |
+
__NV_ATOMIC_ADDRESSOF(__val),
|
| 230 |
+
__NV_ATOMIC_ADDRESSOF(__NV_ATOMIC_RET(_T)));
|
| 231 |
+
return __NV_ATOMIC_RET(_T);
|
| 232 |
+
}
|
| 233 |
+
|
| 234 |
+
template <typename _T>
|
| 235 |
+
__SM_90_RT_DECL__ __NV_ATOMIC_RET_TYPE(_T)
|
| 236 |
+
atomicExch(_T *__address, _T __val) __NV_ATOMIC_REQUIRES(_T) {
|
| 237 |
+
__NV_ATOMIC_TEMP(_T);
|
| 238 |
+
__u128AtomicExch((void *)(__address),
|
| 239 |
+
__NV_ATOMIC_ADDRESSOF(__val),
|
| 240 |
+
__NV_ATOMIC_ADDRESSOF(__NV_ATOMIC_RET(_T)));
|
| 241 |
+
return __NV_ATOMIC_RET(_T);
|
| 242 |
+
}
|
| 243 |
+
|
| 244 |
+
template <typename _T>
|
| 245 |
+
__SM_90_RT_DECL__ __NV_ATOMIC_RET_TYPE(_T)
|
| 246 |
+
atomicExch_block(_T *__address, _T __val) __NV_ATOMIC_REQUIRES(_T) {
|
| 247 |
+
__NV_ATOMIC_TEMP(_T);
|
| 248 |
+
__u128AtomicExch_block((void *)(__address),
|
| 249 |
+
__NV_ATOMIC_ADDRESSOF(__val),
|
| 250 |
+
__NV_ATOMIC_ADDRESSOF(__NV_ATOMIC_RET(_T)));
|
| 251 |
+
return __NV_ATOMIC_RET(_T);
|
| 252 |
+
}
|
| 253 |
+
|
| 254 |
+
template <typename _T>
|
| 255 |
+
__SM_90_RT_DECL__ __NV_ATOMIC_RET_TYPE(_T)
|
| 256 |
+
atomicExch_system(_T *__address, _T __val) __NV_ATOMIC_REQUIRES(_T) {
|
| 257 |
+
__NV_ATOMIC_TEMP(_T);
|
| 258 |
+
__u128AtomicExch_system((void *)(__address),
|
| 259 |
+
__NV_ATOMIC_ADDRESSOF(__val),
|
| 260 |
+
__NV_ATOMIC_ADDRESSOF(__NV_ATOMIC_RET(_T)));
|
| 261 |
+
return __NV_ATOMIC_RET(_T);
|
| 262 |
+
}
|
| 263 |
+
#endif /* !__NV_DISABLE_128_ATOMICS */
|
| 264 |
+
|
| 265 |
+
#endif /* !__CUDA_ARCH__ || __CUDA_ARCH__ >= 900 */
|
| 266 |
+
|
| 267 |
+
#endif /* __cplusplus && __CUDACC__ */
|
| 268 |
+
|
| 269 |
+
#undef __DEF_IF_HOST
|
| 270 |
+
#undef __SM_90_RT_DECL__
|
| 271 |
+
|
| 272 |
+
#if (!defined(__CUDACC_RTC__) && defined(__CUDA_ARCH__)) || defined(_NVHPC_CUDA)
|
| 273 |
+
#include "sm_90_rt.hpp"
|
| 274 |
+
#endif /* (!defined(__CUDACC_RTC__) && defined(__CUDA_ARCH__)) || defined(_NVHPC_CUDA) */
|
| 275 |
+
|
| 276 |
+
#endif /* !__SM_90_RT_H__ */
|
| 277 |
+
|
| 278 |
+
#if defined(__UNDEF_CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS_SM_90_RT_H__)
|
| 279 |
+
#undef __CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS__
|
| 280 |
+
#undef __UNDEF_CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS_SM_90_RT_H__
|
| 281 |
+
#endif
|
| 282 |
+
|
data/miniconda3/pkgs/cuda-crt-dev_linux-64-12.8.93-h06a4308_3/targets/x86_64-linux/include/crt/sm_90_rt.hpp
ADDED
|
@@ -0,0 +1,248 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 4 |
+
* NOTICE TO LICENSEE:
|
| 5 |
+
*
|
| 6 |
+
* This source code and/or documentation ("Licensed Deliverables") are
|
| 7 |
+
* subject to NVIDIA intellectual property rights under U.S. and
|
| 8 |
+
* international Copyright laws.
|
| 9 |
+
*
|
| 10 |
+
* These Licensed Deliverables contained herein is PROPRIETARY and
|
| 11 |
+
* CONFIDENTIAL to NVIDIA and is being provided under the terms and
|
| 12 |
+
* conditions of a form of NVIDIA software license agreement by and
|
| 13 |
+
* between NVIDIA and Licensee ("License Agreement") or electronically
|
| 14 |
+
* accepted by Licensee. Notwithstanding any terms or conditions to
|
| 15 |
+
* the contrary in the License Agreement, reproduction or disclosure
|
| 16 |
+
* of the Licensed Deliverables to any third party without the express
|
| 17 |
+
* written consent of NVIDIA is prohibited.
|
| 18 |
+
*
|
| 19 |
+
* NOTWITHSTANDING ANY TERMS OR CONDITIONS TO THE CONTRARY IN THE
|
| 20 |
+
* LICENSE AGREEMENT, NVIDIA MAKES NO REPRESENTATION ABOUT THE
|
| 21 |
+
* SUITABILITY OF THESE LICENSED DELIVERABLES FOR ANY PURPOSE. IT IS
|
| 22 |
+
* PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY OF ANY KIND.
|
| 23 |
+
* NVIDIA DISCLAIMS ALL WARRANTIES WITH REGARD TO THESE LICENSED
|
| 24 |
+
* DELIVERABLES, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY,
|
| 25 |
+
* NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE.
|
| 26 |
+
* NOTWITHSTANDING ANY TERMS OR CONDITIONS TO THE CONTRARY IN THE
|
| 27 |
+
* LICENSE AGREEMENT, IN NO EVENT SHALL NVIDIA BE LIABLE FOR ANY
|
| 28 |
+
* SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, OR ANY
|
| 29 |
+
* DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
|
| 30 |
+
* WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
|
| 31 |
+
* ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
|
| 32 |
+
* OF THESE LICENSED DELIVERABLES.
|
| 33 |
+
*
|
| 34 |
+
* U.S. Government End Users. These Licensed Deliverables are a
|
| 35 |
+
* "commercial item" as that term is defined at 48 C.F.R. 2.101 (OCT
|
| 36 |
+
* 1995), consisting of "commercial computer software" and "commercial
|
| 37 |
+
* computer software documentation" as such terms are used in 48
|
| 38 |
+
* C.F.R. 12.212 (SEPT 1995) and is provided to the U.S. Government
|
| 39 |
+
* only as a commercial end item. Consistent with 48 C.F.R.12.212 and
|
| 40 |
+
* 48 C.F.R. 227.7202-1 through 227.7202-4 (JUNE 1995), all
|
| 41 |
+
* U.S. Government End Users acquire the Licensed Deliverables with
|
| 42 |
+
* only those rights set forth herein.
|
| 43 |
+
*
|
| 44 |
+
* Any use of the Licensed Deliverables in individual and commercial
|
| 45 |
+
* software must include, in the user documentation and internal
|
| 46 |
+
* comments to the code, the above Disclaimer and U.S. Government End
|
| 47 |
+
* Users Notice.
|
| 48 |
+
*/
|
| 49 |
+
|
| 50 |
+
#if !defined(__CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS__)
|
| 51 |
+
#if defined(_MSC_VER)
|
| 52 |
+
#pragma message("crt/sm_90_rt.hpp is an internal header file and must not be used directly. Please use cuda_runtime_api.h or cuda_runtime.h instead.")
|
| 53 |
+
#else
|
| 54 |
+
#warning "crt/sm_90_rt.hpp is an internal header file and must not be used directly. Please use cuda_runtime_api.h or cuda_runtime.h instead."
|
| 55 |
+
#endif
|
| 56 |
+
#define __CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS__
|
| 57 |
+
#define __UNDEF_CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS_SM_90_RT_HPP__
|
| 58 |
+
#endif
|
| 59 |
+
|
| 60 |
+
#if !defined(__SM_90_RT_HPP__)
|
| 61 |
+
#define __SM_90_RT_HPP__
|
| 62 |
+
|
| 63 |
+
#if defined(__CUDACC_RTC__)
|
| 64 |
+
#define __SM_90_RT_DECL__ __host__ __device__
|
| 65 |
+
#else /* !__CUDACC_RTC__ */
|
| 66 |
+
#define __SM_90_RT_DECL__ static __device__ __inline__
|
| 67 |
+
#endif /* __CUDACC_RTC__ */
|
| 68 |
+
|
| 69 |
+
#if defined(__cplusplus) && defined(__CUDACC__)
|
| 70 |
+
|
| 71 |
+
#if !defined(__CUDA_ARCH__) || __CUDA_ARCH__ >= 900
|
| 72 |
+
|
| 73 |
+
/*******************************************************************************
|
| 74 |
+
* *
|
| 75 |
+
* *
|
| 76 |
+
* *
|
| 77 |
+
*******************************************************************************/
|
| 78 |
+
|
| 79 |
+
#include "builtin_types.h"
|
| 80 |
+
#include "device_types.h"
|
| 81 |
+
#include "host_defines.h"
|
| 82 |
+
|
| 83 |
+
/*******************************************************************************
|
| 84 |
+
* *
|
| 85 |
+
* Below are implementations of SM-9.0 builtin functions which are included as *
|
| 86 |
+
* source (instead of being built in to the compiler) *
|
| 87 |
+
* *
|
| 88 |
+
*******************************************************************************/
|
| 89 |
+
extern "C" {
|
| 90 |
+
__device__ unsigned __nv_isClusterShared_impl(const void *);
|
| 91 |
+
__device__ void * __nv_cluster_map_shared_rank_impl(const void *, unsigned);
|
| 92 |
+
__device__ unsigned __nv_cluster_query_shared_rank_impl(const void *);
|
| 93 |
+
__device__ unsigned __nv_clusterDimIsSpecifed_impl();
|
| 94 |
+
__device__ void __nv_clusterDim_impl(unsigned *, unsigned *, unsigned *);
|
| 95 |
+
__device__ void __nv_clusterRelativeBlockIdx_impl(unsigned *,
|
| 96 |
+
unsigned *, unsigned *);
|
| 97 |
+
__device__ void __nv_clusterGridDimInClusters_impl(unsigned *,
|
| 98 |
+
unsigned *, unsigned *);
|
| 99 |
+
__device__ void __nv_clusterIdx_impl(unsigned *, unsigned *, unsigned *);
|
| 100 |
+
__device__ unsigned __nv_clusterRelativeBlockRank_impl();
|
| 101 |
+
__device__ unsigned __nv_clusterSizeInBlocks_impl();
|
| 102 |
+
__device__ void __nv_cluster_barrier_arrive_impl();
|
| 103 |
+
__device__ void __nv_cluster_barrier_arrive_relaxed_impl();
|
| 104 |
+
__device__ void __nv_cluster_barrier_wait_impl();
|
| 105 |
+
__device__ void __nv_threadfence_cluster_impl();
|
| 106 |
+
|
| 107 |
+
__device__ __device_builtin__ float2 __f2AtomicAdd(float2 *, float2);
|
| 108 |
+
__device__ __device_builtin__ float2 __f2AtomicAdd_block(float2 *, float2);
|
| 109 |
+
__device__ __device_builtin__ float2 __f2AtomicAdd_system(float2 *, float2);
|
| 110 |
+
__device__ __device_builtin__ float4 __f4AtomicAdd(float4 *, float4);
|
| 111 |
+
__device__ __device_builtin__ float4 __f4AtomicAdd_block(float4 *, float4);
|
| 112 |
+
__device__ __device_builtin__ float4 __f4AtomicAdd_system(float4 *, float4);
|
| 113 |
+
} // extern "C"
|
| 114 |
+
|
| 115 |
+
__SM_90_RT_DECL__ unsigned __isCtaShared(const void *ptr)
|
| 116 |
+
{
|
| 117 |
+
return __isShared(ptr);
|
| 118 |
+
}
|
| 119 |
+
|
| 120 |
+
__SM_90_RT_DECL__ unsigned __isClusterShared(const void *ptr)
|
| 121 |
+
{
|
| 122 |
+
return __nv_isClusterShared_impl(ptr);
|
| 123 |
+
}
|
| 124 |
+
|
| 125 |
+
__SM_90_RT_DECL__ void *__cluster_map_shared_rank(const void *ptr,
|
| 126 |
+
unsigned target_block_rank)
|
| 127 |
+
{
|
| 128 |
+
return __nv_cluster_map_shared_rank_impl(ptr, target_block_rank);
|
| 129 |
+
}
|
| 130 |
+
|
| 131 |
+
__SM_90_RT_DECL__ unsigned __cluster_query_shared_rank(const void *ptr)
|
| 132 |
+
{
|
| 133 |
+
return __nv_cluster_query_shared_rank_impl(ptr);
|
| 134 |
+
}
|
| 135 |
+
|
| 136 |
+
__SM_90_RT_DECL__ uint2 __cluster_map_shared_multicast(const void *ptr,
|
| 137 |
+
unsigned int cluster_cta_mask)
|
| 138 |
+
{
|
| 139 |
+
return make_uint2((unsigned)__cvta_generic_to_shared(ptr), cluster_cta_mask);
|
| 140 |
+
}
|
| 141 |
+
|
| 142 |
+
__SM_90_RT_DECL__ unsigned __clusterDimIsSpecified()
|
| 143 |
+
{
|
| 144 |
+
return __nv_clusterDimIsSpecifed_impl();
|
| 145 |
+
}
|
| 146 |
+
|
| 147 |
+
__SM_90_RT_DECL__ dim3 __clusterDim()
|
| 148 |
+
{
|
| 149 |
+
unsigned x, y, z;
|
| 150 |
+
__nv_clusterDim_impl(&x, &y, &z);
|
| 151 |
+
return dim3(x,y,z);
|
| 152 |
+
}
|
| 153 |
+
|
| 154 |
+
__SM_90_RT_DECL__ dim3 __clusterRelativeBlockIdx()
|
| 155 |
+
{
|
| 156 |
+
unsigned x, y, z;
|
| 157 |
+
__nv_clusterRelativeBlockIdx_impl(&x, &y, &z);
|
| 158 |
+
return dim3(x,y,z);
|
| 159 |
+
}
|
| 160 |
+
|
| 161 |
+
__SM_90_RT_DECL__ dim3 __clusterGridDimInClusters()
|
| 162 |
+
{
|
| 163 |
+
unsigned x, y, z;
|
| 164 |
+
__nv_clusterGridDimInClusters_impl(&x, &y, &z);
|
| 165 |
+
return dim3(x,y,z);
|
| 166 |
+
}
|
| 167 |
+
|
| 168 |
+
__SM_90_RT_DECL__ dim3 __clusterIdx()
|
| 169 |
+
{
|
| 170 |
+
unsigned x, y, z;
|
| 171 |
+
__nv_clusterIdx_impl(&x, &y, &z);
|
| 172 |
+
return dim3(x,y,z);
|
| 173 |
+
}
|
| 174 |
+
|
| 175 |
+
__SM_90_RT_DECL__ unsigned __clusterRelativeBlockRank()
|
| 176 |
+
{
|
| 177 |
+
return __nv_clusterRelativeBlockRank_impl();
|
| 178 |
+
}
|
| 179 |
+
|
| 180 |
+
__SM_90_RT_DECL__ unsigned __clusterSizeInBlocks()
|
| 181 |
+
{
|
| 182 |
+
return __nv_clusterSizeInBlocks_impl();
|
| 183 |
+
}
|
| 184 |
+
|
| 185 |
+
__SM_90_RT_DECL__ void __cluster_barrier_arrive()
|
| 186 |
+
{
|
| 187 |
+
__nv_cluster_barrier_arrive_impl();
|
| 188 |
+
}
|
| 189 |
+
|
| 190 |
+
__SM_90_RT_DECL__ void __cluster_barrier_arrive_relaxed()
|
| 191 |
+
{
|
| 192 |
+
__nv_cluster_barrier_arrive_relaxed_impl();
|
| 193 |
+
}
|
| 194 |
+
|
| 195 |
+
__SM_90_RT_DECL__ void __cluster_barrier_wait()
|
| 196 |
+
{
|
| 197 |
+
__nv_cluster_barrier_wait_impl();
|
| 198 |
+
}
|
| 199 |
+
|
| 200 |
+
__SM_90_RT_DECL__ void __threadfence_cluster()
|
| 201 |
+
{
|
| 202 |
+
__nv_threadfence_cluster_impl();
|
| 203 |
+
}
|
| 204 |
+
|
| 205 |
+
|
| 206 |
+
/* Define __PTR for atomicAdd prototypes below, undef after done */
|
| 207 |
+
#if (defined(_MSC_VER) && defined(_WIN64)) || defined(__LP64__) || defined(__CUDACC_RTC__)
|
| 208 |
+
#define __PTR "l"
|
| 209 |
+
#else
|
| 210 |
+
#define __PTR "r"
|
| 211 |
+
#endif /*(defined(_MSC_VER) && defined(_WIN64)) || defined(__LP64__) || defined(__CUDACC_RTC__)*/
|
| 212 |
+
|
| 213 |
+
__SM_90_RT_DECL__ float2 atomicAdd(float2 *address, float2 val) {
|
| 214 |
+
return __f2AtomicAdd(address, val);
|
| 215 |
+
}
|
| 216 |
+
|
| 217 |
+
__SM_90_RT_DECL__ float2 atomicAdd_block(float2 *address, float2 val) {
|
| 218 |
+
return __f2AtomicAdd_block(address, val);
|
| 219 |
+
}
|
| 220 |
+
|
| 221 |
+
__SM_90_RT_DECL__ float2 atomicAdd_system(float2 *address, float2 val) {
|
| 222 |
+
return __f2AtomicAdd_system(address, val);
|
| 223 |
+
}
|
| 224 |
+
|
| 225 |
+
__SM_90_RT_DECL__ float4 atomicAdd(float4 *address, float4 val) {
|
| 226 |
+
return __f4AtomicAdd(address, val);
|
| 227 |
+
}
|
| 228 |
+
|
| 229 |
+
__SM_90_RT_DECL__ float4 atomicAdd_block(float4 *address, float4 val) {
|
| 230 |
+
return __f4AtomicAdd_block(address, val);
|
| 231 |
+
}
|
| 232 |
+
|
| 233 |
+
__SM_90_RT_DECL__ float4 atomicAdd_system(float4 *address, float4 val) {
|
| 234 |
+
return __f4AtomicAdd_system(address, val);
|
| 235 |
+
}
|
| 236 |
+
|
| 237 |
+
#endif /* !__CUDA_ARCH__ || __CUDA_ARCH__ >= 900 */
|
| 238 |
+
|
| 239 |
+
#endif /* __cplusplus && __CUDACC__ */
|
| 240 |
+
|
| 241 |
+
#undef __SM_90_RT_DECL__
|
| 242 |
+
|
| 243 |
+
#endif /* !__SM_90_RT_HPP__ */
|
| 244 |
+
|
| 245 |
+
#if defined(__UNDEF_CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS_SM_90_RT_HPP__)
|
| 246 |
+
#undef __CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS__
|
| 247 |
+
#undef __UNDEF_CUDA_INCLUDE_COMPILER_INTERNAL_HEADERS_SM_90_RT_HPP__
|
| 248 |
+
#endif
|