Skip to content

Commit

Permalink
Fix bug in NO_AVX when using lstm
Browse files Browse the repository at this point in the history
* libpaddle_cuda add wrong -mavx to some cpp files.
  • Loading branch information
reyoung committed Sep 9, 2016
1 parent 3304de7 commit 4a880f0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions paddle/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,4 @@ HPPL_ERROR_LOG
unittest.list
proto
dist
setup.py
10 changes: 6 additions & 4 deletions paddle/cuda/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
set(AVX_SOURCES
src/hl_math.cc
src/hl_avx_functions.cc
)
set(CUDA_SOURCES
src/hl_time.cc
src/hl_math.cc
src/hl_cpu_functions.cc
src/hl_avx_functions.cc)
${AVX_SOURCES})

set(CUDA_CXX_WITH_GPU_SOURCES
src/hl_cuda_cublas.cc
Expand All @@ -12,7 +15,7 @@ set(CUDA_CXX_WITH_GPU_SOURCES
set_source_files_properties(${CUDA_CXX_WITH_GPU_SOURCES}
PROPERTIES COMPILE_FLAGS "-D__NVCC__")

set_source_files_properties(${CUDA_SOURCES}
set_source_files_properties(${AVX_SOURCES}
PROPERTIES COMPILE_FLAGS "-mavx")

set(CUDA_DSO_SOURCES
Expand Down Expand Up @@ -73,4 +76,3 @@ endif()

add_style_check_target(paddle_cuda ${CUDA_SOURCES})
add_style_check_target(paddle_cuda ${CUDA_HEADERS})
# add_style_check_target(hppl ${HPPL_CU_SOURCES}) # TODO(yuyang18): Format hppl style

0 comments on commit 4a880f0

Please sign in to comment.