Skip to content

Commit

Permalink
Fix line ending as lf
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudhan committed Apr 28, 2022
1 parent 3912f8d commit 8b5dc19
Show file tree
Hide file tree
Showing 3 changed files with 74 additions and 73 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text eol=lf
72 changes: 36 additions & 36 deletions cuda/templates/BUILD.local_toolchain_linux
Original file line number Diff line number Diff line change
@@ -1,36 +1,36 @@
# This becomes the BUILD file for @local_cuda//toolchain/ under Linux.
load(
"@rules_cuda//cuda:defs.bzl",
"cuda_toolchain",
cuda_toolchain_config = "cuda_toolchain_config_linux",
)
cuda_toolchain_config(
name = "nvcc-local-config",
cuda_path = "%{cuda_path}",
toolchain_identifier = "nvcc",
nvcc_version_major = %{nvcc_version_major},
nvcc_version_minor = %{nvcc_version_minor},
)
cuda_toolchain(
name = "nvcc-local",
compiler_executable = "%{cuda_path}/bin/nvcc",
toolchain_config = ":nvcc-local-config",
)
toolchain(
name = "nvcc-local-toolchain",
exec_compatible_with = [
"@platforms//os:linux",
"@platforms//cpu:x86_64",
],
target_compatible_with = [
"@platforms//os:linux",
"@platforms//cpu:x86_64",
],
toolchain = ":nvcc-local",
toolchain_type = "@rules_cuda//cuda:toolchain_type",
visibility = ["//visibility:public"],
)
# This becomes the BUILD file for @local_cuda//toolchain/ under Linux.

load(
"@rules_cuda//cuda:defs.bzl",
"cuda_toolchain",
cuda_toolchain_config = "cuda_toolchain_config_linux",
)

cuda_toolchain_config(
name = "nvcc-local-config",
cuda_path = "%{cuda_path}",
toolchain_identifier = "nvcc",
nvcc_version_major = %{nvcc_version_major},
nvcc_version_minor = %{nvcc_version_minor},
)

cuda_toolchain(
name = "nvcc-local",
compiler_executable = "%{cuda_path}/bin/nvcc",
toolchain_config = ":nvcc-local-config",
)

toolchain(
name = "nvcc-local-toolchain",
exec_compatible_with = [
"@platforms//os:linux",
"@platforms//cpu:x86_64",
],
target_compatible_with = [
"@platforms//os:linux",
"@platforms//cpu:x86_64",
],
toolchain = ":nvcc-local",
toolchain_type = "@rules_cuda//cuda:toolchain_type",
visibility = ["//visibility:public"],
)
74 changes: 37 additions & 37 deletions cuda/templates/BUILD.local_toolchain_windows
Original file line number Diff line number Diff line change
@@ -1,37 +1,37 @@
# This becomes the BUILD file for @local_cuda//toolchain/ under Windows.
load(
"@rules_cuda//cuda:defs.bzl",
"cuda_toolchain",
cuda_toolchain_config = "cuda_toolchain_config_windows",
)
cuda_toolchain_config(
name = "nvcc-local-config",
cuda_path = "%{cuda_path}",
msvc_env_tmp = "%{env_tmp}",
toolchain_identifier = "nvcc",
nvcc_version_major = %{nvcc_version_major},
nvcc_version_minor = %{nvcc_version_minor},
)
cuda_toolchain(
name = "nvcc-local",
compiler_executable = "%{cuda_path}/bin/nvcc.exe",
toolchain_config = ":nvcc-local-config",
)
toolchain(
name = "nvcc-local-toolchain",
exec_compatible_with = [
"@platforms//os:windows",
"@platforms//cpu:x86_64",
],
target_compatible_with = [
"@platforms//os:windows",
"@platforms//cpu:x86_64",
],
toolchain = ":nvcc-local",
toolchain_type = "@rules_cuda//cuda:toolchain_type",
visibility = ["//visibility:public"],
)
# This becomes the BUILD file for @local_cuda//toolchain/ under Windows.

load(
"@rules_cuda//cuda:defs.bzl",
"cuda_toolchain",
cuda_toolchain_config = "cuda_toolchain_config_windows",
)

cuda_toolchain_config(
name = "nvcc-local-config",
cuda_path = "%{cuda_path}",
msvc_env_tmp = "%{env_tmp}",
toolchain_identifier = "nvcc",
nvcc_version_major = %{nvcc_version_major},
nvcc_version_minor = %{nvcc_version_minor},
)

cuda_toolchain(
name = "nvcc-local",
compiler_executable = "%{cuda_path}/bin/nvcc.exe",
toolchain_config = ":nvcc-local-config",
)

toolchain(
name = "nvcc-local-toolchain",
exec_compatible_with = [
"@platforms//os:windows",
"@platforms//cpu:x86_64",
],
target_compatible_with = [
"@platforms//os:windows",
"@platforms//cpu:x86_64",
],
toolchain = ":nvcc-local",
toolchain_type = "@rules_cuda//cuda:toolchain_type",
visibility = ["//visibility:public"],
)

0 comments on commit 8b5dc19

Please sign in to comment.