# stage2: add support for Nvptx target · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/0e1afb4d986c3316c6f024be50612b0a6c66777b)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 0e1afb4d986c3316c6f024be50612b0a6c66777b

Requested commit: 0e1afb4d986c3316c6f024be50612b0a6c66777b

Commit: 0e1afb4d986c3316c6f024be50612b0a6c66777b

Tree: 7b2bc69ae80604165ce4d11bf72ef104d4b51f86

Author: gwenzek

Committer: GitHub

## Message

```
stage2: add support for Nvptx target

sample command:

/home/guw/github/zig/stage2/bin/zig build-obj cuda_kernel.zig -target nvptx64-cuda -O ReleaseSafe
this will create a kernel.ptx

expose PtxKernel call convention from LLVM
kernels are `export fn f() callconv(.PtxKernel)`
```

## Parents

- [fbc06f9c9151205896fb167b087506d6580946c4](https://git.cafe/gitcafe/zig/commit/fbc06f9c9151205896fb167b087506d6580946c4?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/0e1afb4d986c3316c6f024be50612b0a6c66777b?format=markdown)
