search for: omp_unset_lock

Displaying 3 results from an estimated 3 matches for "omp_unset_lock".

Did you mean: omp_set_lock
2015 Apr 10
4
[LLVMdev] Optimization on Atomics (and the OpenMP memory model)
...pilers. * What are non-seq_cst atomic read, write, update and capture lowered to for each of your targets? * What are seq_cst atomic read, write, update and capture lowered to for each of your targets? * What is the taskwait construct lowered to for each of your targets? * What are omp_set_lock and omp_unset_lock lowered to for each of your targets? * What is a barrier lowered to for each of your targets? * Are any optimisations allowed to reorder, change or remove code that uses any of the synchronisation constructs above, or any of the other synchronisation constructs in section 2.12 of the OpenMP 4.0 spe...
2005 Nov 07
3
R thread safe
...alocal) shared(list, lck,rho, ans, n, expr) for(i = 0; i < n; i++) { omp_set_lock(&lck); PROTECT(alocal = allocVector(VECSXP, 1)); alocal = allocVector(VECSXP, 1); defineVar(install("x"), VECTOR_ELT(list, i), rho); omp_unset_lock(&lck); /* do computational kernel in parallel */ alocal = eval(expr, rho); omp_set_lock(&lck); SET_VECTOR_ELT(ans, i, alocal); UNPROTECT(1); omp_unset_lock(&lck); } setAttrib(ans, R_NamesSymbol, getAttrib...
2005 Nov 07
4
Time-measurement in milliseconds
Hi there I'm loking for a time-measurement to measure time-differences in milliseconds. On my search, I only found the following: - package "base": Sys.time() -> only second-accuracy - package "R.utils": System$currentTimeMillis() -> returns integer of milliseconds, but accuracy is only whole seconds too. At the moment I run every bit of code to measure