Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/CUDApp/blob/main/src/omega_gpu_graph_om.h # CUDApp CUDA++: AIEN’s GPU machine-code toolchain, runtime and driver client for NVIDIA GPUs without the CUDA toolkit. Hardware coverage and driver replacement limits are explicit. Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `CUDApp / src / omega_gpu_graph_om.h` 28 lines · 1305 bytes Raw Blame History 1 /* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception */ 2 #ifndef OMEGA_GPU_GRAPH_OM_H 3 #define OMEGA_GPU_GRAPH_OM_H 4 #include "cudapp_native.h" 5 #include 6 #include 7 /* Projection only: floats arrive as raw bits, and Omega emits the full node. 8 * Tensor/session objects never cross the seeded numeric ABI. */ 9 static inline uint64_t omega_graph_fbits(float f) { uint32_t u; memcpy(&u,&f,4); return u; } 10 static inline int omega_graph_next(const uint64_t cfg[16], const uint64_t va[64], uint64_t node[64], uint64_t phase) { 11 uint64_t result=0; 12 return omega_mg_node(&result,cfg,16,va,64,node,64,phase)==OMEGA_OK && result==1; 13 } 14 static inline void omega_graph_args(const uint64_t node[64], uint32_t words[32]) { 15 for (unsigned i=0;i