时间之里 2021-12-29 23:15 采纳率: 100%
浏览 27
已结题

cmake 编译Tensorflow1.13.1 generate时报错Using CUDA arch flags: sm_75

问题描述:
我在使用cmake3.10编译Tensorflow1.13.1 时configure通过在完成generate时报如下错误,不知道怎么样能够高效解决下


```c++
Selecting Windows SDK version 10.0.17763.0 to target Windows 10.0.19042.
Autodetected CUDA architecture(s): 7.5 
Using CUDA arch flags: sm_75
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
CUDA_cublas_device_LIBRARY (ADVANCED)
    linked by target "encode_proto_ops_gen_python" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "contrib_text_skip_gram_ops_gen_python" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "contrib_rnn_lstm_ops_gen_python" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "stateless_random_ops_gen_cc" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "word2vec_ops_gen_cc" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "contrib_tensor_forest_ops_gen_python" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "no_op_gen_python" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "sparse_ops_gen_cc" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "contrib_boosted_trees_split_handler_ops_gen_python" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "image_ops_gen_python" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "math_ops_gen_python" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "user_ops_gen_python" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "no_op_gen_cc" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "image_ops_gen_cc" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "contrib_periodic_resample_ops_gen_python" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "remote_fused_graph_ops_gen_cc" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "_gru_ops" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "summary_ops_gen_python" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "batch_ops_gen_cc" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "dataset_ops_gen_cc" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "functional_ops_gen_cc" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "summary_ops_gen_cc" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "contrib_input_pipeline_ops_gen_python" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "boosted_trees_ops_gen_python" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "math_ops_gen_cc" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "collective_ops_gen_cc" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "spectral_ops_gen_cc" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "rpc_ops_gen_cc" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "spectral_ops_gen_python" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "tf_core_gpu_kernels" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "nn_ops_gen_python" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "grpc_tensorflow_server" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "array_ops_gen_cc" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "audio_ops_gen_cc" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "scoped_allocator_ops_gen_cc" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "bitwise_ops_gen_cc" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "boosted_trees_ops_gen_cc" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "candidate_sampling_ops_gen_cc" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "checkpoint_ops_gen_cc" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "control_flow_ops_gen_cc" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "ctc_ops_gen_cc" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "cudnn_rnn_ops_gen_cc" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "dataset_ops_gen_python" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "data_flow_ops_gen_cc" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "decode_proto_ops_gen_cc" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "sdca_ops_gen_python" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "array_ops_gen_python" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "encode_proto_ops_gen_cc" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "compare_graphs" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "function_ops_gen_cc" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "io_ops_gen_cc" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "linalg_ops_gen_cc" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "list_ops_gen_cc" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "logging_ops_gen_cc" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "word2vec_ops_gen_python" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "checkpoint_ops_gen_python" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "lookup_ops_gen_cc" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "manip_ops_gen_cc" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "nn_ops_gen_cc" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "parsing_ops_gen_cc" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "random_ops_gen_cc" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "resource_variable_ops_gen_cc" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "tf_label_image_example" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "script_ops_gen_cc" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "sdca_ops_gen_cc" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "sendrecv_ops_gen_cc" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "contrib_image_ops_gen_python" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "set_ops_gen_cc" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "state_ops_gen_cc" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "string_ops_gen_cc" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "training_ops_gen_cc" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "user_ops_gen_cc" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "tf_tutorials_example_trainer" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "proto_text" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "transform_graph" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "summarize_graph" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "benchmark_model" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "audio_ops_gen_python" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "batch_ops_gen_python" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "bitwise_ops_gen_python" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "candidate_sampling_ops_gen_python" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "collective_ops_gen_python" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "control_flow_ops_gen_python" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "ctc_ops_gen_python" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "cudnn_rnn_ops_gen_python" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "data_flow_ops_gen_python" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "decode_proto_ops_gen_python" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "function_ops_gen_python" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "functional_ops_gen_python" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "io_ops_gen_python" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "linalg_ops_gen_python" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "list_ops_gen_python" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "logging_ops_gen_python" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "lookup_ops_gen_python" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "manip_ops_gen_python" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "parsing_ops_gen_python" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "contrib_image_distort_image_ops_gen_python" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "sendrecv_ops_gen_python" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "random_ops_gen_python" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "remote_fused_graph_ops_gen_python" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "resource_variable_ops_gen_python" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "rpc_ops_gen_python" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "scoped_allocator_ops_gen_python" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "script_ops_gen_python" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "set_ops_gen_python" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "sparse_ops_gen_python" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "state_ops_gen_python" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "stateless_random_ops_gen_python" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "string_ops_gen_python" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "contrib_boosted_trees_prediction_ops_gen_python" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "training_ops_gen_python" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "contrib_boosted_trees_model_ops_gen_python" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "contrib_boosted_trees_training_ops_gen_python" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "contrib_boosted_trees_quantiles_ops_gen_python" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "contrib_boosted_trees_stats_accumulator_ops_gen_python" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "contrib_coder_ops_gen_python" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "contrib_factorization_clustering_ops_gen_python" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "contrib_factorization_factorization_ops_gen_python" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "contrib_framework_variable_ops_gen_python" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "contrib_image_sirds_ops_gen_python" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "contrib_layers_sparse_feature_cross_ops_gen_python" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "contrib_memory_stats_ops_gen_python" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "contrib_nearest_neighbor_ops_gen_python" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "contrib_tensor_forest_model_ops_gen_python" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "contrib_resampler_ops_gen_python" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "contrib_rnn_gru_ops_gen_python" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "contrib_seq2seq_beam_search_ops_gen_python" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "contrib_tensor_forest_hybrid_ops_gen_python" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "contrib_tensor_forest_stats_ops_gen_python" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "contrib_bigquery_reader_ops_gen_python" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "contrib_gcs_config_ops_gen_python" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "debug_ops_gen_python" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "pywrap_tensorflow_internal" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "_lstm_ops" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "_beam_search_ops" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake
    linked by target "tensorflow" in directory F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake

Configuring incomplete, errors occurred!
See also "F:/tensorflow/tensorflow-1.13.1/tensorflow/contrib/cmake/build/CMakeFiles/CMakeOutput.log".

```

  • 写回答

0条回答 默认 最新

    报告相同问题?

    问题事件

    • 系统已结题 1月6日
    • 创建了问题 12月29日

    悬赏问题

    • ¥15 DS18B20内部ADC模数转换器
    • ¥15 做个有关计算的小程序
    • ¥15 MPI读取tif文件无法正常给各进程分配路径
    • ¥15 如何用MATLAB实现以下三个公式(有相互嵌套)
    • ¥30 关于#算法#的问题:运用EViews第九版本进行一系列计量经济学的时间数列数据回归分析预测问题 求各位帮我解答一下
    • ¥15 setInterval 页面闪烁,怎么解决
    • ¥15 如何让企业微信机器人实现消息汇总整合
    • ¥50 关于#ui#的问题:做yolov8的ui界面出现的问题
    • ¥15 如何用Python爬取各高校教师公开的教育和工作经历
    • ¥15 TLE9879QXA40 电机驱动