conda-forge / conda-smithy

The tool for managing conda-forge feedstocks.
https://conda-forge.org/
BSD 3-Clause "New" or "Revised" License
152 stars 183 forks source link

Add CF_DPCPP_ENABLED #2133

Open ZzEeKkAa opened 1 week ago

ZzEeKkAa commented 1 week ago

Checklist

Addresses #2129 issue. Will be resolve after merging this PR and updating https://github.com/conda-forge/conda-forge-pinning-feedstock/blob/main/recipe/conda_build_config.yaml

isuruf commented 1 week ago

I'm not sure why this is needed. Can you explain?

ZzEeKkAa commented 1 week ago

@isuruf as I described in #2129, I'm trying to add dpcpp compiler option to pytorch build. However I'm facing problems with zip_keys, so I'm trying to do something like this: https://github.com/conda-forge/conda-forge-pinning-feedstock/pull/6686/files

I was using cuda as an example. I guess reason for the CF_(CUDA|DPCPP)_ENABLED is to disable generation of compiler specific options if they are not in use.

I'm open to other solutions of the original issue, but this is the only solution I can see.