Skip to content

Build with mkldnn support alongside cuda #233

@shunr

Description

@shunr

Comment:

Hi,

I'm currently working on torch code that should run on both cpu and cuda backends. Specifically, I'm using bfloat16 which requires the mkldnn backend to be performant on cpu. Is it possible to ship the cuda build with mkldnn turned on?

# Even though cudnn is used for CUDA builds, it's good to enable
# for MKLDNN for CUDA builds when CUDA builds are used on a machine
# with no NVIDIA GPUs. However compilation fails with mkldnn and cuda enabled.

The above comment seems to suggest that USE_MKLDNN=1 should in theory be usable with cuda, but some compilation error led to a temporary workaround.

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is neededquestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions