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
5 changes: 5 additions & 0 deletions tilelang/contrib/nvcc.py
Original file line number Diff line number Diff line change
Expand Up @@ -414,3 +414,8 @@ def have_fp8(compute_version):
conditions.append(major == 8 and minor >= 9)
conditions.append(major >= 9)
return any(conditions)


def get_nvcc_compiler() -> str:
"""Get the path to the nvcc compiler"""
return os.path.join(find_cuda_path(), "bin", "nvcc")
4 changes: 2 additions & 2 deletions tilelang/jit/adapter/libgen.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from typing import Optional
from .utils import is_cuda_target, is_hip_target, is_cpu_target
from tilelang import tvm as tvm
from tilelang.contrib.nvcc import get_target_compute_version
from tilelang.contrib.nvcc import get_target_compute_version, get_nvcc_compiler
from tvm.target import Target
import ctypes
import os
Expand Down Expand Up @@ -44,7 +44,7 @@ def compile_lib(self, timeout: float = None):
libpath = src.name.replace(".cu", ".so")

command = [
"nvcc",
get_nvcc_compiler(),
"-std=c++17",
"-w", # Disable all warning messages
"-Xcudafe",
Expand Down