search for: mort

Displaying 20 results from an estimated 46 matches for "mort".

Did you mean: more
2011 May 21
1
predict 'expected' with eha package
...ame transformed dependent variable output as predict with a survreg model using type=''response''. Since my ''real'' data is left-truncated and right-censored I cannot use survreg, and I wanted to investigate the output from eha. Thanks in advance! Mike > data(mort) > aftreg(Surv(enter, exit, event) ~ ses, data = mort) Call: aftreg(formula = Surv(enter, exit, event) ~ ses, data = mort) Covariate W.mean Coef Exp(Coef) se(Coef) Wald p ses lower 0.416 0 1 (reference) upper 0.584 -0.348...
2018 Apr 18
2
Why does clang do a memcpy? Is the cast not enough? (ABI function args)
...and cast the original variable? On 18/04/18 19:43, Krzysztof Parzyszek via llvm-dev wrote: > This is the standard way of copying memory in the IR. Backends can > expand the memcpy into loads/stores if they want. > > -Krzysztof > > On 4/18/2018 12:38 PM, edA-qa mort-ora-y via llvm-dev wrote: >> Yes, I understand that as well (it's what I'm trying to recreate in my >> language now). >> >> I'm really wondering why it does the copy, since from what I can tell it >> could just as easily cast the original value and do the l...
2018 Apr 19
1
Why does clang do a memcpy? Is the cast not enough? (ABI function args)
...peline of LLVM will clean things up. So in many cases it's just easier (& not a significant impediment to performance) to have some of these sort of redundancies/oddities in output, and just let the LLVM optimization pipeline clean them up later. On Wed, Apr 18, 2018 at 10:51 AM edA-qa mort-ora-y via llvm-dev < llvm-dev at lists.llvm.org> wrote: > Yes, but why is it even copying the memory? It already has a pointer > which it can cast and load from -- and does so in other scenarios. > > I'm wondering whether this copying is somehow required and I'm missing...
2018 Apr 18
2
A struct {i8, i64} has size == 12, clang says size 16
It sounds like your DataLayout may not match clang's for x86_64-linux. What does it say about the alignment of i64? On Wed, Apr 18, 2018 at 12:05 PM edA-qa mort-ora-y via llvm-dev < llvm-dev at lists.llvm.org> wrote: > I'm creating a struct of `{i8,i64}` and `DataLayout::getTypeAllocSize` > is returning `12`. `getStructLayout` also gives an `4` offset for the > second element. > The native ABI, and clang, for the same type are produ...
2018 Apr 19
1
A struct {i8, i64} has size == 12, clang says size 16
...cts, so it's plausibly your specific data-layout that says that i64 only needs aligning to 32-bits (and clang adjusts it because "it can", by adding extra padding elements) - or you're using different targets (or settings for the targets) -- Mats On 18 April 2018 at 21:47, edA-qa mort-ora-y via llvm-dev < llvm-dev at lists.llvm.org> wrote: > I think I see a potential issue. My ExecutionEngine setup may not be > using the same target as my object code emitting, and in this test case > I'm running in the ExecutionEngine. I'll go over this code to ensure &g...
2017 Aug 07
1
Latin hypercube sampling from a non-uniform distribution
> How can I draw a Hypercube sample for the variable mortality_probability so > that this variable exhibits the same pattern as the observed distribution? One simple way is to use the uniform random output of randomLHS as input to the quantile function for your desired distribution(s). For example: q <- randomLHS(1000, 3) colnames(q) <- c(&qu...
2018 Apr 18
1
A struct {i8, i64} has size == 12, clang says size 16
...imagine the exact same triple with clang would produce a different layout. On 18/04/18 21:37, Reid Kleckner wrote: > It sounds like your DataLayout may not match clang's for x86_64-linux. What > does it say about the alignment of i64? > On Wed, Apr 18, 2018 at 12:05 PM edA-qa mort-ora-y via llvm-dev < > llvm-dev at lists.llvm.org> wrote: > >> I'm creating a struct of `{i8,i64}` and `DataLayout::getTypeAllocSize` >> is returning `12`. `getStructLayout` also gives an `4` offset for the >> second element. >> The native ABI, and clang, for...
2018 Apr 18
1
Why does clang do a memcpy? Is the cast not enough? (ABI function args)
This is the standard way of copying memory in the IR. Backends can expand the memcpy into loads/stores if they want. -Krzysztof On 4/18/2018 12:38 PM, edA-qa mort-ora-y via llvm-dev wrote: > Yes, I understand that as well (it's what I'm trying to recreate in my > language now). > > I'm really wondering why it does the copy, since from what I can tell it > could just as easily cast the original value and do the load without the &gt...
2018 Apr 19
1
How to set Target/Triple of ExecutionEngine
...setMArch(arch). setMAttrs(mattrs). create(); If those are still failing, it would be interesting to get the data layout string that you are getting from the ExecutionEngine instance and compare it to what you are expecting. Cheers, Lang. On Thu, Apr 19, 2018 at 1:56 AM, edA-qa mort-ora-y via llvm-dev < llvm-dev at lists.llvm.org> wrote: > Taking one step back, I'm not clear I'm even setting the > triple/DataLayout on the module correctly: > > module = new llvm::Module( "test", *llvm_context ); > module->setTargetTriple( p...
2003 Nov 05
13
[PATCH] Link breaks for large NR_CPUS
...d ext3 to link correctly when the kernel is configured with a large NR_CPUS. We do have an immediate need for this patch. Any opinions on this? The per-cpu lists are causing the kmalloc to fail due to allocating more than the max. thanks mh -- Martin Hicks Wild Open Source Inc. mort@wildopensource.com 613-266-2296 # This is a BitKeeper generated patch for the following project: # Project Name: Linux kernel tree # This patch format is intended for GNU patch command version 2.5 or higher. # This patch includes the following deltas: # ChangeSet 1.1356 -> 1.1...
2018 Apr 18
1
Why does clang do a memcpy? Is the cast not enough? (ABI function args)
...doing it this way. On 18/04/18 19:33, Krzysztof Parzyszek via llvm-dev wrote: > It is a matter of the calling convention. It would specify what > structs are passed in registers, and which are passed through stack. > > -Krzysztof > > On 4/18/2018 12:28 PM, edA-qa mort-ora-y via llvm-dev wrote: >> I understand it's passing by value, that's what I'm testing here. The >> question is why does it copy the data rather than just casting and >> loading values from the original variable (%v) ?  It seems like the >> copying is unnecessa...
2018 Apr 19
1
How to set Target/Triple of ExecutionEngine
..."test", *llvm_context );     module->setTargetTriple( platform::target->triple ); Is that enough to create an appropriate DataLayout for the module?  I don't see anyway to convert a triple to a DataLayout, so I can't call `setDataLayout`. On 19/04/18 10:44, edA-qa mort-ora-y via llvm-dev wrote: > I don't know if I'm setting the triple of my execution engine > correctly.  This is leading to an issue where a struct `{i8,i64}` is not > getting the same layout as the ABI expects. > > I setup my engine/module like this: > >      llvm::...
2018 Apr 18
2
A struct {i8,i64} has size == 12, clang says size 16
...y     #include <stddef.h>     typedef struct vpt_data {         _Bool c;         long int b;     } vpt_data;     int main() {         vpt_data v;         vpt_test(v);         auto a = sizeof(v);         auto off = offsetof(vpt_data,b);     } 16 is stored to `a` and 8 to `off`. -- edA-qa mort-ora-y http://mortoray.com/ Creator of the Leaf language http://leaflang.org/ Streaming algorithms, AI, and design on Twitch https://www.twitch.tv/mortoray Twitter edaqa
2018 Apr 18
1
Why does clang do a memcpy? Is the cast not enough? (ABI function args)
It is a matter of the calling convention. It would specify what structs are passed in registers, and which are passed through stack. -Krzysztof On 4/18/2018 12:28 PM, edA-qa mort-ora-y via llvm-dev wrote: > I understand it's passing by value, that's what I'm testing here. The > question is why does it copy the data rather than just casting and > loading values from the original variable (%v) ?  It seems like the > copying is unnecessary. > > N...
2018 Mar 17
1
Migration from 3.8 to 6.0 questions (segfault most concerning)
...eModel? I'm still using the legacy::PassManager. Is there a new way to do the passes now? There docs still reference `tool_output_file*`*, but it appears the new name, in the header, is `ToolOutputFile`. https://llvm.org/doxygen/classllvm_1_1tool__output__file.html -- edA-qa mort-ora-y http://mortoray.com/ Creator of the Leaf language http://leaflang.org/ Streaming algorithms, AI, and design on Twitch https://www.twitch.tv/mortoray Twitter edaqa -------------- next part -------------- An HTML attachment was scrubbed... URL: &l...
2018 Apr 18
1
Why does clang do a memcpy? Is the cast not enough? (ABI function args)
...ry. Not all struct's result in the copy, only certain forms -- others are just cast directly as I was expecting. I'm just not clear on what the differences are, and whether I need to do the same thing. On 18/04/18 19:13, Dimitry Andric wrote: > On 18 Apr 2018, at 18:40, edA-qa mort-ora-y via llvm-dev <llvm-dev at lists.llvm.org> wrote: >> I'm implementing function arguments and tested this code in C: >> >> // clang -emit-llvm ll_struct_arg.c -S -o /dev/tty >> typedef struct vpt_data { >> char a; >>...
2018 May 05
1
Slow IR compilation/JIT, profiling points to LLVM?
Hi, Could you share how you compile IR and which version of JIT you use (Orc, MCJIT)? Could it be that you are using interpreter instead of actual JIT? Cheers, Alex. > On 5. May 2018, at 08:04, edA-qa mort-ora-y via llvm-dev <llvm-dev at lists.llvm.org> wrote: > > I'm having issues of my compiler, and JIT execution, of LLVM IR being > rather slow. It's accounting for the vast majority of my full > compilation time. I'm trying to figure out why this is happening, since...
2018 May 05
2
Slow IR compilation/JIT, profiling points to LLVM?
...ENABLE_ASSERTIONS=ON -DLLVM_OPTIMIZED_TABLEGEN=ON -DCMAKE_INSTALL_PREFIX="/opt/llvm/install" The overall time split, from valgrind, between shared libraries in my code is:     80.48%, libLLVM-6.0.so     8.83% libc-2.23.so     2.34% libleaf_lang.so (my front-end) -- edA-qa mort-ora-y http://mortoray.com/ Creator of the Leaf language http://leaflang.org/ Streaming algorithms, AI, and design on Twitch https://www.twitch.tv/mortoray Twitter edaqa
2017 Aug 04
1
Latin hypercube sampling from a non-uniform distribution
Hello, I am performing a sensitivity analysis using a Latin Hypercube sampling. However, I have difficulty to draw a Hypercube sample for one variable. I?ve generated this variable from a Poisson distribution as follows: set.seed(5) mortality_probability <- round(ppois(seq(0, 7, by = 1), lambda = 0.9), 2) barplot(mortality_probability, names.arg = seq(0, 7, by = 1), xlab = "Age class", ylab = "Probability") How can I draw a Hypercube sample for the variable ?mortality_probability? so that this variable exhib...
2017 Aug 07
1
Latin hypercube sampling from a non-uniform distribution
Thanks for your answer. However, my variable is simulated from the cumulative distribution function of the Poisson distribution. So, the pattern obtained from the function "qpois" is not the same as the observed pattern (i.e., obtained from the function "ppois") set.seed(5) mortality_probability <- round(ppois(seq(0, 7, by = 1), lambda = 0.9), 2) barplot(mortality_probability, names.arg = seq(0, 7, by = 1), xlab = "Age class", ylab = "Probability") library(lhs) set.seed(1) parm <- c("var1", "var2", "mortality_probability&...