{
  "id": "2012/137",
  "url": "https://opencryptology.org/2012/137",
  "original_url": "https://eprint.iacr.org/2012/137",
  "title": "Usable assembly language for GPUs: a success story",
  "authors": [
    "Daniel J. Bernstein",
    "Hsieh-Chung Chen",
    "Chen-Mou Cheng",
    "Tanja Lange",
    "Ruben Niederhagen",
    "Peter Schwabe",
    "Bo-Yin Yang"
  ],
  "affiliations": null,
  "abstract": "The NVIDIA compilers nvcc and ptxas leave the programmer with only very limited control over register allocation, register spills, instruction selection, and instruction scheduling. In theory a programmer can gain control by writing an entire kernel in van der Laan's cudasm assembly language, but this requires tedious, error-prone tracking of register assignments.\n\nThis paper introduces a higher-level assembly language, qhasm-cudasm, that allows much faster programming while providing the same amount of control over the GPU. This language has been used successfully to build a 90000-machine-instruction kernel for a computation described in detail in the paper, the largest public cryptanalytic project in history. The best GTX 295 speed that has been obtained for this computation with nvcc and ptxas is 25 million iterations per second; the best GTX 295 speed that has been obtained with qhasm-cudasm is 63 million iterations per second.",
  "category": "Implementation",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“Usable assembly language for GPUs: a success story” by Daniel J. Bernstein, Hsieh-Chung Chen, Chen-Mou Cheng, Tanja Lange, Ruben Niederhagen, Peter Schwabe, Bo-Yin Yang, Cryptology ePrint Archive, Paper 2012/137, https://eprint.iacr.org/2012/137. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": true,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2012-03-22T02:47:29Z",
    "updated": "2012-03-22T02:47:29Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2012/137.pdf",
    "sha256": "28744243fdeb0f69d081ad487b2f6dab23ffcab1e6b2213852dbd8d69888fa9d",
    "size": 144556,
    "source": "github-mirror",
    "source_date": "2019-02-25T16:37:15Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2012/137/versions/20190225T163715Z.pdf",
      "captured_at": "2019-02-25T16:37:15Z",
      "label": "copy captured 2019-02-25",
      "source": "github-mirror",
      "source_url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2012/137.pdf",
      "size": 144556,
      "sha256": "28744243fdeb0f69d081ad487b2f6dab23ffcab1e6b2213852dbd8d69888fa9d",
      "is_default_pdf": true
    }
  ],
  "other_sources": [
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20260310001513id_/https://eprint.iacr.org/2012/137.pdf",
      "captured_at": "2026-03-10T00:15:13Z",
      "size": 139601
    },
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2012/137.pdf",
      "captured_at": "2019-02-25T16:37:15Z",
      "size": 144556
    }
  ],
  "bibtex": "@misc{cryptoeprint:2012/137,\n      author = {Daniel J. Bernstein and Hsieh-Chung Chen and Chen-Mou Cheng and Tanja Lange and Ruben Niederhagen and Peter Schwabe and Bo-Yin Yang},\n      title = {Usable assembly language for GPUs: a success story},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2012/137},\n      year = {2012},\n      url = {https://eprint.iacr.org/2012/137}\n}"
}
