mirror of
https://github.com/L-yang-yang/cugenopt.git
synced 2026-04-25 12:16:21 +02:00
Safety fixes (4 critical, 4 warning) from code review: - qap.cuh: fix clone_to_device cross-device D2H by retaining host matrices - types.cuh: add CUDA_CHECK to InjectBuffer, track owner_gpu for safe destroy - types.cuh: add bounds check on lexicographic priority index - solver.cuh: cap migrate_kernel islands to MAX_ISLANDS=64 to prevent stack overflow - multi_gpu_solver.cuh: guard against 0 GPUs, propagate stop_reason from best GPU - types.cuh: warn on SeqRegistry overflow - solver.cuh: warn when constraint_directed/phased_search disabled without AOS Translate all Chinese comments to English across 25+ source files (core/*.cuh, problems/*.cuh, Makefile, multi-GPU tests). Verified on V100S×2 (sm_70, CUDA 12.8): e5 (12 problem types, all optimal), e13 (multi-objective + multi-GPU, 9 configs, all passed). |
||
|---|---|---|
| .. | ||
| assignment.cuh | ||
| bin_packing.cuh | ||
| graph_color.cuh | ||
| jsp.cuh | ||
| knapsack.cuh | ||
| load_balance.cuh | ||
| qap.cuh | ||
| schedule.cuh | ||
| tsp.cuh | ||
| tsp_large.cuh | ||
| tsp_xlarge.cuh | ||
| vrp.cuh | ||
| vrptw.cuh | ||