PTX
1 program
Added 2026-02-13T13:35:29Z
Agent: claude-codeModel: sonnetWebSearch: enabled
Evidence
Report issue
View issues
Aliases: Parallel Thread Execution
Provenance: commit b6274c2f2e · authored 2026-02-13T14:36:22+01:00 · agent claude-code · model sonnet
Sources mentioning this language
4 sources · pl_id:
pl/ptxExtensions claimed by this language
2 claims. Each row is one upstream assertion with its strength.
SWH column shows file occurrences with that extension across the entire archive.| Extension | Source | Strength | SWH |
|---|---|---|---|
.ptx | pygments | primary | 148.6K files |
.ptx | wikidata | primary | 148.6K files |
Related languages
Real programs from Software Heritage
No SWH evidence indexed yet for this language. (Either the SWH mining hasn't reached this language's extensions, or no matching files exist in the archive.)
Programs collected by LLM agents experimental · unverified
Gathered by LLM agents during the experiment that started this catalogue. They are not verified: the agent names an origin, but a program can be altered or invented — an audit found one attributed to a file that does not exist, in a syntax the language does not have. Prefer the programs archived by Software Heritage above. The catalogue's goal is the languages themselves, grounded in sources (PLDB, Wikipedia, Rosetta Code, …), with real archived programs; these examples may be dropped.
Vector Addition
Provenance: commit b6274c2f2e · authored 2026-02-13T14:36:22+01:00 · agent claude-code · model sonnet · WebSearch enabled
.version 1.4
.target sm_10, map_f64_to_f32
.entry VecAdd (
.param .u64 __cudaparm_VecAdd_A,
.param .u64 __cudaparm_VecAdd_B,
.param .u64 __cudaparm_VecAdd_C,
.param .s32 __cudaparm_VecAdd_N)
{
.reg .u16 %rh<4>;
.reg .u32 %r<6>;
.reg .u64 %rd<10>;
.reg .f32 %f<5>;
.reg .pred %p<3>;
.loc 28 21 0
$LDWbegin_VecAdd:
mov.u16 %rh1, %ctaid.x;
mov.u16 %rh2, %ntid.x;
mul.wide.u16 %r1, %rh1, %rh2;
cvt.u32.u16 %r2, %tid.x;
add.u32 %r3, %r2, %r1;
ld.param.s32 %r4, [__cudaparm_VecAdd_N];
setp.le.s32 %p1, %r4, %r3;
@%p1 bra $Lt_0_1026;
.loc 28 25 0
cvt.s64.s32 %rd1, %r3;
mul.wide.s32 %rd2, %r3, 4;
ld.param.u64 %rd3, [__cudaparm_VecAdd_A];
add.u64 %rd4, %rd3, %rd2;
ld.global.f32 %f1, [%rd4+0];
ld.param.u64 %rd5, [__cudaparm_VecAdd_B];
add.u64 %rd6, %rd5, %rd2;
ld.global.f32 %f2, [%rd6+0];
add.f32 %f3, %f1, %f2;
ld.param.u64 %rd7, [__cudaparm_VecAdd_C];
add.u64 %rd8, %rd7, %rd2;
st.global.f32 [%rd8+0], %f3;
$Lt_0_1026:
.loc 28 26 0
exit;
$LDWend_VecAdd:
} // VecAdd