dace icon indicating copy to clipboard operation
dace copied to clipboard

Check for applicability of a LibNode expansion

Open TizianoDeMatteis opened this issue 3 years ago • 1 comments

It would be nice if, while expanding, we can check that the chosen expansion is applicable and if not, default to something else.

In this sense, there should exist also some priority scheme on expansions.

TizianoDeMatteis avatar Mar 12 '21 10:03 TizianoDeMatteis

I like this issue, a few things to consider:

  • the libnode itself should give a priority, i.e. for gemm, use 1) MKL, 2) OpenBlas, 3) Pure
  • the user should be able to override per globally, per library, per expansion
  • the environments should have tests if they work, then we don't expand if the environment does not work, i.e., don't expand to cuda if we know we cannot execute cuda, but instead take the next possible option. This is tricky, i.e., how could we do this on FPGA?

tim0s avatar Mar 12 '21 10:03 tim0s