Skip to content

Commit

Permalink
Fixes #621: Improve naming for the "JIT fallback strategy" type and e…
Browse files Browse the repository at this point in the history
…num values
  • Loading branch information
eyalroz committed Mar 23, 2024
1 parent b1e3b7f commit b2e2a03
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/cuda/api/link_options.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ class module_t;

namespace link {

enum fallback_strategy_t {
prefer_ptx = 0,
prefer_binary = 1,
enum fallback_strategy_for_binary_code_t {
prefer_compiling_ptx = 0,
prefer_using_compatible_binary = 1,
};

using option_t = CUjit_option;
Expand Down Expand Up @@ -98,7 +98,7 @@ struct options_t final : public rtc::common_ptx_compilation_options_t {
bool obtain_target_from_cuda_context { true };

/// fallback behavior if a (matching cubin???) is not found
optional<fallback_strategy_t> fallback_strategy;
optional<fallback_strategy_for_binary_code_t> fallback_strategy;

// It _seems_ that the verbosity is a boolean setting - but this is not clear
bool verbose_log;
Expand Down

0 comments on commit b2e2a03

Please sign in to comment.