{
  "id": 98838,
  "title": "How to fix \"Enforce fail at CPUAllocator.cpp\" error in PyTorch",
  "url": "/competitions/aptos2019-blindness-detection/discussion/98838",
  "author_name": "William",
  "post_date": "2019-07-06T20:23:35.529000",
  "votes": 0,
  "comment_count": 0,
  "views": 0,
  "content": "<p>I get this error when I run my kernel:\n<code>\nRuntimeError: [enforce fail at CPUAllocator.cpp:56] posix_memalign(&amp;data, gAlignment, nbytes) == 0. 12 vs 0\n</code>\nWhat does it mean, and how do I fix it?\nKernel code: <a href=\"https://www.kaggle.com/williamqin/kernelae94df83f9?scriptVersionId=16736447\">https://www.kaggle.com/williamqin/kernelae94df83f9?scriptVersionId=16736447</a></p>",
  "messages": [
    {
      "id": 569530,
      "postDate": "2019-07-06T20:23:35.530Z",
      "content": "<p>I get this error when I run my kernel:\n<code>\nRuntimeError: [enforce fail at CPUAllocator.cpp:56] posix_memalign(&amp;data, gAlignment, nbytes) == 0. 12 vs 0\n</code>\nWhat does it mean, and how do I fix it?\nKernel code: <a href=\"https://www.kaggle.com/williamqin/kernelae94df83f9?scriptVersionId=16736447\">https://www.kaggle.com/williamqin/kernelae94df83f9?scriptVersionId=16736447</a></p>",
      "rawMarkdown": "I get this error when I run my kernel:\n```\nRuntimeError: [enforce fail at CPUAllocator.cpp:56] posix_memalign(&amp;data, gAlignment, nbytes) == 0. 12 vs 0\n```\nWhat does it mean, and how do I fix it?\nKernel code: https://www.kaggle.com/williamqin/kernelae94df83f9?scriptVersionId=16736447"
    }
  ],
  "comments": [],
  "raw_markdown_by_id": {
    "569530": "I get this error when I run my kernel:\n```\nRuntimeError: [enforce fail at CPUAllocator.cpp:56] posix_memalign(&amp;data, gAlignment, nbytes) == 0. 12 vs 0\n```\nWhat does it mean, and how do I fix it?\nKernel code: https://www.kaggle.com/williamqin/kernelae94df83f9?scriptVersionId=16736447"
  }
}