Skip to content

Commit

Permalink
refactor cuda ops, remove contrib folder (microsoft#707)
Browse files Browse the repository at this point in the history
Co-authored-by: Lei Cao <[email protected]@onnxruntime-a10.bxgbzpva45kedp3rhbsbit4phb.jx.internal.cloudapp.net>
  • Loading branch information
jslhcl and Lei Cao authored May 3, 2024
1 parent 8645a84 commit dfdf52e
Show file tree
Hide file tree
Showing 9 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -363,12 +363,10 @@ if(OCOS_ENABLE_MATH)
list(APPEND TARGET_SRC ${TARGET_SRC_MATH} ${TARGET_SRC_DLIB} ${TARGET_SRC_INVERSE})
endif()

file(GLOB TARGET_SRC_CONTRIB "operators/contrib/*.cc" "operators/contrib/*.h*")
if (OCOS_USE_CUDA)
file(GLOB TARGET_SRC_CONTRIB_CUDA "operators/contrib/cuda/*.*")
list(APPEND TARGET_SRC_CONTRIB ${TARGET_SRC_CONTRIB_CUDA})
file(GLOB_RECURSE TARGET_SRC_CUDA "operators/cuda/*.*")
list(APPEND TARGET_SRC ${TARGET_SRC_CUDA})
endif()
list(APPEND TARGET_SRC ${TARGET_SRC_CONTRIB})

# enable the opencv dependency if we have ops that require it
if(OCOS_ENABLE_CV2 OR OCOS_ENABLE_VISION)
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion test/static_test/test_cuda_eager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

#ifdef USE_CUDA
#include "math/cuda/negpos_def.h"
#include "contrib/cuda/fast_gelu.h"
#include "cuda/fast_gelu.h"
#include <cuda.h>
#include <cuda_runtime.h>

Expand Down

0 comments on commit dfdf52e

Please sign in to comment.