[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M79007PNS24VWC5KJ6Z4WCS5":3,"skill-same:01M79007PNS24VWC5KJ6Z4WCS5":67},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":27,"commitSha":28,"skillDirectory":29,"forksCount":30,"repositoryHtmlUrl":31,"repositoryHomepageUrl":6,"ownerHtmlUrl":32,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":33,"install":34,"resources":46},"01M79007PNS24VWC5KJ6Z4WCS5","cuda-extensions",null,"Safely diagnose and plan use of this repository's legacy 2D\u002F3D NMS and RoIAlign CUDA extensions without compiling or treating precompiled binaries as portable.","VectorSpaceLab\u002FAREX-Skill","VectorSpaceLab","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F180637102?v=4","01M7538C5WPSJGWF7KHR4EFZ9F","01M7538C6R2GFP53NPXTCZNBRT",351,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Fmedical-detection-toolkit\u002Fsub-skills\u002Fcuda-extensions\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: cuda-extensions\ndescription: \"Safely diagnose and plan use of this repository's legacy 2D\u002F3D NMS\n  and RoIAlign CUDA extensions without compiling or treating precompiled\n  binaries as portable.\"\nmetadata:\n  disco-role: operating\ndisable-model-invocation: true\nlicense: Apache 2.0\n---\n\n# Legacy CUDA extensions\n\nUse this sub-skill when a model import, proposal stage, RoIAlign call, or\ninstallation question reaches `cuda_functions\u002F`. It is an operating guide for\ncompatibility diagnosis and source-backed interface selection, not a build\nrecipe to execute automatically.\n\n## Non-negotiable boundaries\n\n- **Do not run `build.py` from this skill.** It invokes the removed\n  `torch.utils.ffi.create_extension` API and can write native build output.\n  `scripts\u002Fcheck_legacy_cuda_compat.py` is the read-only diagnostic entry point.\n- **Do not compile the checked-in CUDA sources as part of normal diagnosis.**\n  The host has no `nvcc`, and source modernization plus ABI validation is a\n  separate engineering task.\n- Treat exact execution of the historical detector path as\n  **optional\u002Funverified**. This includes MRCNN\u002FU-FRCNN\u002FRetinaNet\u002FRetina U-Net\n  runs that import the custom operators. A framework-level CUDA tensor smoke is\n  evidence only for PyTorch and the driver; it is not evidence that these\n  extensions work.\n- There is no CPU substitute for claiming exact legacy detector execution.\n  The source contains `nms_cpu`, and RoIAlign has a CPU branch, but using those\n  branches does not verify the model's imported `nms_gpu`\u002Flegacy CUDA ABI path.\n  Do not silently change a CUDA failure into a CPU result.\n- Do not load or inspect the checked-in `*.so`, `*.o`, or swap files as runtime\n  evidence. They are host- and ABI-specific artifacts; the source and wrappers\n  are the portable evidence.\n\nFor a one-command, non-mutating report, run from the repository root:\n\n```bash\npython skills\u002Fdisco\u002Fmedical-detection-toolkit\u002Fsub-skills\u002Fcuda-extensions\u002Fscripts\u002Fcheck_legacy_cuda_compat.py \\\n  --repo-root .\n```\n\nAdd `--framework-cuda-smoke` only when a tiny PyTorch allocation is safe on the\nselected GPU. Read [compatibility](references\u002Fcompatibility.md) before\ninterpreting the result, then use [troubleshooting](references\u002Ftroubleshooting.md)\nfor a stop\u002Froute decision.\n\n## Current verified classification\n\nThe prepared inspection stack reports a modern CUDA-capable PyTorch wheel,\nCUDA available, and an A100-class (`sm_80`) device. The host driver reports CUDA 13.0. `nvcc` is absent and\n`torch.utils.ffi` cannot be imported. The repository pins `torch==0.4.1` and\nits README describes precompiled TitanX-era operators. Therefore the current\nhost is useful for a safe PyTorch CUDA smoke and static inspection, but it is\nnot a verified environment for the legacy operators or exact detector path.\nThese facts are recorded with evidence in\n[compatibility.md](references\u002Fcompatibility.md); do not weaken this\nclassification because `nvidia-smi` reports a newer driver or because a `.so`\nfile exists.\n\n## Routing procedure\n\n1. **Run the read-only checker.** Record the Python interpreter, torch\u002Fdriver\n   facts, presence of `torch.utils.ffi`, `nvcc`, README architecture mappings,\n   build inputs, and native artifacts. The checker never imports a custom\n   extension and never calls `build.py`.\n2. **Separate framework CUDA from custom-op CUDA.** If the optional framework\n   smoke succeeds, report only that `torch.cuda` can allocate and execute a\n   tiny tensor on the selected device. A failure due to device memory, device\n   selection, or driver state is a host issue; it still does not justify\n   trying the legacy extension.\n3. **Check dimensionality before reading signatures.** `cf.dim == 2` routes\n   model proposal\u002Fdetection NMS to 2D; a 3D configuration routes to 3D. The\n   Mask\u002FFaster R-CNN family additionally routes feature maps to the direct\n   `ra2D` or `ra3D` function wrapper. See\n   [custom-ops.md](references\u002Fcustom-ops.md).\n4. **Classify compatibility blockers.** Missing `torch.utils.ffi`, missing\n   `nvcc`, an unsupported architecture, or an unverified precompiled binary is\n   a stop condition—not a prompt to patch imports, symlink libraries, or use\n   CPU silently.\n5. **Route upward.** For model selection, configuration, tensor shapes, and\n   output contracts, continue with\n   [models-and-architectures](..\u002Fmodels-and-architectures\u002FSKILL.md). For\n   prediction, postprocessing, 2D-to-3D merging, and saved-result behavior,\n   continue with [inference-and-evaluation](..\u002Finference-and-evaluation\u002FSKILL.md).\n   Return here only for custom-op import\u002Fbuild\u002FABI diagnosis.\n\n## Interfaces at a glance\n\n### NMS\n\n- `cuda_functions\u002Fnms_2D\u002Fpth_nms.py:nms_gpu(dets, thresh)` accepts a contiguous\n  tensor with columns `(y1, x1, y2, x2, score)`, sorts by column 4, calls the\n  legacy `_ext.nms.gpu_nms`, and returns selected indices on CUDA. Its explicit\n  `nms_cpu` uses the same five-column convention but is not a CUDA execution\n  substitute.\n- `cuda_functions\u002Fnms_3D\u002Fpth_nms.py:nms_gpu(dets, thresh)` accepts\n  `(y1, x1, y2, x2, z1, z2, score)`, sorts by the final column, calls the same\n  legacy symbol, and returns selected CUDA indices. Its `nms_cpu` uses the\n  seven-column convention.\n- Both native implementations use inclusive `+1` extents in IoU and suppress\n  when overlap is `>= thresh` on CPU. The CUDA kernels use a 64-bit suppression\n  mask with 64 threads per block and perform the final keep scan on CPU.\n- `models\u002Fmrcnn.py`, `models\u002Fufrcnn.py`, `models\u002Fretina_net.py`, and\n  `models\u002Fretina_unet.py` import `nms_gpu` directly for RPN and\u002For final\n  detection suppression. These imports make exact legacy detector execution\n  depend on the custom extension even when ordinary PyTorch CUDA is healthy.\n\n### RoIAlign \u002F crop-and-resize\n\n- The 2D direct wrapper is\n  `cuda_functions\u002Froi_align_2D\u002Froi_align\u002Fcrop_and_resize.py:CropAndResizeFunction`.\n  Construct it as `(crop_height, crop_width, extrapolation_value=0)` and call\n  it with `(image, boxes, box_ind)`. The image is `N,C,H,W`; boxes are\n  `M,4` normalized `(y1,x1,y2,x2)`; `box_ind` is length `M`; output is\n  `M,C,crop_height,crop_width`.\n- The 3D direct wrapper is\n  `cuda_functions\u002Froi_align_3D\u002Froi_align\u002Fcrop_and_resize.py:CropAndResizeFunction`.\n  Construct it as `(crop_height, crop_width, crop_zdepth,\n  extrapolation_value=0)`. Its intended image is `N,C,H,W,Z`, boxes are\n  `M,6` normalized `(y1,x1,y2,x2,z1,z2)`, and output is\n  `M,C,crop_height,crop_width,crop_zdepth`.\n- `models\u002Fmrcnn.py` and `models\u002Fufrcnn.py` call the direct wrappers as `ra2D`\n  or `ra3D` in `pyramid_roi_align`; model ROIs are normalized and include a\n  batch-index column before the wrapper separates `boxes` and `batch_ixs`.\n- The optional `RoIAlign` classes in `roi_align.py` accept pixel-coordinate\n  boxes in an `(x1,y1,x2,y2)` docstring and normalize them when\n  `transform_fpcoor=True`. The 2D class is coherent with the 2D constructor.\n  The checked-in 3D `RoIAlign` class is not a reliable 3D interface: it has a\n  2D docstring\u002Fcoordinate split and calls `CropAndResizeFunction` without the\n  required `crop_zdepth`. Use the direct 3D wrapper facts above and treat this\n  class as source evidence of drift, not as verified API.\n\nFor exact argument and dispatch details, follow the linked\n[custom-ops reference](references\u002Fcustom-ops.md). For model-level shape and\nconfiguration contracts, follow [models-and-architectures](..\u002Fmodels-and-architectures\u002FSKILL.md).\n\n## Build prerequisites (read-only planning only)\n\nThe README's historical sequence manually compiles an architecture-specific\nCUDA object with `nvcc`, then invokes the per-op `build.py`:\n\n```text\ncuda_functions\u002Fnms_xD\u002Fsrc\u002Fcuda\u002F\nnvcc -c -o nms_kernel.cu.o nms_kernel.cu -x cu -Xcompiler -fPIC -arch=[arch]\npython build.py\n\ncuda_functions\u002Froi_align_xD\u002Froi_align\u002Fsrc\u002Fcuda\u002F\nnvcc -c -o crop_and_resize_kernel.cu.o crop_and_resize_kernel.cu -x cu -Xcompiler -fPIC -arch=[arch]\npython build.py\n```\n\nThe README examples map TitanX to `sm_52`, GTX 960M to `sm_50`, and GTX\n1070\u002F1080(Ti) to `sm_61`; they do not document A100 `sm_80`. Each `build.py`\nuses `torch.utils.ffi.create_extension`, old TH\u002FTHC tensor APIs, C\u002FCUDA\nsources, and a precompiled `.cu.o` in `extra_objects`. This means all of the\nfollowing are prerequisites for a real legacy build: a matching historical\nPyTorch\u002FFFI ABI (the package pins 0.4.1), C\u002FCUDA compiler headers and runtime,\n`nvcc`, a target architecture flag, and compatible source\u002Fbuild tooling. A\nCUDA-capable driver alone is insufficient. Never turn this planning section\ninto an unreviewed build command; use the checker and stop on the blockers in\n[troubleshooting](references\u002Ftroubleshooting.md).\n\n## Review checklist\n\nBefore handing a CUDA issue to another skill or user, record:\n\n- the exact `cf.dim`, model family, and whether the failure is at NMS, RoIAlign,\n  import, or build planning;\n- the input shape\u002Fcolumn convention and whether tensors are contiguous and on\n  CUDA;\n- checker output for torch, `torch.utils.ffi`, `nvcc`, device capability, and\n  README arch mapping;\n- whether a checked-in binary was merely present or actually verified (the\n  default is **not verified**);\n- a clear optional\u002Funverified label for exact detector execution, with no CPU\n  substitution; and\n- the next route: models\u002Fconfiguration, inference\u002Fresult handling, or a\n  separate source-modernization project.\n\nAll bundled material is cross-linked here: [custom-ops.md](references\u002Fcustom-ops.md),\n[compatibility.md](references\u002Fcompatibility.md),\n[troubleshooting.md](references\u002Ftroubleshooting.md), and\n[check_legacy_cuda_compat.py](scripts\u002Fcheck_legacy_cuda_compat.py).\n","# Legacy CUDA extensions\n\nUse this sub-skill when a model import, proposal stage, RoIAlign call, or\ninstallation question reaches `cuda_functions\u002F`. It is an operating guide for\ncompatibility diagnosis and source-backed interface selection, not a build\nrecipe to execute automatically.\n\n## Non-negotiable boundaries\n\n- **Do not run `build.py` from this skill.** It invokes the removed\n  `torch.utils.ffi.create_extension` API and can write native build output.\n  `scripts\u002Fcheck_legacy_cuda_compat.py` is the read-only diagnostic entry point.\n- **Do not compile the checked-in CUDA sources as part of normal diagnosis.**\n  The host has no `nvcc`, and source modernization plus ABI validation is a\n  separate engineering task.\n- Treat exact execution of the historical detector path as\n  **optional\u002Funverified**. This includes MRCNN\u002FU-FRCNN\u002FRetinaNet\u002FRetina U-Net\n  runs that import the custom operators. A framework-level CUDA tensor smoke is\n  evidence only for PyTorch and the driver; it is not evidence that these\n  extensions work.\n- There is no CPU substitute for claiming exact legacy detector execution.\n  The source contains `nms_cpu`, and RoIAlign has a CPU branch, but using those\n  branches does not verify the model's imported `nms_gpu`\u002Flegacy CUDA ABI path.\n  Do not silently change a CUDA failure into a CPU result.\n- Do not load or inspect the checked-in `*.so`, `*.o`, or swap files as runtime\n  evidence. They are host- and ABI-specific artifacts; the source and wrappers\n  are the portable evidence.\n\nFor a one-command, non-mutating report, run from the repository root:\n\n```bash\npython skills\u002Fdisco\u002Fmedical-detection-toolkit\u002Fsub-skills\u002Fcuda-extensions\u002Fscripts\u002Fcheck_legacy_cuda_compat.py \\\n  --repo-root .\n```\n\nAdd `--framework-cuda-smoke` only when a tiny PyTorch allocation is safe on the\nselected GPU. Read [compatibility](references\u002Fcompatibility.md) before\ninterpreting the result, then use [troubleshooting](references\u002Ftroubleshooting.md)\nfor a stop\u002Froute decision.\n\n## Current verified classification\n\nThe prepared inspection stack reports a modern CUDA-capable PyTorch wheel,\nCUDA available, and an A100-class (`sm_80`) device. The host driver reports CUDA 13.0. `nvcc` is absent and\n`torch.utils.ffi` cannot be imported. The repository pins `torch==0.4.1` and\nits README describes precompiled TitanX-era operators. Therefore the current\nhost is useful for a safe PyTorch CUDA smoke and static inspection, but it is\nnot a verified environment for the legacy operators or exact detector path.\nThese facts are recorded with evidence in\n[compatibility.md](references\u002Fcompatibility.md); do not weaken this\nclassification because `nvidia-smi` reports a newer driver or because a `.so`\nfile exists.\n\n## Routing procedure\n\n1. **Run the read-only checker.** Record the Python interpreter, torch\u002Fdriver\n   facts, presence of `torch.utils.ffi`, `nvcc`, README architecture mappings,\n   build inputs, and native artifacts. The checker never imports a custom\n   extension and never calls `build.py`.\n2. **Separate framework CUDA from custom-op CUDA.** If the optional framework\n   smoke succeeds, report only that `torch.cuda` can allocate and execute a\n   tiny tensor on the selected device. A failure due to device memory, device\n   selection, or driver state is a host issue; it still does not justify\n   trying the legacy extension.\n3. **Check dimensionality before reading signatures.** `cf.dim == 2` routes\n   model proposal\u002Fdetection NMS to 2D; a 3D configuration routes to 3D. The\n   Mask\u002FFaster R-CNN family additionally routes feature maps to the direct\n   `ra2D` or `ra3D` function wrapper. See\n   [custom-ops.md](references\u002Fcustom-ops.md).\n4. **Classify compatibility blockers.** Missing `torch.utils.ffi`, missing\n   `nvcc`, an unsupported architecture, or an unverified precompiled binary is\n   a stop condition—not a prompt to patch imports, symlink libraries, or use\n   CPU silently.\n5. **Route upward.** For model selection, configuration, tensor shapes, and\n   output contracts, continue with\n   [models-and-architectures](..\u002Fmodels-and-architectures\u002FSKILL.md). For\n   prediction, postprocessing, 2D-to-3D merging, and saved-result behavior,\n   continue with [inference-and-evaluation](..\u002Finference-and-evaluation\u002FSKILL.md).\n   Return here only for custom-op import\u002Fbuild\u002FABI diagnosis.\n\n## Interfaces at a glance\n\n### NMS\n\n- `cuda_functions\u002Fnms_2D\u002Fpth_nms.py:nms_gpu(dets, thresh)` accepts a contiguous\n  tensor with columns `(y1, x1, y2, x2, score)`, sorts by column 4, calls the\n  legacy `_ext.nms.gpu_nms`, and returns selected indices on CUDA. Its explicit\n  `nms_cpu` uses the same five-column convention but is not a CUDA execution\n  substitute.\n- `cuda_functions\u002Fnms_3D\u002Fpth_nms.py:nms_gpu(dets, thresh)` accepts\n  `(y1, x1, y2, x2, z1, z2, score)`, sorts by the final column, calls the same\n  legacy symbol, and returns selected CUDA indices. Its `nms_cpu` uses the\n  seven-column convention.\n- Both native implementations use inclusive `+1` extents in IoU and suppress\n  when overlap is `>= thresh` on CPU. The CUDA kernels use a 64-bit suppression\n  mask with 64 threads per block and perform the final keep scan on CPU.\n- `models\u002Fmrcnn.py`, `models\u002Fufrcnn.py`, `models\u002Fretina_net.py`, and\n  `models\u002Fretina_unet.py` import `nms_gpu` directly for RPN and\u002For final\n  detection suppression. These imports make exact legacy detector execution\n  depend on the custom extension even when ordinary PyTorch CUDA is healthy.\n\n### RoIAlign \u002F crop-and-resize\n\n- The 2D direct wrapper is\n  `cuda_functions\u002Froi_align_2D\u002Froi_align\u002Fcrop_and_resize.py:CropAndResizeFunction`.\n  Construct it as `(crop_height, crop_width, extrapolation_value=0)` and call\n  it with `(image, boxes, box_ind)`. The image is `N,C,H,W`; boxes are\n  `M,4` normalized `(y1,x1,y2,x2)`; `box_ind` is length `M`; output is\n  `M,C,crop_height,crop_width`.\n- The 3D direct wrapper is\n  `cuda_functions\u002Froi_align_3D\u002Froi_align\u002Fcrop_and_resize.py:CropAndResizeFunction`.\n  Construct it as `(crop_height, crop_width, crop_zdepth,\n  extrapolation_value=0)`. Its intended image is `N,C,H,W,Z`, boxes are\n  `M,6` normalized `(y1,x1,y2,x2,z1,z2)`, and output is\n  `M,C,crop_height,crop_width,crop_zdepth`.\n- `models\u002Fmrcnn.py` and `models\u002Fufrcnn.py` call the direct wrappers as `ra2D`\n  or `ra3D` in `pyramid_roi_align`; model ROIs are normalized and include a\n  batch-index column before the wrapper separates `boxes` and `batch_ixs`.\n- The optional `RoIAlign` classes in `roi_align.py` accept pixel-coordinate\n  boxes in an `(x1,y1,x2,y2)` docstring and normalize them when\n  `transform_fpcoor=True`. The 2D class is coherent with the 2D constructor.\n  The checked-in 3D `RoIAlign` class is not a reliable 3D interface: it has a\n  2D docstring\u002Fcoordinate split and calls `CropAndResizeFunction` without the\n  required `crop_zdepth`. Use the direct 3D wrapper facts above and treat this\n  class as source evidence of drift, not as verified API.\n\nFor exact argument and dispatch details, follow the linked\n[custom-ops reference](references\u002Fcustom-ops.md). For model-level shape and\nconfiguration contracts, follow [models-and-architectures](..\u002Fmodels-and-architectures\u002FSKILL.md).\n\n## Build prerequisites (read-only planning only)\n\nThe README's historical sequence manually compiles an architecture-specific\nCUDA object with `nvcc`, then invokes the per-op `build.py`:\n\n```text\ncuda_functions\u002Fnms_xD\u002Fsrc\u002Fcuda\u002F\nnvcc -c -o nms_kernel.cu.o nms_kernel.cu -x cu -Xcompiler -fPIC -arch=[arch]\npython build.py\n\ncuda_functions\u002Froi_align_xD\u002Froi_align\u002Fsrc\u002Fcuda\u002F\nnvcc -c -o crop_and_resize_kernel.cu.o crop_and_resize_kernel.cu -x cu -Xcompiler -fPIC -arch=[arch]\npython build.py\n```\n\nThe README examples map TitanX to `sm_52`, GTX 960M to `sm_50`, and GTX\n1070\u002F1080(Ti) to `sm_61`; they do not document A100 `sm_80`. Each `build.py`\nuses `torch.utils.ffi.create_extension`, old TH\u002FTHC tensor APIs, C\u002FCUDA\nsources, and a precompiled `.cu.o` in `extra_objects`. This means all of the\nfollowing are prerequisites for a real legacy build: a matching historical\nPyTorch\u002FFFI ABI (the package pins 0.4.1), C\u002FCUDA compiler headers and runtime,\n`nvcc`, a target architecture flag, and compatible source\u002Fbuild tooling. A\nCUDA-capable driver alone is insufficient. Never turn this planning section\ninto an unreviewed build command; use the checker and stop on the blockers in\n[troubleshooting](references\u002Ftroubleshooting.md).\n\n## Review checklist\n\nBefore handing a CUDA issue to another skill or user, record:\n\n- the exact `cf.dim`, model family, and whether the failure is at NMS, RoIAlign,\n  import, or build planning;\n- the input shape\u002Fcolumn convention and whether tensors are contiguous and on\n  CUDA;\n- checker output for torch, `torch.utils.ffi`, `nvcc`, device capability, and\n  README arch mapping;\n- whether a checked-in binary was merely present or actually verified (the\n  default is **not verified**);\n- a clear optional\u002Funverified label for exact detector execution, with no CPU\n  substitution; and\n- the next route: models\u002Fconfiguration, inference\u002Fresult handling, or a\n  separate source-modernization project.\n\nAll bundled material is cross-linked here: [custom-ops.md](references\u002Fcustom-ops.md),\n[compatibility.md](references\u002Fcompatibility.md),\n[troubleshooting.md](references\u002Ftroubleshooting.md), and\n[check_legacy_cuda_compat.py](scripts\u002Fcheck_legacy_cuda_compat.py).\n",{"name":5,"license":23,"metadata":24,"description":7,"disable-model-invocation":26},"Apache 2.0",{"disco-role":25},"operating",true,"main","ac3fe1afa80fb9a09775ecfb2b6cc3ba850a2db6","skills\u002Frepositories\u002Frepo-skills\u002Fmedical-detection-toolkit\u002Fsub-skills\u002Fcuda-extensions",27,"https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab","2026-09-03 10:25:21",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":26},[36,39,42],{"tool":37,"command":38},"npx","npx skills add VectorSpaceLab\u002FAREX-Skill --skill cuda-extensions",{"tool":40,"command":41},"bunx","bunx skills add VectorSpaceLab\u002FAREX-Skill --skill cuda-extensions",{"tool":43,"command":44},"pnpm","pnpm dlx skills add VectorSpaceLab\u002FAREX-Skill --skill cuda-extensions","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Fmedical-detection-toolkit\u002Fsub-skills\u002Fcuda-extensions\u002FSKILL.md",[47,53,57,61],{"path":48,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":51,"sourceHtmlUrl":52},"references\u002Fcompatibility.md","REFERENCE","参考文档",6744,"https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Fmedical-detection-toolkit\u002Fsub-skills\u002Fcuda-extensions\u002Freferences\u002Fcompatibility.md",{"path":54,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":55,"sourceHtmlUrl":56},"references\u002Fcustom-ops.md",7865,"https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Fmedical-detection-toolkit\u002Fsub-skills\u002Fcuda-extensions\u002Freferences\u002Fcustom-ops.md",{"path":58,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":59,"sourceHtmlUrl":60},"references\u002Ftroubleshooting.md",6392,"https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Fmedical-detection-toolkit\u002Fsub-skills\u002Fcuda-extensions\u002Freferences\u002Ftroubleshooting.md",{"path":62,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":65,"sourceHtmlUrl":66},"scripts\u002Fcheck_legacy_cuda_compat.py","SCRIPT","脚本",2344,"https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Frepositories\u002Frepo-skills\u002Fmedical-detection-toolkit\u002Fsub-skills\u002Fcuda-extensions\u002Fscripts\u002Fcheck_legacy_cuda_compat.py",[68,75,82,89,96,103],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":18},"01M799NYSH1R3RVAHSM2D88Y84","passnet-triton-opt","Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block\u002Fgrid\u002Fwarp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Ftask-oriented\u002FPassNet\u002Fskills\u002Fpassnet-triton-opt\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":18},"01M799NS5APEC0N1FZ7XZVW6BN","passnet-solve","END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Ftask-oriented\u002FPassNet\u002Fskills\u002Fpassnet-solve\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":18},"01M799NNY9BKSM21V5R7QVTBJX","passnet-skill","PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under .\u002Fpass_dir\u002F, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Ftask-oriented\u002FPassNet\u002Fskills\u002Fpassnet-skill\u002FSKILL.md",[],[],{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":18},"01M799NHH6NP7Z1RK77KGXAN6S","passnet-pattern-fusion","Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()\u002Freplacement_args()\u002Freplacement_func() files, when a pass \"failed to match\", or when deciding how to fuse multiple kernels\u002Fops.","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Ftask-oriented\u002FPassNet\u002Fskills\u002Fpassnet-pattern-fusion\u002FSKILL.md",[],[],{"skillNo":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":18},"01M799ND2J4WNC2PGAZ0A06NDF","passnet-orchestrate","Round\u002Fbatch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep\u002Frevert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Ftask-oriented\u002FPassNet\u002Fskills\u002Fpassnet-orchestrate\u002FSKILL.md",[],[],{"skillNo":104,"name":105,"nameZh":6,"description":106,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":107,"categories":108,"keywords":109,"publishedAt":18},"01M799N8SBTMY02ZDG2AZF5ZWE","passnet-feedback","Fast, deterministic feedback for PassNet work: pre-flight pattern\u002Fmatch verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Ftask-oriented\u002FPassNet\u002Fskills\u002Fpassnet-feedback\u002FSKILL.md",[],[]]