{
  "id": 321656,
  "title": "RuntimeError: solve: MAGMA library not found in compilation. Please rebuild with MAGMA.",
  "url": "/competitions/sorghum-id-fgvc-9/discussion/321656",
  "author_name": "Pavan Kumar Singh",
  "post_date": "2022-04-28T02:26:52.714000",
  "votes": 0,
  "comment_count": 0,
  "views": 0,
  "content": "<p>I am getting following error when I am using batch augmentation in fastai DataBlock while using GPU, but not getting the error while using CPU.<br>\n<strong>RuntimeError: solve: MAGMA library not found in compilation. Please rebuild with MAGMA.</strong></p>\n<p>Here is my code block:</p>\n<pre><code>datablock = DataBlock(\n    blocks = (ImageBlock, MultiCategoryBlock),\n    get_x = ColReader('image', path/'train_images'),\n    get_y = ColReader('cultivar'),\n    splitter = RandomSplitter(valid_pct=0.2),\n    item_tfms = Resize(225),\n    batch_tfms = aug_transforms(mult=2)\n)\ndls = datablock.dataloaders(train_df)\n</code></pre>",
  "messages": [
    {
      "id": 1770133,
      "postDate": "2022-04-28T02:26:52.713Z",
      "content": "<p>I am getting following error when I am using batch augmentation in fastai DataBlock while using GPU, but not getting the error while using CPU.<br>\n<strong>RuntimeError: solve: MAGMA library not found in compilation. Please rebuild with MAGMA.</strong></p>\n<p>Here is my code block:</p>\n<pre><code>datablock = DataBlock(\n    blocks = (ImageBlock, MultiCategoryBlock),\n    get_x = ColReader('image', path/'train_images'),\n    get_y = ColReader('cultivar'),\n    splitter = RandomSplitter(valid_pct=0.2),\n    item_tfms = Resize(225),\n    batch_tfms = aug_transforms(mult=2)\n)\ndls = datablock.dataloaders(train_df)\n</code></pre>",
      "rawMarkdown": "I am getting following error when I am using batch augmentation in fastai DataBlock while using GPU, but not getting the error while using CPU.\n**RuntimeError: solve: MAGMA library not found in compilation. Please rebuild with MAGMA.**\n\nHere is my code block:\n```\ndatablock = DataBlock(\n    blocks = (ImageBlock, MultiCategoryBlock),\n    get_x = ColReader('image', path/'train_images'),\n    get_y = ColReader('cultivar'),\n    splitter = RandomSplitter(valid_pct=0.2),\n    item_tfms = Resize(225),\n    batch_tfms = aug_transforms(mult=2)\n)\ndls = datablock.dataloaders(train_df)\n```\n"
    }
  ],
  "comments": [],
  "raw_markdown_by_id": {
    "1770133": "I am getting following error when I am using batch augmentation in fastai DataBlock while using GPU, but not getting the error while using CPU.\n**RuntimeError: solve: MAGMA library not found in compilation. Please rebuild with MAGMA.**\n\nHere is my code block:\n```\ndatablock = DataBlock(\n    blocks = (ImageBlock, MultiCategoryBlock),\n    get_x = ColReader('image', path/'train_images'),\n    get_y = ColReader('cultivar'),\n    splitter = RandomSplitter(valid_pct=0.2),\n    item_tfms = Resize(225),\n    batch_tfms = aug_transforms(mult=2)\n)\ndls = datablock.dataloaders(train_df)\n```\n"
  }
}