File tree 1 file changed +3
-3
lines changed 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 18
18
package_type = os .getenv ("MATRIX_PACKAGE_TYPE" )
19
19
20
20
is_cuda_system = gpu_arch_type == "cuda"
21
- SCRIPT_DIR = Path (__file__ ).parent
22
21
NIGHTLY_ALLOWED_DELTA = 3
23
22
24
23
MODULES = [
@@ -206,10 +205,11 @@ def foo(x: torch.Tensor) -> torch.Tensor:
206
205
x_pt2 = torch .compile (model , mode = "max-autotune" )(x )
207
206
208
207
def smoke_test_modules ():
208
+ cwd = os .getcwd ()
209
209
for module in MODULES :
210
210
if module ["repo" ]:
211
- if not os .path .exists (f"{ SCRIPT_DIR } /{ module ['repo_name' ]} " ):
212
- print (f"Path does not exist: { SCRIPT_DIR } /{ module ['repo_name' ]} " )
211
+ if not os .path .exists (f"{ cwd } /{ module ['repo_name' ]} " ):
212
+ print (f"Path does not exist: { cwd } /{ module ['repo_name' ]} " )
213
213
subprocess .check_output (f"git clone --depth 1 { module ['repo' ]} " , stderr = subprocess .STDOUT , shell = True )
214
214
try :
215
215
output = subprocess .check_output (
You can’t perform that action at this time.
0 commit comments