Skip to content

Commit

Permalink
Rename cuda_libdevice_path to cuda_root_path
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 680768657
  • Loading branch information
IllogicalMoose authored and copybara-github committed Sep 30, 2024
1 parent c1edd85 commit 30d68ba
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 16 deletions.
10 changes: 5 additions & 5 deletions tsl/platform/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ load(
load("@xla//xla/tsl:tsl.default.bzl", "get_compatible_with_portable")
load(
"//tsl/platform:build_config.bzl",
"tf_cuda_libdevice_path_deps",
"tf_cuda_root_path_deps",
"tf_error_logging_deps",
"tf_fingerprint_deps",
"tf_google_mobile_srcs_no_runtime",
Expand Down Expand Up @@ -675,7 +675,7 @@ exports_files(
"cpu_info.h",
"crash_analysis.h",
"criticality.h",
"cuda_libdevice_path.h",
"cuda_root_path.h",
"demangle.h",
"env.cc",
"env.h",
Expand Down Expand Up @@ -1197,10 +1197,10 @@ tsl_cc_test(
)

cc_library(
name = "cuda_libdevice_path",
name = "cuda_root_path",
compatible_with = get_compatible_with_portable(),
textual_hdrs = ["cuda_libdevice_path.h"],
deps = tf_cuda_libdevice_path_deps(),
textual_hdrs = ["cuda_root_path.h"],
deps = tf_cuda_root_path_deps(),
)

cc_library(
Expand Down
4 changes: 2 additions & 2 deletions tsl/platform/build_config.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ load(
_tf_additional_rpc_deps = "tf_additional_rpc_deps",
_tf_additional_tensor_coding_deps = "tf_additional_tensor_coding_deps",
_tf_additional_test_deps = "tf_additional_test_deps",
_tf_cuda_libdevice_path_deps = "tf_cuda_libdevice_path_deps",
_tf_cuda_root_path_deps = "tf_cuda_root_path_deps",
_tf_error_logging_deps = "tf_error_logging_deps",
_tf_fingerprint_deps = "tf_fingerprint_deps",
_tf_google_mobile_srcs_no_runtime = "tf_google_mobile_srcs_no_runtime",
Expand Down Expand Up @@ -49,7 +49,7 @@ tf_additional_lib_hdrs = _tf_additional_lib_hdrs
tf_additional_rpc_deps = _tf_additional_rpc_deps
tf_additional_tensor_coding_deps = _tf_additional_tensor_coding_deps
tf_additional_test_deps = _tf_additional_test_deps
tf_cuda_libdevice_path_deps = _tf_cuda_libdevice_path_deps
tf_cuda_root_path_deps = _tf_cuda_root_path_deps
tf_error_logging_deps = _tf_error_logging_deps
tf_fingerprint_deps = _tf_fingerprint_deps
tf_google_mobile_srcs_no_runtime = _tf_google_mobile_srcs_no_runtime
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ See the License for the specific language governing permissions and
limitations under the License.
==============================================================================*/

#ifndef TENSORFLOW_TSL_PLATFORM_CUDA_LIBDEVICE_PATH_H_
#define TENSORFLOW_TSL_PLATFORM_CUDA_LIBDEVICE_PATH_H_
#ifndef TENSORFLOW_TSL_PLATFORM_CUDA_ROOT_PATH_H_
#define TENSORFLOW_TSL_PLATFORM_CUDA_ROOT_PATH_H_

#include <string>
#include <vector>
Expand Down Expand Up @@ -46,4 +46,4 @@ bool PreferPtxasFromPath();

} // namespace tsl

#endif // TENSORFLOW_TSL_PLATFORM_CUDA_LIBDEVICE_PATH_H_
#endif // TENSORFLOW_TSL_PLATFORM_CUDA_ROOT_PATH_H_
6 changes: 3 additions & 3 deletions tsl/platform/default/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ cc_library(
)

cc_library(
name = "cuda_libdevice_path",
srcs = ["cuda_libdevice_path.cc"],
hdrs = ["//tsl/platform:cuda_libdevice_path.h"],
name = "cuda_root_path",
srcs = ["cuda_root_path.cc"],
hdrs = ["//tsl/platform:cuda_root_path.h"],
compatible_with = [],
data = if_cuda_tools([
"@cuda_nvcc//:nvvm",
Expand Down
4 changes: 2 additions & 2 deletions tsl/platform/default/build_config.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -845,5 +845,5 @@ def tf_google_mobile_srcs_no_runtime():
def tf_google_mobile_srcs_only_runtime():
return []

def tf_cuda_libdevice_path_deps():
return tf_platform_deps("cuda_libdevice_path")
def tf_cuda_root_path_deps():
return tf_platform_deps("cuda_root_path")
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ See the License for the specific language governing permissions and
limitations under the License.
==============================================================================*/

#include "tsl/platform/cuda_libdevice_path.h"
#include "tsl/platform/cuda_root_path.h"

#include <stdlib.h>

Expand Down

0 comments on commit 30d68ba

Please sign in to comment.