Skip to content

Commit

Permalink
Revert CMakeLists.txt as build fails with clang due to unused variabl…
Browse files Browse the repository at this point in the history
…es (pytorch#2315)
  • Loading branch information
naoyam committed Jan 10, 2023
1 parent b46ebd6 commit 98029e4
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions third_party/nvfuser/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,6 @@ list(APPEND NVFUSER_SRCS
)

add_library(${NVFUSER_CODEGEN} SHARED ${NVFUSER_SRCS})
torch_compile_options(${NVFUSER_CODEGEN})

if(NOT USE_ROCM)
target_compile_options(${NVFUSER_CODEGEN} PRIVATE "-DTORCH_CUDA_BUILD_MAIN_LIB")
Expand Down Expand Up @@ -187,7 +186,6 @@ if(BUILD_PYTHON)
)

add_library(${NVFUSER} MODULE ${NVFUSER_PYTHON_SRCS})
torch_compile_options(${NVFUSER})
if(NOT USE_ROCM)
target_compile_options(${NVFUSER} PRIVATE "-DTORCH_CUDA_BUILD_MAIN_LIB")
# NB: This must be target_compile_definitions, not target_compile_options,
Expand Down Expand Up @@ -341,7 +339,6 @@ if(BUILD_TEST)
${TORCH_ROOT}/test/cpp/jit/test_utils.cpp
${JIT_TEST_SRCS}
${JIT_TEST_CU_SRCS})
torch_compile_options(${NVFUSER_TESTS})

target_compile_definitions(${NVFUSER_TESTS} PRIVATE USE_GTEST)
if(NOT USE_ROCM)
Expand Down Expand Up @@ -391,7 +388,6 @@ if(BUILD_NVFUSER_BENCHMARK)
list(APPEND BENCHMARK_SRCS ${NVFUSER_ROOT}/benchmark/main.cpp)

add_executable(${NVFUSER_BENCHMARK} ${BENCHMARK_SRCS})
torch_compile_options(${NVFUSER_BENCHMARK})
install(TARGETS ${NVFUSER_BENCHMARK} DESTINATION bin)
target_link_libraries(${NVFUSER_BENCHMARK} PRIVATE torch_library benchmark ${NVFUSER_CODEGEN})
target_include_directories(${NVFUSER_BENCHMARK} PRIVATE ${NVFUSER_ROOT})
Expand Down

0 comments on commit 98029e4

Please sign in to comment.