From bd8d0a65f19ee9624da4a78eb2951825067377c3 Mon Sep 17 00:00:00 2001
From: Li Li
Date: Tue, 11 Jun 2024 21:42:42 +0800
Subject: [PATCH 1/4] Update fp8_gemm_tuner.py exchange import torch and
hipbsolidxgemm
ImportError: libc10.so: cannot open shared object file: No such file or directory
https://stackoverflow.com/a/65710714
---
gradlib/gradlib/fp8_gemm_tuner.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gradlib/gradlib/fp8_gemm_tuner.py b/gradlib/gradlib/fp8_gemm_tuner.py
index 61df1933f8658..0624a2645edff 100644
--- a/gradlib/gradlib/fp8_gemm_tuner.py
+++ b/gradlib/gradlib/fp8_gemm_tuner.py
@@ -4,9 +4,9 @@
import random
from pathlib import Path
+import torch
import hipbsolidxgemm
import pandas as pd
-import torch
import torch.nn.functional as F
hipbsolidxgemm.hipb_create_extension()
From c6288b1d82e32729f1aa9d38d5f398508153712c Mon Sep 17 00:00:00 2001
From: charlifu
Date: Tue, 11 Jun 2024 15:59:02 +0000
Subject: [PATCH 2/4] run isort on fp9_gemm_tuner.py
---
gradlib/gradlib/fp8_gemm_tuner.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gradlib/gradlib/fp8_gemm_tuner.py b/gradlib/gradlib/fp8_gemm_tuner.py
index 0624a2645edff..61df1933f8658 100644
--- a/gradlib/gradlib/fp8_gemm_tuner.py
+++ b/gradlib/gradlib/fp8_gemm_tuner.py
@@ -4,9 +4,9 @@
import random
from pathlib import Path
-import torch
import hipbsolidxgemm
import pandas as pd
+import torch
import torch.nn.functional as F
hipbsolidxgemm.hipb_create_extension()
From e5d7d78d6a151bcb6919c78ee94d1b022d110006 Mon Sep 17 00:00:00 2001
From: charlifu
Date: Tue, 11 Jun 2024 16:02:54 +0000
Subject: [PATCH 3/4] add # isort: split
---
gradlib/gradlib/fp8_gemm_tuner.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gradlib/gradlib/fp8_gemm_tuner.py b/gradlib/gradlib/fp8_gemm_tuner.py
index 61df1933f8658..225701939ec0a 100644
--- a/gradlib/gradlib/fp8_gemm_tuner.py
+++ b/gradlib/gradlib/fp8_gemm_tuner.py
@@ -4,9 +4,9 @@
import random
from pathlib import Path
+import torch # isort: split
import hipbsolidxgemm
import pandas as pd
-import torch
import torch.nn.functional as F
hipbsolidxgemm.hipb_create_extension()
From af2f752c61369024f4f617f4d30202f3e26846f4 Mon Sep 17 00:00:00 2001
From: charlifu
Date: Tue, 11 Jun 2024 16:05:44 +0000
Subject: [PATCH 4/4] fix yapf
---
gradlib/gradlib/fp8_gemm_tuner.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gradlib/gradlib/fp8_gemm_tuner.py b/gradlib/gradlib/fp8_gemm_tuner.py
index 225701939ec0a..babf304927605 100644
--- a/gradlib/gradlib/fp8_gemm_tuner.py
+++ b/gradlib/gradlib/fp8_gemm_tuner.py
@@ -4,7 +4,7 @@
import random
from pathlib import Path
-import torch # isort: split
+import torch # isort: split
import hipbsolidxgemm
import pandas as pd
import torch.nn.functional as F