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_fixture_verify.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_fixture_verify.h` 65 lines · 2971 bytes Raw Blame History 1 /* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception */ 2 #ifndef OMEGA_FIXTURE_VERIFY_H 3 #define OMEGA_FIXTURE_VERIFY_H 4 #include 5 #include 6 #ifndef CUDAPP_MIGRATION_PENDING_C_ENGINE_FIXTURE_REST 7 #define CUDAPP_MIGRATION_PENDING_C_ENGINE_FIXTURE_REST 0 8 #endif 9 uint32_t omega_fv_run(uint64_t *, uint64_t, uint64_t, uint64_t, uint64_t, uint64_t, uint64_t); 10 static inline uint64_t omega_fv_ask(uint64_t op, uint64_t a, uint64_t b, uint64_t c, uint64_t d, uint64_t e) { 11 #if CUDAPP_MIGRATION_PENDING_C_ENGINE_FIXTURE_REST 12 switch (op) { 13 case 0: case 7: { 14 uint64_t mask = op == 7 ? (d >> 32 ? 15 : 7) : e; 15 uint32_t actual[4], expected[4]; 16 memcpy(actual, &a, 8); memcpy(actual+2, &b, 8); 17 memcpy(expected, &c, 8); memcpy(expected+2, &d, 8); 18 for (unsigned i=0;i<4;++i) if ((mask & (1ull<> 32 == d >> 32; 24 case 4: return a == (c|0x0400000000000000ull) && b == d; 25 case 5: return a | (b<