diff --git a/tsl/platform/BUILD b/tsl/platform/BUILD index e20b9af9d..244e18f65 100644 --- a/tsl/platform/BUILD +++ b/tsl/platform/BUILD @@ -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", @@ -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", @@ -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( diff --git a/tsl/platform/build_config.bzl b/tsl/platform/build_config.bzl index bec0e8403..4a22f84ba 100644 --- a/tsl/platform/build_config.bzl +++ b/tsl/platform/build_config.bzl @@ -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", @@ -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 diff --git a/tsl/platform/cuda_libdevice_path.h b/tsl/platform/cuda_root_path.h similarity index 90% rename from tsl/platform/cuda_libdevice_path.h rename to tsl/platform/cuda_root_path.h index d8c2b6d01..65a9ca5a7 100644 --- a/tsl/platform/cuda_libdevice_path.h +++ b/tsl/platform/cuda_root_path.h @@ -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 #include @@ -46,4 +46,4 @@ bool PreferPtxasFromPath(); } // namespace tsl -#endif // TENSORFLOW_TSL_PLATFORM_CUDA_LIBDEVICE_PATH_H_ +#endif // TENSORFLOW_TSL_PLATFORM_CUDA_ROOT_PATH_H_ diff --git a/tsl/platform/default/BUILD b/tsl/platform/default/BUILD index b3ce4301f..8cbb72cfc 100644 --- a/tsl/platform/default/BUILD +++ b/tsl/platform/default/BUILD @@ -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", diff --git a/tsl/platform/default/build_config.bzl b/tsl/platform/default/build_config.bzl index 7806902b0..7e89c98ce 100644 --- a/tsl/platform/default/build_config.bzl +++ b/tsl/platform/default/build_config.bzl @@ -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") diff --git a/tsl/platform/default/cuda_libdevice_path.cc b/tsl/platform/default/cuda_root_path.cc similarity index 98% rename from tsl/platform/default/cuda_libdevice_path.cc rename to tsl/platform/default/cuda_root_path.cc index ac0a804b4..ca6da0e55 100644 --- a/tsl/platform/default/cuda_libdevice_path.cc +++ b/tsl/platform/default/cuda_root_path.cc @@ -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