Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
wangyems committed Mar 25, 2024
1 parent 6470390 commit 486d5cd
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions onnxruntime/contrib_ops/cuda/moe/ft_moe/moe_kernel.cu
Original file line number Diff line number Diff line change
Expand Up @@ -778,7 +778,16 @@ void CutlassMoeFCRunner<T, WeightType, Enable>::run_moe_fc(
hidden_size, inter_size, local_num_experts, stream);
}

#if defined(__CUDA_ARCH__) && __CUDA_ARCH__ >= 700
#if defined(__CUDA_ARCH__) && __CUDA_ARCH__ < 700
template <typename T, typename WeightType, typename Enable>
void CutlassMoeFCRunner<T, WeightType, Enable>::run_moe_fc(const T*, const T*, const WeightType*, const T*, const T*,
ActivationType, const WeightType*, const T*, const T*,
const WeightType*, const T*, int, const int, const int, int,
int, int, int k, char*, T*, T*, int*, int*, cudaStream_t) {
// MoE gemm only supports Volta+ architectures
;
}
#else
template <typename T, typename WeightType, typename Enable>
void CutlassMoeFCRunner<T, WeightType, Enable>::run_moe_fc(
const T* input_activations, const T* gating_output, const WeightType* fc1_expert_weights, const T* fc1_scales,
Expand All @@ -792,15 +801,6 @@ void CutlassMoeFCRunner<T, WeightType, Enable>::run_moe_fc(
inter_size, num_experts, local_num_experts, local_experts_start_index, k, workspace_ptr, fc2_result,
nullptr, num_rows, expert_scales, expanded_source_row_to_expanded_dest_row, expert_for_source_row, stream);
}
#else
template <typename T, typename WeightType, typename Enable>
void CutlassMoeFCRunner<T, WeightType, Enable>::run_moe_fc(const T*, const T*, const WeightType*, const T*, const T*,
ActivationType, const WeightType*, const T*, const T*,
const WeightType*, const T*, int, const int, const int, int,
int, int, int k, char*, T*, T*, int*, int*, cudaStream_t) {
// MoE gemm only supports Volta+ architectures
;
}
#endif

template <typename T, typename WeightType, typename Enable>
Expand Down

0 comments on commit 486d5cd

Please sign in to comment.