Skip to content

CUDA.jl compatability #66

@chrhck

Description

@chrhck

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;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions