Skip to content

Commit

Permalink
updated module:program
Browse files Browse the repository at this point in the history
  • Loading branch information
gfursin committed Dec 18, 2020
1 parent 90823ad commit 8699cc0
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
* V1.55.1
* removed two outdated modules
* updated module:program

* V1.55.0
* Fixed missing CK modules
Expand Down
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,11 @@ ck ls program:*susan*

ck search dataset --tags=jpeg

ck detect soft --tags=compiler,gcc
ck detect soft --tags=compiler,llvm

ck show env --tags=compiler

ck compile program:cbench-automotive-susan --speed

ck run program:cbench-automotive-susan --cmd_key=corners --repeat=1 --env.MY_ENV=123 --env.TEST=xyz
Expand Down Expand Up @@ -168,7 +173,8 @@ in the form of portable CK workflows, automation actions and reusable components

## Contributions

Users can extend the CK functionality via external [GitHub reposities](https://cKnowledge.io/repos) in the CK format
Users can extend the CK functionality via [CK modules](https://github.com/ctuning/ck/tree/master/ck/repo/module)
or external [GitHub reposities](https://cKnowledge.io/repos) in the CK format
as described [here](https://ck.readthedocs.io/en/latest/src/typical-usage.html).

Please check [this documentation](https://ck.readthedocs.io/en/latest/src/how-to-contribute.html)
Expand Down
15 changes: 14 additions & 1 deletion ck/repo/module/program/module.py
Original file line number Diff line number Diff line change
Expand Up @@ -2822,13 +2822,26 @@ def process_in_dir(i):
if tosd.get('remote_dir_full','')!='':
yrdir=tosd['remote_dir_full']+stdirs+rdir

y=rs+' '+eifsx1+tosd['change_dir']+' '+yrdir+envtsep+' '+y+eifsx1+' '+rse
y=rs+' '+eifsx1+tosd['change_dir']+' '+yrdir+envtsep+' '+y

# Current behaviour on android is to redirect back to the host machine.
# This can result in a significant amount of data transferred. On some devices
# this has caused the adb client to crash. Proposal is to redirect to device and
# transfer back as a normal run_cmd_out file.
# Many options for redirecting to target as all seem to be valid levels to make this choice
rtt=tosd.get('redirect_to_target','')=='yes' or meta.get('redirect_to_target','')=='yes' or rt.get('redirect_to_target','')=='yes'
if not rtt:
y+=eifsx1+' '+rse

if cons!='yes':
if ercmd!='': y+=' '+ercmd
if rco1!='': y+=' '+stro+' '+rco1
if rco2!='': y+=' '+stre+' '+rco2

# Delay command end to after redirects
if rtt:
y+=eifsx1+' '+rse

# if o=='con':
# ck.out(y)

Expand Down

0 comments on commit 8699cc0

Please sign in to comment.