diff options
author | Sean McLemon <[email protected]> | 2024-02-13 21:55:21 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2024-02-13 21:55:21 +0100 |
commit | f2a44e0e053c788cbe4279205a7d3b9628fe6e6a (patch) | |
tree | 6f4cf1b95da3cde0f9133fc478f8923cdf300554 | |
parent | 1b9ba2b2333746c5e2b05a2bf24fa6ec3828dcdf (diff) | |
download | ZLUDA-f2a44e0e053c788cbe4279205a7d3b9628fe6e6a.tar.gz ZLUDA-f2a44e0e053c788cbe4279205a7d3b9628fe6e6a.zip |
Tidy up some English in ARCHITECTURE.md (#61)
-rw-r--r-- | ARCHITECTURE.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ARCHITECTURE.md b/ARCHITECTURE.md index 466a481..825f190 100644 --- a/ARCHITECTURE.md +++ b/ARCHITECTURE.md @@ -73,7 +73,7 @@ Driver API is the lowest-level user-mode API. Runtime API builds on top of Drive Driver API implementation is relatively straightforward: for each function ZLUDA calls a similarly called HIP runtime function. HIP is highly compatible with CUDA. For example, `cuDeviceGetAttribute(...)` is implemented by remapping some of the arguments to HIP versions and calling `hipDeviceGetAttribute(...)`. There's one exception: functions for compiling GPU code: `cuModuleLoadData(...)`, `cuModuleLoadDataEx(...)`. It's covered in the section [CUDA GPU code compiler](#cuda-gpu-code-compiler). -In addition to Driver API, Runtime API relies on CUDA Dark API. CUDA Driver API exposes function `cuGetExportTable(...)`. This function accepts a GUID and returns a table of function pointers. Those pointer point to undocumented functions forming CUDA Dark API. It's impossible to tell how many of them exist, but debugging experience suggests there are tens of function pointers across tens of tables. A typical application will use one or two most common. Due to they undocumented nature they are exclusively used by Runtime API and NVIDIA libraries (and in by CUDA applications in turn). We don't have names of those functions nor names or types of the arguments. This makes implementing them time-consuming. Dark API functions are are reverse-engineered and implemented by ZLUDA on case-by-case basis once we observe an application making use of it. +In addition to Driver API, Runtime API relies on CUDA Dark API. CUDA Driver API exposes function `cuGetExportTable(...)`. This function accepts a GUID and returns a table of function pointers. Those pointer point to undocumented functions forming CUDA Dark API. It's impossible to tell how many of them exist, but debugging experience suggests there are dozens of function pointers across dozens of tables. A typical application will use one or two of the most common ones. Due to their undocumented nature they are exclusively used by the Runtime API and NVIDIA libraries (and in by CUDA applications in turn). We don't have the names of those functions nor the names or types of their arguments. This makes implementing them time-consuming. Dark API functions are reverse-engineered and implemented by ZLUDA on a case-by-case basis once we observe an application making use of it. In addition, CUDA applications rely on various NVIDIA-provided libraries: NVML, cuBLAS, cuSPARSE. They are implemented by ZLUDA similarly - by providing a library with the same name and with the same functions, which call to native AMD libraries. |