Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion aiter/jit/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def mp_lock(
else:
AITER_META_DIR = AITER_ROOT_DIR
logger.warning("aiter is not installed.")

sys.path.insert(0, AITER_META_DIR)
AITER_CSRC_DIR = f"{AITER_META_DIR}/csrc"
AITER_GRADLIB_DIR = f"{AITER_META_DIR}/gradlib"
gfx = get_gfx()
Expand Down
2 changes: 2 additions & 0 deletions csrc/cpp_itfs/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
logger = logging.getLogger("aiter")
this_dir = os.path.dirname(os.path.abspath(__file__))
AITER_CORE_DIR = os.path.abspath(f"{this_dir}/../../")
if os.path.exists(os.path.join(AITER_CORE_DIR, "aiter_meta")):
AITER_CORE_DIR = os.path.join(AITER_CORE_DIR, "aiter_meta")
DEFAULT_GPU_ARCH = (
subprocess.run(
"/opt/rocm/llvm/bin/amdgpu-arch", shell=True, capture_output=True, text=True
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def __init__(self, *args, **kwargs) -> None:
setup(
name=PACKAGE_NAME,
use_scm_version=True,
packages=["aiter_meta", "aiter", "csrc"],
packages=["aiter_meta", "aiter"],
include_package_data=True,
package_data={
"": ["*"],
Expand Down