Skip to content
Snippets Groups Projects
Commit a4e664f0 authored by Yifan Zhao's avatar Yifan Zhao
Browse files

Fixing issue llvm/hpvm#50

parent 28cbe932
No related branches found
No related tags found
No related merge requests found
...@@ -103,7 +103,10 @@ target_link_libraries(tensor_runtime ${LINK_LIBS}) ...@@ -103,7 +103,10 @@ target_link_libraries(tensor_runtime ${LINK_LIBS})
cuda_add_library(tensor_runtime_install ${RUNTIME_SRCS}) cuda_add_library(tensor_runtime_install ${RUNTIME_SRCS})
cuda_add_cublas_to_target(tensor_runtime_install) cuda_add_cublas_to_target(tensor_runtime_install)
target_link_libraries(tensor_runtime_install ${LINK_LIBS}) target_link_libraries(tensor_runtime_install ${LINK_LIBS})
# tensor_runtime_install is built AFTER tensor_runtime because of a nvcc bug (bug?)
# that doesn't allow compiling the same file from multiple targets at once.
# Same for tensor_runtime_online.
add_dependencies(tensor_runtime_install tensor_runtime)
# Online version # Online version
remove_definitions(-DONLINE_PROFILING=false) remove_definitions(-DONLINE_PROFILING=false)
...@@ -112,7 +115,8 @@ remove_definitions(-DFP16_tuning=true) ...@@ -112,7 +115,8 @@ remove_definitions(-DFP16_tuning=true)
add_definitions(-DFP16_tuning=false) add_definitions(-DFP16_tuning=false)
cuda_add_library(tensor_runtime_online ${RUNTIME_SRCS}) cuda_add_library(tensor_runtime_online ${RUNTIME_SRCS})
cuda_add_cublas_to_target(tensor_runtime_online) cuda_add_cublas_to_target(tensor_runtime_online)
target_link_libraries(tensor_runtime_online ${LINK_LIBS}) target_link_libraries(tensor_runtime_online ${LINK_LIBS})
add_dependencies(tensor_runtime_online tensor_runtime)
# Adding new rule for building a cuDNN runtime library # Adding new rule for building a cuDNN runtime library
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment