Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
#include "inference_cublas_wrappers.h"
#include "inference_cuda_layers.h"

#ifdef BF16_AVAILABLE
#include <cuda_bf16.h>
#endif

std::array<int, 3> gemm_algos = std::array<int, 3>({99, 99, 99});

// NOTE: This activation function type enum should be always in sync
Expand Down
6 changes: 3 additions & 3 deletions op_builder/transformer_inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def filter_ccs(self, ccs):

def sources(self):
return [
'csrc/transformer/inference/csrc/pt_binding.cpp',
'csrc/transformer/inference/csrc/pt_binding.cu',
'csrc/transformer/inference/csrc/gelu.cu',
'csrc/transformer/inference/csrc/relu.cu',
'csrc/transformer/inference/csrc/layer_norm.cu',
Expand Down Expand Up @@ -83,6 +83,6 @@ def nvcc_args(self):
This cannot be avoided via forward declarations for this transformer_inference extension,
since `pt_binding.cpp` code explicitly requires the BF16 header, so disable it for now.
"""
if self.is_rocm_pytorch():
self.enable_bf16 = False
#if self.is_rocm_pytorch():
# self.enable_bf16 = False
return args
Loading