stack-size

Increasing stack memory for Image Procesing (C++ OpenCV)

安稳与你 提交于 2019-12-12 04:12:23
问题 is there any way to increase the stack memory for image processing using C++/OpenCV interface?.... I want to load multiple images (lets say around 100 with each image of size roughly 1 MB) into memory and perform parallel computation on them using GPU. 来源: https://stackoverflow.com/questions/23625487/increasing-stack-memory-for-image-procesing-c-opencv

How to change stack size of a console application? [duplicate]

梦想与她 提交于 2019-12-11 01:47:35
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: How to change stack size for a .NET program? I want to change the stack size for the following console application: using System; using System.IO; class Test { static int n; static bool[] us; static int[,] matr; static void dfs(int a) { us[a] = true; for (int b = 0; b < n; b++) { if (!us[b]) { dfs(b); } } } static void Main() { StreamReader input = new StreamReader("input.txt"); StreamWriter output = new

How to set openmp thread stack to unlimited?

寵の児 提交于 2019-12-10 12:19:38
问题 Can someone tell me how to set OpenMP stack size to unlimited? Like this link: Why Segmentation fault is happening in this openmp code? I also have a project written by Fortran (customer‘s complex code), if I set OMP_STACKSIZE , the project is running normally. If I unset it, the project fails. But, different input data have different OMP_STACKSIZE , so I must try it for each inputdata, (because I must save memory). Can I set the OpenMP stack like pthread ( ulimit -s unlimited )? Or have some

cc1plus.exe crash when using large precompiled header file

流过昼夜 提交于 2019-12-10 01:31:57
问题 I'm having an issue using precompiled header files with MinGW. The compiler seems to find the precompiled header file but cc1plus.exe crashes immediately after (cc1plus.exe has stopped working). I've understood that this might be in connection with cc1plus.exe's low stack size, so I did the following to increase it: editbin cc1plus.exe /STACK 33554432 and I also tried to no avail: editbin cc1plus.exe /STACK 32768k This however did not solve it as it still keeps crashing whenever I try to

Consequences of Ruby's fiber 4kB stack size

爷,独闯天下 提交于 2019-12-08 15:09:28
问题 Fibers are a relatively new concept to me. I'm aware that each fiber's stack size is limited to 4kB and I keep reading that I should "beware" of this. What exactly are the real world consequences of this limit? Edit: It seems that this 4kB limitation isn't such a hindrance after all and it takes a good number of local variables (4,045) within the fiber itself to cause a SystemStackError to be raised. count = 0 loop do count += 1 puts count varlist = String.new count.times do |i| varlist += "a

What is the stack size of MATLAB?

穿精又带淫゛_ 提交于 2019-12-07 08:04:19
问题 What is the default stack size of MATLAB R2018a (64-bit)? It seems that the stack-size is larger than an 64-bit C# program. Why I'm asking that I'm asking this question because I'm calling Intel MKLs LAPACKE_dtrtri which is heavily recursive. I'm using that function inside .NET application and I'm getting a stack overflow error when calling it from C#, see What is the stack size of a BackgroundWorker DoWork Thread? Is there way to change it? On the other side if I call my .NET application

Python threads stack_size and segfaults

别说谁变了你拦得住时间么 提交于 2019-12-06 11:57:47
A web crawler script that spawns at most 500 threads and each thread basically requests for certain data served from the remote server, which each server's reply is different in content and size from others. i'm setting stack_size as 756K's for threads threading.stack_size(756*1024) which enables me to have the sufficient number of threads required and complete most of the jobs and requests. But as some servers' responses are bigger than others, and when a thread gets that kind of response, script dies with SIGSEGV. stack_sizes more than 756K makes it impossible to have the required number of

Unified stack for native and Java in Android Runtime (ART)

放肆的年华 提交于 2019-12-06 07:26:11
https://developer.android.com/guide/practices/verifying-apps-art.html#Stack_Size This document says that the ART has a unified stack for native and Java. Could you tell me what does it mean? I understand that thread's stack-size can be defined only when it is created, e.g. using constructor of Thread class in Java code or pthread API in native code. So I can not understand how does unified stack affect behavior of applications. Please direct me to some good tutorials or snippet throws StackOverflowError resulted from unified stack. In Dalvik, each thread have a two separate stacks, one for the

Safe thread stack size?

会有一股神秘感。 提交于 2019-12-06 03:25:14
问题 I am writing some code that spawns quite a few threads (about 512 at the moment, but that could get higher in the future). Each of the threads only performs a small amount of operations, so I want the overhead that the threads place on the system to be kept at a minimum. I am setting the stack size using pthread_attr_setstacksize() , and I can get the minimal allowed stack size from PTHREAD_STACK_MIN . But my question is: Is it safe to use PTHREAD_STACK_MIN for the thread stack size? How do I

What is the stack size of MATLAB?

耗尽温柔 提交于 2019-12-05 14:02:58
What is the default stack size of MATLAB R2018a (64-bit)? It seems that the stack-size is larger than an 64-bit C# program. Why I'm asking that I'm asking this question because I'm calling Intel MKLs LAPACKE_dtrtri which is heavily recursive. I'm using that function inside .NET application and I'm getting a stack overflow error when calling it from C#, see What is the stack size of a BackgroundWorker DoWork Thread? Is there way to change it? On the other side if I call my .NET application from MATLAB I'm not getting a stack overflow error. That's the reason I wanted to know what the stack size