Skip to content

Commit

Permalink
Update fused kernel error recommendation, and make error more verbose
Browse files Browse the repository at this point in the history
  • Loading branch information
Quentin-Anthony committed Mar 10, 2023
1 parent 6edf241 commit d9b9bcb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions megatron/fused_kernels/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,12 @@ def load_fused_kernels():
try:
import scaled_upper_triang_masked_softmax_cuda
import scaled_masked_softmax_cuda
except (ImportError, ModuleNotFoundError):
except (ImportError, ModuleNotFoundError) as e:
print("\n")
print(e)
print("=" * 100)
print(
f'ERROR: Fused kernels configured but not installed. Please run `python {str(srcpath / "setup.py")} install` to install them'
f'ERROR: Fused kernels configured but not installed. Please run `pip install {str(srcpath)}` to install them'
)
print("=" * 100)
exit()
Expand Down

0 comments on commit d9b9bcb

Please sign in to comment.