Skip to content

Commit

Permalink
rename cuda defs
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr-Nineteen authored and rhdong committed Apr 22, 2024
1 parent d42901f commit d0da5c9
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions benchmark/BUILD
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("@local_config_cuda//cuda:build_defs.bzl", "cuda_library")
load("@local_config_cuda//cuda:build_defs.bzl", "cuda_cc_library")

cc_binary(
name = "benchmark_util",
Expand All @@ -7,7 +7,7 @@ cc_binary(
],
)

cuda_library(
cuda_cc_library(
name = "benchmark_lib",
srcs = [
"merlin_hashtable_benchmark.cc.cu",
Expand Down
4 changes: 2 additions & 2 deletions build_deps/gpus/cuda/build_defs.bzl.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@ def cuda_header_library(name,
**kwargs)


def cuda_library(copts=[], **kwargs):
def cuda_cc_library(copts=[], **kwargs):
"""Wrapper over cc_library which adds default CUDA options."""
native.cc_library(copts=cuda_default_copts() + copts, **kwargs)


def cuda_binary(copts=[], **kwargs):
def cuda_cc_binary(copts=[], **kwargs):
"""Wrapper over cc_library which adds default CUDA options."""
native.cc_binary(copts=cuda_default_copts() + copts, **kwargs)

Expand Down
6 changes: 3 additions & 3 deletions include/BUILD
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
load("@local_config_cuda//cuda:build_defs.bzl", "cuda_library")
load("@local_config_cuda//cuda:build_defs.bzl", "cuda_cc_library")

cuda_library(
cuda_cc_library(
name = "merlin_localfile",
hdrs = [
"merlin_localfile.hpp",
Expand All @@ -14,7 +14,7 @@ cuda_library(
],
)

cuda_library(
cuda_cc_library(
name = "merlin_hashtable",
hdrs = [
"merlin_hashtable.cuh",
Expand Down
6 changes: 3 additions & 3 deletions include/merlin/BUILD
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
load("@local_config_cuda//cuda:build_defs.bzl", "cuda_library")
load("@local_config_cuda//cuda:build_defs.bzl", "cuda_cc_library")

cuda_library(
cuda_cc_library(
name = "types_and_utils",
srcs = [
],
Expand All @@ -16,7 +16,7 @@ cuda_library(
],
)

cuda_library(
cuda_cc_library(
name = "merlin",
srcs = [
],
Expand Down
4 changes: 2 additions & 2 deletions include/merlin/core_kernels/BUILD
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
load("@local_config_cuda//cuda:build_defs.bzl", "cuda_library")
load("@local_config_cuda//cuda:build_defs.bzl", "cuda_cc_library")

cuda_library(
cuda_cc_library(
name = "core_kernels",
srcs = [],
hdrs = glob([
Expand Down

0 comments on commit d0da5c9

Please sign in to comment.