I used the CL_MEM_ALLOC_HOST_PTR flag with my clCreateBuffer calls, but the Compute Profiler shows all my "host mem transfer type" as being Pageable. I tried it in two different kernel setups, but the profiler wouldn't show that I was using pinned memory.
Is it just really random when a kernel gets to use pinned memory? Is it constraine...
I am building some instrumentation in to an application that is heavily threaded. We have been running in to various memory issues. One of the features I would like to add to the instrumentation is to track how much memory has been allocated per thread.
I've done some research and I can see where this can be done in unmanaged C++ code...
I am writing an application for iPhone/iPad and I need to implement a function to allow users to upload pdf. i wonder if there are limits on the amount of available memory?
...
The following code snippet:
void (*foo)();
char X[1];
char Y[10];
could intruitively give me one possible stack layout of:
| Y[10] |
|---------|
| X[1] |
|---------|
| foo |
|---------|
I examined this by generating the ASM file using:
gcc -S -o stack stack.c
Then I oberved that the order of pushing these variables is ...
Hi all,
I have a modal view controller which is crashing when it dismisses itself. The error is EXC_BAD_ACCESS (yipee). I am tryin got use NSZombie to work out the problem. I get am getting the following :
2010-10-20 17:15:58.936 [24058:207] AddRunningClient starting device on non-zero client count
2010-10-20 17:16:06.846 [24058:207] *...
I assume the latest update version of java would provide better performance.
I am looking for a way to implement isolation of software components from endless loops or memory leaks. Android isolates each app in it's own process, Google Chrome isolates each tab in it's own process.
My primary drawback is that java takes so long to start...
Hello
Some while ago I found a web page explaining the default size of a session was 2048 kb, the minimum was 1 kb.
How can this be adjusted? And if some one has links regarding the subject I would be a happy camper :)
Sorry not for mentioning the IIS, but it is 7.0
Cheers
...
Hi,
I'm working on some applications that require very low latency and push a lot of memory and was doing some testing of how e.g. allocating a list ad-hoc vs. pre-allocating and clearing a list performs.
I was expecting the test runs that pre-allocate the memory to perform a lot faster but to my surprise they're actually slightly slowe...
ldd displays the memory addresses where the shared libraries are linked at runtime
$ cat one.c
#include<stdio.h>
int main() {
printf ("%d", 45);
}
$ gcc one.c -o one -O3
$ ldd one
linux-gate.so.1 => (0x00331000)
libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0x00bc2000)
/lib/ld-linux.so.2 (0x006dc000)
$
From this answer...
Hello, I'm porting some code to another structure:
class EnvironObject
{
protected:
vector<float> mX, mY, mXSpeed, mYSpeed;
int mMaxObjects;
public:
virtual void init(int maxObjects);
virtual void setLimit(int limit);
virtual int getLimit();
virtual void update(float arg) = 0;
};
void EnvironO...
Hi,
after multiple days of banging my head against the wall and having sleepless nights I'm hoping to find some help here. I've gone through various posts here, but none of the answers seem to provide a resolution for me.
In short, my problem is that my App crashes after heavy usage (>10min) of the UIWebView (e.g. opening larger news p...
actually i am using late-binding in delphi, and i need to know wich is the proper way to work with it.
My principal concern is about how I handle the memory used by these objects, I must free the memory?
check this sample code
var
chEaten: Integer;
BindCtx: IBindCtx;
Moniker: IMoniker;
MyObject:: IDispatch;
begin
try
Ol...
My app will create an object. That object will continuously run one of its method, let's say batch processing pictures.
If its method is running, and I release the object and it is dealloced, will iOs automatically deal with the method of the object? for example, automatically stop running the method of the object and avoiding bad_exec...
Circle is a class, with public method GetDiameter().
What is the difference between the following 2 sets of code?
Qn1: Does Method 1 allocates memory for c on stack (hence no need free memory), while Method 2 allocates memory for c on heap (need manually free memory)?
Qn2: When should we use Method 1 or Method 2?
Method 1:
void Init(...
Has anyone used SQLite before with asp.net? Is there a SQLite Linq provider? Do you recommend something other than SQLite? Would like to hear your thoughts.
Will this work as the master database and then backup to a sql server 2005 db? Can you run a hybrid of the two?
...
I understand that certain data type object have certain buffer size. E.g. a char is 1byte.
So, when creating a self-defined class object,
How much memory is allocated to
the object a?
Is the amount of memory allocated
different if the object is created
on stack, or heap?
Is the amount of memory allocated
fixed, or can be changed?
Cre...
If in C++/cli I write
ref class test {
void method() {<
std::vector<float> my_stack_vector;
native_function_call( & my_stack_vector );
}
};
Can the location of my_stack_vector change after its creation? I know that if it lived in the the underlying native stack then it wouldn't change, but with the extra lay...
It seems like 2 million floats should be no big deal, only 8MBs of 1GB of GPU RAM. I am able to allocate that much at times and sometimes more than that with no trouble. I get CL_OUT_OF_RESOURCES when I do a clEnqueueReadBuffer, which seems odd. Am I able to sniff out where the trouble really started? OpenCL shouldn't be failing like thi...
Take a boolean value. One thread is trying to assign a pre-determined value to it, and at exactly the same time another thread is trying to read it. What happens?
...
There are times when didReceiveMemoryWarning gets called, but viewDidUnload does not. In my situation I would like to force viewDidUnload when didReceiveMemoryWarning gets called.
I can say this:
[self viewDidUnload];
But will that really unload the views? There is no self "unloadView".
...