Skip to content

Error when compiling Matconvnet for the GPU: MEX cannot find library 'gpu' #1266

Description

@FRA32

I am trying to install Matconvnet for use with other packages. CPU compilation succeeds, but CUDA compilation fails.
Mex is trying to find a "gpu.lib" file or "libgpu.lib" file, but no such file exists in my versions of the CUDA Toolkit. Neither can I find any information online about these files, why they would be missing, or how I could replace them.

Matlab Version: R2024a
CUDA version: v12.5 (Have also attempted v8.0)
Visual C++: 2022

Error Message:

Error using mex
MEX cannot find library 'gpu', specified with the -l option.
 MEX searched for a file with one of the following names:
 libgpu.lib
gpu.lib
 Verify the library name is correct. If the library is not
 on the existing path, specify the path with the -L option.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions