Skip to content

Commit

Permalink
[BUILD] Remove Flag and Add FLECIBLE PAGE Option
Browse files Browse the repository at this point in the history
Remove Flag on Android.mk
Add APP_SUPPORT_FLEXIBLE_PAGE_SIZE to Application.mk

**Self evaluation:**
1. Build test:	 [X]Passed [ ]Failed [ ]Skipped
2. Run test:	 [X]Passed [ ]Failed [ ]Skipped

Signed-off-by: Donghak PARK <[email protected]>
  • Loading branch information
DonghakPark authored and jijoongmoon committed Aug 29, 2024
1 parent b755fc7 commit 0c9c6d7
Show file tree
Hide file tree
Showing 46 changed files with 22 additions and 52 deletions.
1 change: 0 additions & 1 deletion Applications/AlexNet/jni/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ LOCAL_MODULE_TAGS := optional
LOCAL_ARM_MODE := arm
LOCAL_MODULE := nntrainer_alexnet
LOCAL_LDLIBS := -llog -landroid -fopenmp
LOCAL_LDFLAGS += "-Wl,-z,max-page-size=16384"

LOCAL_SRC_FILES := main.cpp $(CIFARDIR)/cifar_dataloader.cpp

Expand Down
1 change: 1 addition & 0 deletions Applications/AlexNet/jni/Application.mk
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
APP_ABI := arm64-v8a
APP_STL := c++_shared
APP_PLATFORM := android-29
APP_SUPPORT_FLEXIBLE_PAGE_SIZES := true
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ LOCAL_MODULE_TAGS := optional
LOCAL_ARM_MODE := arm
LOCAL_MODULE := simpleshot_jni
LOCAL_LDLIBS := -llog -landroid -fopenmp -static-openmp -ljnigraphics
LOCAL_LDFLAGS += "-Wl,-z,max-page-size=16384"

LOCAL_SRC_FILES := simpleshot.cpp simpleshot_jni.cpp dataloader.cpp image.cpp
LOCAL_SHARED_LIBRARIES := ccapi-nntrainer nntrainer
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ LOCAL_MODULE_TAGS := optional
LOCAL_ARM_MODE := arm
LOCAL_MODULE := picogpt_jni
LOCAL_LDLIBS := -llog -landroid -fopenmp -static-openmp -ljnigraphics
LOCAL_LDFLAGS += "-Wl,-z,max-page-size=16384"

LOCAL_SRC_FILES := picogpt.cpp picogpt_jni.cpp
LOCAL_SHARED_LIBRARIES := ccapi-nntrainer nntrainer
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
APP_ABI := arm64-v8a
APP_STL := c++_shared
APP_PLATFORM := android-29
APP_SUPPORT_FLEXIBLE_PAGE_SIZES := true
1 change: 0 additions & 1 deletion Applications/Android/ResnetJNI/app/src/main/jni/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ LOCAL_MODULE_TAGS := optional
LOCAL_ARM_MODE := arm
LOCAL_MODULE := resnet_jni
LOCAL_LDLIBS := -llog -landroid -fopenmp -static-openmp -ljnigraphics
LOCAL_LDFLAGS += "-Wl,-z,max-page-size=16384"

LOCAL_SRC_FILES := resnet.cpp resnet_jni.cpp dataloader.cpp image.cpp
LOCAL_SHARED_LIBRARIES := ccapi-nntrainer nntrainer
Expand Down
1 change: 0 additions & 1 deletion Applications/Android/kotlin/app/src/main/jni/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ LOCAL_MODULE_TAGS := optional
LOCAL_ARM_MODE := arm
LOCAL_MODULE := nntrainer_resnet
LOCAL_LDLIBS := -llog -landroid -fopenmp -static-openmp
LOCAL_LDFLAGS += "-Wl,-z,max-page-size=16384"

LOCAL_SRC_FILES := NNTrainer.cpp $(CIFARDIR)/cifar_dataloader.cpp

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
APP_ABI := arm64-v8a
APP_STL := c++_shared
APP_PLATFORM := android-29
APP_SUPPORT_FLEXIBLE_PAGE_SIZES := true
1 change: 0 additions & 1 deletion Applications/Custom/LayerClient/jni/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ LOCAL_MODULE_TAGS := optional
LOCAL_ARM_MODE := arm
LOCAL_MODULE := nntrainer_layer_client_example
LOCAL_LDLIBS := -llog -landroid -fopenmp
LOCAL_LDFLAGS += "-Wl,-z,max-page-size=16384"

LOCAL_SRC_FILES := main.cpp $(LOCAL_PATH)/../../pow.cpp $(LOCAL_PATH)/../../mae_loss.cpp

Expand Down
1 change: 1 addition & 0 deletions Applications/Custom/LayerClient/jni/Application.mk
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
APP_ABI := arm64-v8a
APP_STL := c++_shared
APP_PLATFORM := android-29
APP_SUPPORT_FLEXIBLE_PAGE_SIZES := true
1 change: 0 additions & 1 deletion Applications/KNN/jni/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ LOCAL_MODULE_TAGS := optional
LOCAL_ARM_MODE := arm
LOCAL_MODULE := knn_sample
LOCAL_LDLIBS := -llog -landroid -fopenmp
LOCAL_LDFLAGS += "-Wl,-z,max-page-size=16384"

LOCAL_SRC_FILES := main.cpp

Expand Down
1 change: 1 addition & 0 deletions Applications/KNN/jni/Application.mk
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
APP_ABI := arm64-v8a
APP_STL := c++_shared
APP_PLATFORM := android-29
APP_SUPPORT_FLEXIBLE_PAGE_SIZES := true
4 changes: 0 additions & 4 deletions Applications/LLaMA/jni/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ LOCAL_MODULE_TAGS := optional
LOCAL_ARM_MODE := arm
LOCAL_MODULE := rms_norm_layer
LOCAL_LDLIBS := -llog -landroid -fopenmp -static-openmp -DENABLE_FP16=1 -DUSE__FP16=1
LOCAL_LDFLAGS += "-Wl,-z,max-page-size=16384"

LOCAL_SRC_FILES := rms_norm.cpp

Expand All @@ -71,7 +70,6 @@ LOCAL_MODULE_TAGS := optional
LOCAL_ARM_MODE := arm
LOCAL_MODULE := swiglu_layer
LOCAL_LDLIBS := -llog -landroid -fopenmp -static-openmp -DENABLE_FP16=1 -DUSE__FP16=1
LOCAL_LDFLAGS += "-Wl,-z,max-page-size=16384"

LOCAL_SRC_FILES := swiglu.cpp

Expand All @@ -93,7 +91,6 @@ LOCAL_MODULE_TAGS := optional
LOCAL_ARM_MODE := arm
LOCAL_MODULE := custom_multi_head_attention_layer
LOCAL_LDLIBS := -llog -landroid -fopenmp -static-openmp -DENABLE_FP16=1 -DUSE__FP16=1
LOCAL_LDFLAGS += "-Wl,-z,max-page-size=16384"

LOCAL_SRC_FILES := custom_multi_head_attention_layer.cpp

Expand All @@ -116,7 +113,6 @@ LOCAL_MODULE_TAGS := optional
LOCAL_ARM_MODE := arm
LOCAL_MODULE := nntrainer_llama
LOCAL_LDLIBS := -llog -landroid -fopenmp -static-openmp -DENABLE_FP16=1 -DUSE__FP16=1
LOCAL_LDFLAGS += "-Wl,-z,max-page-size=16384"

LOCAL_SRC_FILES := main.cpp

Expand Down
1 change: 1 addition & 0 deletions Applications/LLaMA/jni/Application.mk
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
APP_ABI := arm64-v8a
APP_STL := c++_shared
APP_PLATFORM := android-29
APP_SUPPORT_FLEXIBLE_PAGE_SIZES := true
1 change: 0 additions & 1 deletion Applications/Layers/jni/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ LOCAL_MODULE_TAGS := optional
LOCAL_ARM_MODE := arm
LOCAL_MODULE := nntrainer_Layers
LOCAL_LDLIBS := -llog -landroid -fopenmp
LOCAL_LDFLAGS += "-Wl,-z,max-page-size=16384"

LOCAL_SRC_FILES := main.cpp $(CIFARDIR)/cifar_dataloader.cpp

Expand Down
1 change: 1 addition & 0 deletions Applications/Layers/jni/Application.mk
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
APP_ABI := arm64-v8a
APP_STL := c++_shared
APP_PLATFORM := android-29
APP_SUPPORT_FLEXIBLE_PAGE_SIZES := true
1 change: 0 additions & 1 deletion Applications/LogisticRegression/jni/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ LOCAL_MODULE_TAGS := optional
LOCAL_ARM_MODE := arm
LOCAL_MODULE := nntrainer_logistic
LOCAL_LDLIBS := -llog -landroid -fopenmp -static-openmp
LOCAL_LDFLAGS += "-Wl,-z,max-page-size=16384"

LOCAL_SRC_FILES := main.cpp

Expand Down
1 change: 1 addition & 0 deletions Applications/LogisticRegression/jni/Application.mk
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
APP_ABI := arm64-v8a
APP_STL := c++_shared
APP_PLATFORM := android-29
APP_SUPPORT_FLEXIBLE_PAGE_SIZES := true
1 change: 0 additions & 1 deletion Applications/MNIST/jni/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ LOCAL_MODULE_TAGS := optional
LOCAL_ARM_MODE := arm
LOCAL_MODULE := nntrainer_mnist
LOCAL_LDLIBS := -llog -landroid -fopenmp
LOCAL_LDFLAGS += "-Wl,-z,max-page-size=16384"

LOCAL_SRC_FILES := main.cpp

Expand Down
1 change: 1 addition & 0 deletions Applications/MNIST/jni/Application.mk
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
APP_ABI := arm64-v8a
APP_STL := c++_shared
APP_PLATFORM := android-29
APP_SUPPORT_FLEXIBLE_PAGE_SIZES := true
1 change: 0 additions & 1 deletion Applications/Multi_input/jni/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ LOCAL_MODULE_TAGS := optional
LOCAL_ARM_MODE := arm
LOCAL_MODULE := nntrainer_multi_input
LOCAL_LDLIBS := -llog -landroid -fopenmp
LOCAL_LDFLAGS += "-Wl,-z,max-page-size=16384"

LOCAL_SRC_FILES := main.cpp multi_loader.cpp

Expand Down
1 change: 1 addition & 0 deletions Applications/Multi_input/jni/Application.mk
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
APP_ABI := arm64-v8a
APP_STL := c++_shared
APP_PLATFORM := android-29
APP_SUPPORT_FLEXIBLE_PAGE_SIZES := true
1 change: 0 additions & 1 deletion Applications/PicoGPT/jni/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ LOCAL_MODULE_TAGS := optional
LOCAL_ARM_MODE := arm
LOCAL_MODULE := nntrainer_pico_gpt
LOCAL_LDLIBS := -llog -landroid -fopenmp -static-openmp
LOCAL_LDFLAGS += "-Wl,-z,max-page-size=16384"

LOCAL_SRC_FILES := main.cpp

Expand Down
1 change: 1 addition & 0 deletions Applications/PicoGPT/jni/Application.mk
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
APP_ABI := arm64-v8a
APP_STL := c++_shared
APP_PLATFORM := android-29
APP_SUPPORT_FLEXIBLE_PAGE_SIZES := true
1 change: 0 additions & 1 deletion Applications/ProductRatings/jni/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ LOCAL_MODULE_TAGS := optional
LOCAL_ARM_MODE := arm
LOCAL_MODULE := nntrainer_product_ratings
LOCAL_LDLIBS := -llog -landroid -fopenmp
LOCAL_LDFLAGS += "-Wl,-z,max-page-size=16384"

LOCAL_SRC_FILES := main.cpp

Expand Down
1 change: 1 addition & 0 deletions Applications/ProductRatings/jni/Application.mk
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
APP_ABI := arm64-v8a
APP_STL := c++_shared
APP_PLATFORM := android-29
APP_SUPPORT_FLEXIBLE_PAGE_SIZES := true
1 change: 0 additions & 1 deletion Applications/ReinforcementLearning/DeepQ/jni/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ LOCAL_MODULE_TAGS := optional
LOCAL_ARM_MODE := arm
LOCAL_MODULE := nntrainer_deepq
LOCAL_LDLIBS := -llog -landroid -fopenmp
LOCAL_LDFLAGS += "-Wl,-z,max-page-size=16384"

LOCAL_SRC_FILES := main.cpp $(ENVDIR)/CartPole/cartpole.cpp

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
APP_ABI := arm64-v8a
APP_STL := c++_shared
APP_PLATFORM := android-29
APP_SUPPORT_FLEXIBLE_PAGE_SIZES := true
1 change: 0 additions & 1 deletion Applications/Resnet/jni/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ LOCAL_MODULE_TAGS := optional
LOCAL_ARM_MODE := arm
LOCAL_MODULE := nntrainer_resnet
LOCAL_LDLIBS := -llog -landroid -fopenmp
LOCAL_LDFLAGS += "-Wl,-z,max-page-size=16384"

LOCAL_SRC_FILES := main.cpp $(CIFARDIR)/cifar_dataloader.cpp

Expand Down
1 change: 1 addition & 0 deletions Applications/Resnet/jni/Application.mk
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
APP_ABI := arm64-v8a
APP_STL := c++_shared
APP_PLATFORM := android-29
APP_SUPPORT_FLEXIBLE_PAGE_SIZES := true
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ LOCAL_MODULE_TAGS := optional
LOCAL_ARM_MODE := arm
LOCAL_MODULE := nntrainer_classification
LOCAL_LDLIBS := -llog -landroid -fopenmp
LOCAL_LDFLAGS += "-Wl,-z,max-page-size=16384"

LOCAL_SRC_FILES := main.cpp

Expand All @@ -114,7 +113,6 @@ LOCAL_MODULE_TAGS := optional
LOCAL_ARM_MODE := arm
LOCAL_MODULE := nntrainer_classification_func
LOCAL_LDLIBS := -llog -landroid -fopenmp
LOCAL_LDFLAGS += "-Wl,-z,max-page-size=16384"

LOCAL_SRC_FILES := main_func.cpp

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
APP_ABI := arm64-v8a
APP_STL := c++_shared
APP_PLATFORM := android-29
APP_SUPPORT_FLEXIBLE_PAGE_SIZES := true
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ LOCAL_MODULE_TAGS := optional
LOCAL_ARM_MODE := arm
LOCAL_MODULE := nntrainer_training
LOCAL_LDLIBS := -llog -landroid -fopenmp
LOCAL_LDFLAGS += "-Wl,-z,max-page-size=16384"

LOCAL_SRC_FILES := main.cpp

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
APP_ABI := arm64-v8a
APP_STL := c++_shared
APP_PLATFORM := android-29
APP_SUPPORT_FLEXIBLE_PAGE_SIZES := true
1 change: 0 additions & 1 deletion Applications/VGG/jni/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ LOCAL_MODULE_TAGS := optional
LOCAL_ARM_MODE := arm
LOCAL_MODULE := nntrainer_vgg
LOCAL_LDLIBS := -llog -landroid -fopenmp
LOCAL_LDFLAGS += "-Wl,-z,max-page-size=16384"

LOCAL_SRC_FILES := main.cpp $(CIFARDIR)/cifar_dataloader.cpp

Expand Down
1 change: 1 addition & 0 deletions Applications/VGG/jni/Application.mk
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
APP_ABI := arm64-v8a
APP_STL := c++_shared
APP_PLATFORM := android-29
APP_SUPPORT_FLEXIBLE_PAGE_SIZES := true
1 change: 0 additions & 1 deletion Applications/YOLOv2/jni/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ LOCAL_MODULE_TAGS := optional
LOCAL_ARM_MODE := arm
LOCAL_MODULE := nntrainer_yolo
LOCAL_LDLIBS := -llog -landroid -fopenmp
LOCAL_LDFLAGS += "-Wl,-z,max-page-size=16384"

LOCAL_SRC_FILES := main.cpp det_dataloader.cpp yolo_v2_loss.cpp reorg_layer.cpp
LOCAL_SHARED_LIBRARIES := nntrainer ccapi-nntrainer
Expand Down
1 change: 1 addition & 0 deletions Applications/YOLOv2/jni/Application.mk
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
APP_ABI := arm64-v8a
APP_STL := c++_shared
APP_PLATFORM := android-29
APP_SUPPORT_FLEXIBLE_PAGE_SIZES := true
1 change: 0 additions & 1 deletion Applications/YOLOv3/jni/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ LOCAL_MODULE_TAGS := optional
LOCAL_ARM_MODE := arm
LOCAL_MODULE := nntrainer_yolov3
LOCAL_LDLIBS := -llog -landroid -fopenmp
LOCAL_LDFLAGS += "-Wl,-z,max-page-size=16384"

LOCAL_SRC_FILES := main.cpp det_dataloader.cpp upsample_layer.cpp yolo_v3_loss.cpp
LOCAL_SHARED_LIBRARIES := nntrainer ccapi-nntrainer
Expand Down
1 change: 1 addition & 0 deletions Applications/YOLOv3/jni/Application.mk
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
APP_ABI := arm64-v8a
APP_STL := c++_shared
APP_PLATFORM := android-29
APP_SUPPORT_FLEXIBLE_PAGE_SIZES := true
1 change: 0 additions & 1 deletion Applications/utils/jni/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ LOCAL_CXXFLAGS += -std=c++17 -frtti -fexceptions
LOCAL_MODULE_TAGS := optional

LOCAL_LDLIBS := -llog -landroid -fopenmp
LOCAL_LDFLAGS += "-Wl,-z,max-page-size=16384"

LOCAL_MODULE := app_utils
LOCAL_SRC_FILES := $(UTILS_SRCS)
Expand Down
1 change: 1 addition & 0 deletions Applications/utils/jni/Application.mk
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
APP_ABI := arm64-v8a
APP_STL := c++_shared
APP_PLATFORM := android-29
APP_SUPPORT_FLEXIBLE_PAGE_SIZES := true
Loading

0 comments on commit 0c9c6d7

Please sign in to comment.