Skip to content

ModuleNotFound after I move a #[cuda_module] into a separate crate #72

Closed

Description

@mutantbob

I had a working app using cuda-oxide kernels. I decided to split it into a library and an application so that I could later add a second app that uses the same cuda kernel.

But when I run the updated app I get an error

thread 'main' (10016) panicked at julia-lib/src/lib.rs:173:38:
Failed to load kernel module: ModuleNotFound { name: "julia-lib" }
stack backtrace:
   0: __rustc::rust_begin_unwind
   1: core::panicking::panic_fmt
   2: core::result::unwrap_failed
   3: julia_lib::simple_module
   4: julia_exp1::animation1::animation1

This may be a simple mistake on my part, or maybe a missing feature in cuda-oxide.

Activity

  1. mutantbob commented on May 20, 2026

    @mutantbob
    Author

    I am pretty sure I am using rev 63760a9 of cuda-oxide .

  2. added
    bug
    codegen
    on Jun 6, 2026
  3. nft2 commented on Jun 8, 2026

    @nft2

    I was having a similar issue involving the ModuleNotFound error after not working on this for a few days and updating to v0.2. It turns out I had forgotten the command was cargo oxide run, instead of cargo run.

    Very much a beginner oversight, but worth making sure this was not the source of your issue.

  4. added a commit that references this issue on Jun 11, 2026
    a9748f4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugcodegen

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions