Skip to content

Commit

Permalink
Remove unused code and unused target. (#8367)
Browse files Browse the repository at this point in the history
  - Closes #4787.

  - This file is not used anymore since its target is never built.

  - It has a buffer overflow vulnerability due to usage of an env
    variable that is appended to a static buffer array.

  - It was an experiment at having an "offline" compiler for OpenCL code.
    It was used to compile OpenCL code ahead of time and save some time
    by avoiding JIT (runtime) compilation.
  • Loading branch information
mahge committed Dec 28, 2021
1 parent 8911b0b commit 218e4f9
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 988 deletions.
Expand Up @@ -11,15 +11,9 @@ SET(PARMODELICA_SRC omc_ocl_memory_ops.cpp
omc_ocl_builtin_kernels.cpp
omc_ocl_util.cpp)

SET(PARMODELICA_OffCompiler_SRC ocl_offcomp.cpp)


INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})
INCLUDE_DIRECTORIES(../../../c)


ADD_LIBRARY(ParModelicaExpl ${PARMODELICA_SRC})

ADD_EXECUTABLE(ParModelicaOCLOffCompiler ${PARMODELICA_OffCompiler_SRC})

TARGET_LINK_LIBRARIES(ParModelicaOCLOffCompiler ParModelicaExpl ${OPENCL_LIBRARY})
Expand Up @@ -13,9 +13,6 @@ OBJS = $(SRCS:.c=.o)

.PHONY : ocloffc libParModelicaExpl clean

ocloffc: omc_ocl_util.h libParModelicaExpl.a
$(CXX) -I. -o ocloffcomp$(EXEEXT) ocl_offcomp.cpp libParModelicaExpl.a $(OPENLC_LIB) $(CFLAGS)

libParModelicaExpl.a: $(OBJS)
@rm -f $@
$(AR_) $@ $(OBJS)
Expand Down

This file was deleted.

0 comments on commit 218e4f9

Please sign in to comment.