Skip to content

Commit 1f798b4

Browse files
author
defremov
committed
Fix recognition result parser for opencl scenarios #78
- add env VIENNACL_CACHE_PATH=DATA_LOCAL_TMP_VIENNACL_CACHE
1 parent 75b1d7e commit 1f798b4

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
//todo it's better to implement all services using IoC
2828
public class AppConfigService {
2929

30+
public static final String DATA_LOCAL_TMP_VIENNACL_CACHE = "/data/local/tmp/viennacl_cache_";
3031
private final static String APP_CONFIG_DIR = "/sdcard/openscience/"; //todo get log dir from common config service
3132
private final static String APP_CONFIG_FILE_PATH = APP_CONFIG_DIR + "app_config.json";
3233

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@
6969
import javax.microedition.khronos.opengles.GL10;
7070

7171
import static openscience.crowdsource.video.experiments.AppConfigService.COMMAND_CHMOD_744;
72+
import static openscience.crowdsource.video.experiments.AppConfigService.DATA_LOCAL_TMP_VIENNACL_CACHE;
7273
import static openscience.crowdsource.video.experiments.AppConfigService.cachedScenariosFilePath;
7374
import static openscience.crowdsource.video.experiments.AppConfigService.externalSDCardOpensciencePath;
7475
import static openscience.crowdsource.video.experiments.AppConfigService.externalSDCardOpenscienceTmpPath;
@@ -936,6 +937,7 @@ public void println(String text) {
936937
String[] scenarioEnv = {
937938
"CT_REPEAT_MAIN=" + String.valueOf(1),
938939
"LD_LIBRARY_PATH=" + libPath + ":$LD_LIBRARY_PATH",
940+
"VIENNACL_CACHE_PATH=" + DATA_LOCAL_TMP_VIENNACL_CACHE
939941
};
940942
publishProgress("Prepared scenario env " + scenarioEnv[0]);
941943
publishProgress("Prepared scenario env " + scenarioEnv[1]);

0 commit comments

Comments
 (0)