gorgeous-winter-99296
10/16/2022, 5:00 PMtorch
in multiple of our repos; and based on hardware and other specifications we need to switch which "flavor", which is done using localtags: +rocm
or +cuNNN
for GPU backends, +cpu
for "CPU-only", or nothing. I've managed to get a bunch of different resolves to work, but I'm not sure how to tie this into dependency inference for local execution, nevermind trying to publish anything using this abomination of version management.fast-nail-55400
10/16/2022, 5:07 PMpath/to/some:target@resolve=RESOLVE
happy-kitchen-89482
10/16/2022, 5:37 PMgorgeous-winter-99296
10/16/2022, 5:57 PMliba.foobar
imports torch
, and I pass @resolve=gpu
to binary/main.py
does the resolve override recursively? I assume so as the opposite would be madness, just double-checking.
Also; can I set a "default" parametrize?fast-nail-55400
10/16/2022, 10:09 PMresolve
will be "passed down" correctly.resolve
field directly or to multiple values using the parametrize
builtin. (See the link above for examples.)resolve
values if you want the target to always be in one resolve.