Skip to content

Commit

Permalink
Merge pull request #824 from EleutherAI/fused-kernels-msg
Browse files Browse the repository at this point in the history
Update fused kernel error recommendation, and make error logs more verbose
  • Loading branch information
StellaAthena authored Mar 14, 2023
2 parents 2ed00e6 + d17b26d commit 382ee7d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion configs/neox_arguments.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ Logging Arguments

- **git_hash**: str

Default = 1e65709
Default = ed27de5

current git hash of repository

Expand Down
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 properly installed. Please run `pip install {str(srcpath)}` to install them'
)
print("=" * 100)
exit()
Expand Down

0 comments on commit 382ee7d

Please sign in to comment.