# CDNA2 / MI250X support?

**URL:** <https://forum.modular.com/t/cdna2-mi250x-support/2821>\
**Category:** GPU Programming\
**Created:** [March 8, 2026, 2:57am UTC](https://forum.modular.com/t/cdna2-mi250x-support/2821 "2026-03-08T02:57:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bwibking](https://avatars.discourse-cdn.com/v4/letter/b/dc4da7/32.png) [@bwibking](https://forum.modular.com/u/bwibking)\
**Post date:** [March 8, 2026, 2:57am UTC](https://forum.modular.com/t/cdna2-mi250x-support/2821/1 "2026-03-08T02:57:33Z")

</div>

Hi,

I have been running Mojo successfully on Hopper and Apple Silicon, but my production workloads run on a Cray EX AMD MI250X system. I tried running it there out of the box, but I get “no compatible GPU detected.” Are there any environment variables or other settings I can change to try to force it to compile on CDNA2?

Is this something that’s feasible for an external user to add once Mojo is open-sourced?

Thanks,  
Ben

---

<div class="post-metadata">

**Author:** ![BradLarson](https://sea1.discourse-cdn.com/flex001/user_avatar/forum.modular.com/bradlarson/32/62_2.png) [@BradLarson](https://forum.modular.com/u/BradLarson)\
**Post date:** [March 8, 2026, 3:48am UTC](https://forum.modular.com/t/cdna2-mi250x-support/2821/2 "2026-03-08T03:48:47Z")

</div>

You should be able to add this support today, assuming you can run a HIP driver at or newer than 6.3 on your system. The first place you’d need to add support would be in the [`info.mojo` file within `gpu.host`](https://github.com/modular/modular/blob/main/mojo/stdlib/std/gpu/host/info.mojo#L1624). Within that file, you’ll see how we registered a number of other similar GPU families. Once you’ve added that there, [you can use Bazel to build and run tests](https://github.com/modular/modular/blob/main/mojo/stdlib/docs/development.md#building-the-standard-library) using your customized Mojo standard library. For example, you can verify that your new support detects your GPU and can do very basic vector addition with:

```auto
./bazelw run //mojo/examples/gpu-functions:vector_addition

```

which will build and run everything in the Mojo standard library and try to then compile and run a basic vector addition example.

For more complex models, you may need to add paths in relevant kernels that take into account the differences between CDNA2 and our current CDNA3 / CDNA4 paths. Again, y[ou can use Bazel to build and test models on your platform](https://forum.modular.com/t/max-models-can-now-use-customized-mojo-kernels-and-standard-library/2742) to see where changes need to be made.

None of this should require internal compiler access, and you should be fully capable of implementing it yourself using the OSS `modular` repository.

---

<div class="post-metadata">

**Author:** ![bwibking](https://avatars.discourse-cdn.com/v4/letter/b/dc4da7/32.png) [@bwibking](https://forum.modular.com/u/bwibking)\
**Post date:** [March 8, 2026, 5:23pm UTC](https://forum.modular.com/t/cdna2-mi250x-support/2821/3 "2026-03-08T17:23:19Z")

</div>

Great! I’ve created a PR to add basic CDNA2 support here: [[stdlib] Add CDNA2 support by BenWibking · Pull Request #6126 · modular/modular · GitHub](https://github.com/modular/modular/pull/6126).
