Skip to content

Commit

Permalink
removal of unnecessary windows examples linking (#2155)
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanglaser authored and napetrov committed Dec 15, 2022
1 parent fbe1494 commit 0a6c4bf
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 7 deletions.
7 changes: 5 additions & 2 deletions examples/daal/cpp/makefile_win
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,13 @@ COPTS=-Wall -w -m64 $(COPTS)
COPTS=-W3 -EHsc $(COPTS)
!ENDIF

DAAL_LIB = "$(DAAL_PATH)\onedal_core$(EXT)" "$(DAAL_PATH)\onedal_thread.lib"
!IF ("$(RES_EXT)"=="lib")
LOPTS = "$(DAAL_PATH)\onedal_core$(EXT)" "$(DAAL_PATH)\onedal_thread.lib" tbb12.lib tbbmalloc.lib
!ELSE
LOPTS = "$(DAAL_PATH)\onedal_core$(EXT)"
!ENDIF

COPTS = -MD -Isource\utils $(COPTS) $(OUT_OPTS)
LOPTS = $(DAAL_LIB) tbb12.lib tbbmalloc.lib
RES_DIR =_results\$(compiler)_intel64_$(RES_EXT)

lib libintel64:
Expand Down
7 changes: 5 additions & 2 deletions examples/daal/cpp_sycl/makefile_win
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,13 @@ COPTS=-Wall -w $(COPTS)
COPTS=-m64 $(COPTS)
!ENDIF

DAAL_LIB = "$(DAAL_PATH)\onedal_core$(EXT)" "$(DAAL_PATH)\onedal_thread.lib"
!IF ("$(RES_EXT)"=="lib")
LOPTS = "$(DAAL_PATH)\onedal_core$(EXT)" "$(DAAL_PATH)\onedal_thread.lib" tbb12.lib tbbmalloc.lib $(RT_LIB)
!ELSE
LOPTS = "$(DAAL_PATH)\onedal_core$(EXT)" $(RT_LIB)
!ENDIF

COPTS = -MD -Isource\utils $(COPTS) $(OUT_OPTS)
LOPTS = $(DAAL_LIB) tbb12.lib tbbmalloc.lib $(RT_LIB)
RES_DIR =_results\$(compiler)_$(_IA)_$(RES_EXT)

lib libintel64:
Expand Down
4 changes: 4 additions & 0 deletions examples/oneapi/cpp/makefile_win
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,11 @@ EXT_LIB = tbb12.lib tbbmalloc.lib
EXT_LIB = /link /DEFAULTLIB:tbb12.lib /DEFAULTLIB:tbbmalloc.lib
!ENDIF

!IF ("$(RES_EXT)"=="lib")
DAAL_LIB = "$(DAAL_PATH)\onedal$(EXT)" "$(DAAL_PATH)\onedal_core$(EXT)" "$(DAAL_PATH)\onedal_thread.lib"
!ELSE
DAAL_LIB = "$(DAAL_PATH)\onedal$(EXT)" "$(DAAL_PATH)\onedal_core$(EXT)"
!ENDIF

RES_DIR = _results\$(compiler)_$(_IA)_$(RES_EXT)
COPTS = -MD /Isource /I"$(DAALROOT)\include" $(COPTS) /Fe$(RES_DIR)\\
Expand Down
6 changes: 3 additions & 3 deletions examples/oneapi/dpc/makefile_win
Original file line number Diff line number Diff line change
Expand Up @@ -86,16 +86,16 @@ CLEAN=
!ENDIF

!IF ("$(RES_EXT)"=="lib")
DAAL_LIB="$(DAAL_PATH)\onedal_core.lib" "$(DAAL_PATH)\onedal_dpc.lib" "$(DAAL_PATH)\onedal_sycl.lib"
DAAL_LIB="$(DAAL_PATH)\onedal_core.lib" "$(DAAL_PATH)\onedal_dpc.lib" "$(DAAL_PATH)\onedal_sycl.lib" "$(DAAL_PATH)\onedal_thread.lib"
RT_LIB=/link /ignore:4078 OpenCL.lib

LOPTS = $(DAAL_LIB) tbb12.lib tbbmalloc.lib $(RT_LIB)
!ELSE
DAAL_LIB="$(DAAL_PATH)\onedal_dpc_dll.lib"
RT_LIB=/link /ignore:4078
LOPTS = $(DAAL_LIB) $(RT_LIB)
!ENDIF

COPTS = -MD /Isource /I"$(DAALROOT)\include" $(COPTS) $(OUT_OPTS)
LOPTS = $(DAAL_LIB) "$(DAAL_PATH)\onedal_thread.lib" tbb12.lib tbbmalloc.lib $(RT_LIB)
RES_DIR =_results\$(compiler)_$(_IA)_$(RES_EXT)

lib libintel64:
Expand Down

0 comments on commit 0a6c4bf

Please sign in to comment.