# Problem with GPU programming

**URL:** <https://forum.modular.com/t/problem-with-gpu-programming/2657>\
**Category:** Mojo\
**Created:** [January 31, 2026, 1:19pm UTC](https://forum.modular.com/t/problem-with-gpu-programming/2657 "2026-01-31T13:19:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![notooth](https://avatars.discourse-cdn.com/v4/letter/n/ce73a5/32.png) [@notooth](https://forum.modular.com/u/notooth)\
**Post date:** [January 31, 2026, 1:19pm UTC](https://forum.modular.com/t/problem-with-gpu-programming/2657/1 "2026-01-31T13:19:18Z")

</div>

I got an error with this code. Can anyone help me fix it?

```auto
device_bool = ctx.enqueue_create_buffer[DType.bool](1)
device_bool.enqueue_fill(False)

```

Error:

```auto
mojo: error: failed to lower module to LLVM IR for archive compilation, run LowerToLLVMPipeline failed

```

---

<div class="post-metadata">

**Author:** ![Caroline](https://sea1.discourse-cdn.com/flex001/user_avatar/forum.modular.com/caroline/32/8_2.png) [@Caroline](https://forum.modular.com/u/Caroline)\
**Post date:** [February 5, 2026, 3:01pm UTC](https://forum.modular.com/t/problem-with-gpu-programming/2657/2 "2026-02-05T15:01:59Z")

</div>

Hi @notooth,

Thanks for flagging this. This looks like the same issue reported [here](https://github.com/modular/modular/issues/5750) - I’m checking with the team and will get back to you ASAP!

---

<div class="post-metadata">

**Author:** ![Caroline](https://sea1.discourse-cdn.com/flex001/user_avatar/forum.modular.com/caroline/32/8_2.png) [@Caroline](https://forum.modular.com/u/Caroline)\
**Post date:** [February 5, 2026, 3:24pm UTC](https://forum.modular.com/t/problem-with-gpu-programming/2657/3 "2026-02-05T15:24:11Z")

</div>

Update: the team is currently working on fixing this issue, but in the meantime, you can use `int8` , as that’s what will get used anyways.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex001/uploads/modular/original/1X/2751e0fbdc595a99718b216730957e9db4448cfd.jpeg) [@system](https://forum.modular.com/u/system)\
**Post date:** [February 12, 2026, 3:24pm UTC](https://forum.modular.com/t/problem-with-gpu-programming/2657/4 "2026-02-12T15:24:26Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
