浏览代码

mlr: fixing the path (and typo)

Luka Stanisic 9 年之前
父节点
当前提交
e3a8d06dda
共有 2 个文件被更改,包括 5 次插入3 次删除
  1. 2 2
      tools/starpu_mlr_analysis.Rmd
  2. 3 1
      tools/starpu_mlr_analysis.in

+ 2 - 2
tools/starpu_mlr_analysis.Rmd

@@ -225,8 +225,8 @@ be somehow useful. This is a simple helper to generate C code for the
 parameters combinations and it should be copied to the task
 description in the application. The function generating the code is
 not so robust, so make sure that the generated code correctly
-corresponds to computed model (for example parameters are considered
-in the alphabetical order).
+corresponds to computed model (e.g., parameters are considered in the
+alphabetical order).
 
 ```{r Code}
 print_codelet(model4, "mlr_cl")

+ 3 - 1
tools/starpu_mlr_analysis.in

@@ -86,6 +86,8 @@ fi
 
 #####################################
 # Running analysis file to get actual results
-Rscript -e "library(knitr); input_trace = '$inputfile' ; outputhtml='$outputfile';\
+in="$(cd "$(dirname "$inputfile")"; pwd)/$(basename "$inputfile")"
+
+Rscript -e "library(knitr); input_trace = '$in' ; outputhtml='$outputfile';\
             outputRmd = gsub('.html\$','.Rmd',outputhtml);\
             knit('$analysis_script',output=outputRmd); knitr::knit2html(outputRmd)"