소스 검색

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)"