Commit e93bead
Celery coverage2 (#976)
* fixed SQL query syntax
* cleanup attemps + mlir test failure undo
* commented out failing rocmlir test assert
* pylint fix
* tuning updates
* duplicate logger handler
* pulled session out of processing function call
* utest fix
* syntax fix
* fixed the timing
* added subproc to purge Q by name
* pylint
* ctrl+c queue drain handle
* pylint
* stopping active workers on ctrl+x
* added enqueue_only arg
* merge fix
* added cancel_consumer, shutdown_worker cmd line arg + some review fixes
* moved cancel consumer to end of tuning
* pylint
* changing JK file to work with celery, added parallel step for findcompile
* fixed JK file syntax
* added kill subp by PID to terminate celery workers
* checking CI for execute step fail
* moved CompileEnqueue job checking stage over from execute
* added stage to build DB
* running applic to add session
* sleep on execute for 30 sec to ensure enqueue
* testing with launching celery worker from groovy file
* parallel steps inside the same stage
* parallel stage edit
* added daemonize
* running enqueue in background with &
* pipe-ing output to file
* stdout, stderr from subp
* stdout, stderr from subp
* reading stoud
* added loop exit
* removed blocking read
* launching celery worker from groovy file
* added missing celery_log file
* fixed celery cmd
* removed detached mode
* starting worker before enqueue
* removed the background job for enqueue
* start/join on subp for celery workers
* running enq in the background
* removed subp.start
* calling subproc.run/join
* removed process wait barrier + groovy file update with kill C worker by pid
* groovy syntax fix
mypy pylint ignore
declaring pid var in groovy
trying to get pid
groovy fix
Bump idna from 2.8 to 3.7 (#965)
Bumps [idna](https://github.com/kjd/idna) from 2.8 to 3.7.
- [Release notes](https://github.com/kjd/idna/releases)
- [Changelog](https://github.com/kjd/idna/blob/master/HISTORY.rst)
- [Commits](kjd/idna@v2.8...v3.7)
---
updated-dependencies:
- dependency-name: idna
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
launching celery for eval per GPU
fixed get num_gpu script
fix loop index + added --enqueue to find_eval
groovy range
range fix
testing with int cast
loop for i in iter
testing different loop
for loop instead of .each
removed for loop
var rename
removed loops
removed printout from go_fish
removed for loop
added NonCPS directive
updated perf_compile and perf_eval with celery runs
updated perf_compile and perf_eval with celery runs
each
replaced elem with it
removed all loops
* pipeline fix
* hardcoding numbers for golden entries
* undid perf compile/eval shrink
* fix groovy
* undid merge of perf runs in perfEval
* added enqueue_only cmd line arg
* updated update_golden call to write entries with version 1
* commented out solverA test that checks for gfx908 entries (we run a diff arch for perf)
* added GPU loop for findEval
* fixed groovy echo
* fix pid list for celery workers, function for stopping workers in enqueue, enqueue purges queue at start
* pass subprocess pointers to tuning setup and join tuning setup to spawned celery workers
* kill celery workers when call to worker generation is canceled
* extra loggin
* added asyncio
* fixed counter
* resetting job state for in flight jobs with no results
* state rest
* move purge_queue
* trying to update redis key prefix
* trying to update redis key prefix
* only shutdown celery workers from current session
* global_keyprefix
* unified prefix nme
* updated Q name, global_prefix + result fetch on not new jobs
* moved functions into utility files
* no-cache
* moved enqueue into mituna_interface
* moved everything into interfaces
* update baseimage in dockerfile
* moved prep_tuning and tune in interface
* fixins
* fixed enum operation
* cleanup
* fixed Operation check
* worker operation fix
* fixed operation compare
* extra logging
* import
* removed app.start
* removed app.start so we can set configurations
* updated Q name in manual worker launch in groovy file
* moved machine init in run function
* cache machine for celery task to avoid re-init, retrieve worker name in celery task, set gpu_id in celery task
* using task_id to differentiate btw different runs and results
* cleanup
* fixed groovy file celery q names and worker names as per code updates
* cache tuna worker objects for celery workers
* added subproc for async function
* filter eval op for querying gpu_id in celery task
* custom error class + cleanup
* yapf
* README updates
* fixed missing args + CTRL+C interrupt catch for async run
* fix for worker_launch
* updates in groovy to print celery worker output
* syntax fix
* added logfile printout for compile step
* utest updates to accomodate for functions moving around
* removed no-cache from docker builds
* yapf
* removed pid from logname
* test
* launching workers through tuna
* inspecting celery
* adding args.fin_steps to redis key prefix to differentiate btw find/perf/eval/compile results in consume
* merged parallel branch
* removed local prefix
* string filter adjustment
* added cleaup function for redis results
* fixed launch for compile worker
* fixed prefix filtering for redis keys
* fix prefix issue when no fin_steps present
* fixed sess_str to cancel worker
* added reply_to for task decorator
* prefix fix
* string literal fix
* updated celery worker name in groovy file
* launching worker locally in detach mode
* set correct celery env vars to launch worker manually
* added CELERY_BROKER env var
* setup env vars for rest of utils functions that work with celery
* undid groovy utils function name change
* explicitly setting TUNA_CELERY_BROKER in docker env
* added CELERY_BROKER env var for tuna launch
* separated log files for stages
* added CELERY_BROKER env var to findEval
* moved CELERY_BROKER url to inline
* added CELERY_BROKER inline export for each enqueue_call
* print proc_id
* fix for pid return
* escaping &
* replace double quotes to eascap $
* fixed stdout/stderr redirect
* 123
* 123
* replaced &=046
* reverted single quotes to double
* cleanup
* cleanup
* undid false removal of load_job
* sudo for kill -9
* enabling perfCompile/eval stages
* fixed log file for perf_eval
* fixed celery worker name for perfEval
* fixed gpu_id for eval stages
* fixed groovy syntax
* fixed groovy syntax
* checking whoami /etc/pwd
* enabling back utests
* utest + doc updates
* fix for fin_builder utest
* syntax fix
* fin_eval utest update
* moved fin_eval utest step to gpu node and split from coverage
* fin_eval utest update
* yapf
* checking jobs
* skipping codecov to test all other CI stages
* utest fin_eval fix
* added celery_app and celery_tasks to ignore in codecov
* yapf
* fin_eval utest fic
* fineval stage try catch for printing celery logfile
* checking prefix
* fixed log file in find eval
* fixed groovy syntax
* removed sudo from kill -9
* try catch for pid kill
* try catch block for kill cmd in perfEval
* undid update_golden calls in groovy file
* checking coverage details
* utest for new miopen_lib functions
* move miopen_lib utests
* utest fix for miopen_lib
* fin_builder utest extra coverage for miopen_lib functionality
* added test_celery utest
* added more to celery utest
* fixed import
* extra tuna_celery code for utest
* pylint
* added test_celery to utest call
* added test_helper for extra codecov
* new test_helper utest
* more utests for fin_eval and celery
* more fin_eval utests
* more celery functions utest added
* yapf + test_mituna_interface
* yapf + test_mituna_interface
* cleanup
* fixed utest test_celery check
* canceling consumer on early exit for no new jobs
* ignoring example/ from coverage
* celery launches for pipelines
* add env for celery broker
* end docker container running enqueue
* fix
* remote workers will be killed by enqueue, so remove extra kill
* kernel clear search performance
* update gpu_id tracking
* end pipeline enqueue docker with sigkill to allow cleanup
* remove docker wait
* Revert "remove docker wait"
This reverts commit 92930cc.
* reset job_counter on sigint
* periodic search for new jobs
* rebuild enqueue process
* reduce logging
* test speedup for kernel query
* add missing import
* test alchemy alternative
* test query
* cleanup
* cleanup + reviews
* addressed reviews
* utest update post branch pull
* fix merge in JK file
* fix merge in JK file
* merge fix
* readded .coveragec file post merge
* added check for shutting down celery workers
---------
Co-authored-by: Alex Bara <alex.bara@amd.com>
Co-authored-by: Christopher Erb <Christopher.Erb@amd.com>1 parent 9d5d2d9 commit e93bead
16 files changed
Lines changed: 584 additions & 236 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
94 | | - | |
95 | 94 | | |
96 | 95 | | |
97 | 96 | | |
98 | 97 | | |
99 | 98 | | |
100 | 99 | | |
101 | 100 | | |
102 | | - | |
| 101 | + | |
103 | 102 | | |
104 | 103 | | |
105 | 104 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
52 | 51 | | |
53 | 52 | | |
54 | 53 | | |
| |||
0 commit comments