Skip to content

Commit 5d572c2

Browse files
committed
fixing ViennaCL cache path on Samsung S7
1 parent 2f6e828 commit 5d572c2

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

app/src/main/java/openscience/crowdsource/video/experiments/MainActivity.java

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -932,20 +932,21 @@ public void println(String text) {
932932
String openCLlibPath = null;
933933
openCLlibPath = patchOpenCLIfRequired();
934934

935-
String viennaclCachePath = "";
936-
937935
if (openCLlibPath != null) {
938936
libPath = libPath + ":" + openCLlibPath;
939-
viennaclCachePath = localAppPath + File.separator + "viennacl_cache"+ File.separator;
940-
File appfp = new File(viennaclCachePath);
941-
if (!appfp.exists()) {
942-
if (!appfp.mkdirs()) {
943-
publishProgress("\nError creating dir (" + viennaclCachePath + ") ...");
944-
return null;
945-
}
946-
}
937+
}
947938

939+
String viennaclCachePath = "";
940+
941+
viennaclCachePath = localAppPath + File.separator + "viennacl_cache"+ File.separator;
942+
File appfp = new File(viennaclCachePath);
943+
if (!appfp.exists()) {
944+
if (!appfp.mkdirs()) {
945+
publishProgress("\nError creating dir (" + viennaclCachePath + ") ...");
946+
return null;
947+
}
948948
}
949+
949950
String[] scenarioEnv = {
950951
"CT_REPEAT_MAIN=" + String.valueOf(1),
951952
"LD_LIBRARY_PATH=" + libPath + ":$LD_LIBRARY_PATH",

0 commit comments

Comments
 (0)