From 2030a3fd4bc6f71e3732e3dec9e9ef1d3d7d142f Mon Sep 17 00:00:00 2001 From: carlosuc3m <100329787@alumnos.uc3m.es> Date: Tue, 22 Nov 2022 17:54:14 +0100 Subject: [PATCH] add information message for arm64 based systems --- .../DeepLearningVersionSelector.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/main/java/plugins/danyfel80/deeplearningdownloader/DeepLearningVersionSelector.java b/src/main/java/plugins/danyfel80/deeplearningdownloader/DeepLearningVersionSelector.java index daa3566..2b6d9c3 100644 --- a/src/main/java/plugins/danyfel80/deeplearningdownloader/DeepLearningVersionSelector.java +++ b/src/main/java/plugins/danyfel80/deeplearningdownloader/DeepLearningVersionSelector.java @@ -6,6 +6,7 @@ import java.util.Map; import java.util.function.Function; import java.util.stream.Collectors; +import org.bioimageanalysis.icy.deeplearning.utils.Constants; import org.bioimageanalysis.icy.deeplearning.versionmanagement.AvailableDeepLearningVersions; import org.bioimageanalysis.icy.deeplearning.versionmanagement.DeepLearningVersion; @@ -71,6 +72,15 @@ public class DeepLearningVersionSelector extends EzPlug implements EzStoppable, @Override protected void initialize() { + MessageDialog.showDialog("ARM64 chips and compatiblity with Deep Learnign engines", + "This computer uses the ARM64 chip architecture. This architecture" + System.lineSeparator() + + "is relatively recent, therefore many of the existing Deep Learning" + System.lineSeparator() + + "engines will not be available on your computer." + System.lineSeparator() + + "ARM64 chips also provide the possibility of running some x86_64" + System.lineSeparator() + + "compiled programs using Rosetta. In order to enable Rosetta, change" + System.lineSeparator() + + "the JAVA_HOME variable to a Java 8 or lower. Using Rosetta will" + System.lineSeparator() + + "enable more Deep Learning engines, but there will be some still missing." + System.lineSeparator() + + "For more information, go to the Wiki: " + System.lineSeparator() + Constants.WIKI_LINK, MessageDialog.INFORMATION_MESSAGE); String[] versionStrings = versions.keySet().stream().sorted().toArray(String[]::new); varInVersion = new EzVarText("Version", versionStrings, getDefaultVersionIndex(versionStrings), false); addEzComponent(varInVersion); -- GitLab