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/tests/test_prefill_host_rest.c # 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 / tests / test_prefill_host_rest.c` 20 lines · 936 bytes Raw Blame History 1 /* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception */ 2 #include "cudapp_native.h" 3 #include 4 #include 5 #include 6 int main(void) { 7 const uint32_t a[]={0,1,2,7,8,9,31,32,33,63,64,65,255,256,257,65535,65536,65537,UINT32_MAX}; 8 for(unsigned i=0;i65536; 10 if(omega_arpfreg(&r,a[i],a[j])||r!=want) return 1; 11 } 12 float x[4096]; 13 const uint32_t cls[]={0,0x80000000,1,0x80000001,0x7f800000,0xff800000,0x7fc00000,0x7f800001,0xc479c000,0xc479bfff,0xc479c001}; 14 for(unsigned i=0;i<4096;i++) memcpy(x+i,cls+i%(sizeof cls/sizeof *cls),4); 15 for(unsigned n=0;n<=4096;n++) { 16 uint64_t want=0,r=99; for(unsigned i=0;i