Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CUDA.jl compatability #66

Open
chrhck opened this issue May 16, 2024 · 0 comments
Open

CUDA.jl compatability #66

chrhck opened this issue May 16, 2024 · 0 comments

Comments

@chrhck
Copy link

chrhck commented May 16, 2024

When running code that uses CUDA.jl i get a
CUDA.CuError(code=CUDA.cudaError_enum(0x00000004), details=CUDA.Optional{String}(data=nothing))

MWE:

#include <jluna.hpp>
using namespace jluna;
int main()
{
    initialize();
    
    Main.safe_eval(R"(
        using CUDA

        x = CuArray([1]).+1

    )");
    return 0;
}

Using the standard C embedding API, the same code works without issues:

#include <julia.h>
JULIA_DEFINE_FAST_TLS // o

int main(int argc, char *argv[])
{
    jl_init();

    jl_eval_string(R"(
        using CUDA
        x = CuArray([1]).+1
        )");
    jl_atexit_hook(0);
    return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant