Skip to content

Commit 0aa4726

Browse files
authored
fix: AOT compiler flags on non-sm90 (#522)
Previously non-sm90 cards incorrectly get compiled as sm90, due to the shallow copy of the compiler flags.
1 parent c6d0f65 commit 0aa4726

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

flashinfer-aot/setup.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
from typing import List, Tuple
1818

19+
import copy
1920
import pathlib
2021
import os
2122
import re
@@ -372,7 +373,7 @@ def __init__(self, *args, **kwargs) -> None:
372373
"-use_fast_math",
373374
],
374375
}
375-
extra_compile_args_sm90 = extra_compile_args.copy()
376+
extra_compile_args_sm90 = copy.deepcopy(extra_compile_args)
376377
extra_compile_args_sm90["nvcc"].extend(
377378
"-gencode arch=compute_90a,code=sm_90a".split()
378379
)

0 commit comments

Comments
 (0)