Author Topic: segmentation faults  (Read 3041 times)

0 Members and 1 Guest are viewing this topic.

Offline esp

  • Supreme QuantumATK Wizard
  • *****
  • Posts: 318
  • Country: us
  • Reputation: 3
    • View Profile
    • University of Minnesota
segmentation faults
« on: September 16, 2012, 19:02 »
I keep getting segmentation faults ... i thought it was because of an ldos calc so i tried a transmission calc .. same thing but after many hours .... do you think i should have someone check out the machine?  if it is simply that atk is using too much memory, why doesn't atk use only as much as needed, or as much is available?  why allow it to create this segmentation fault?

Offline Anders Blom

  • QuantumATK Staff
  • Supreme QuantumATK Wizard
  • *****
  • Posts: 5576
  • Country: dk
  • Reputation: 96
    • View Profile
    • QuantumATK at Synopsys
Re: segmentation faults
« Reply #1 on: September 16, 2012, 21:37 »
You cannot limit a calculation in memory. If it needs to allocate 5 GB to store a matrix for instance, there is no alternative but to allocate 5 GB - and fail it that's not available.

Offline esp

  • Supreme QuantumATK Wizard
  • *****
  • Posts: 318
  • Country: us
  • Reputation: 3
    • View Profile
    • University of Minnesota
Re: segmentation faults
« Reply #2 on: September 16, 2012, 21:50 »
I suppose that makes sense, i gues i was thinking it could serialize when needed, when memory is not enough

Offline Anders Blom

  • QuantumATK Staff
  • Supreme QuantumATK Wizard
  • *****
  • Posts: 5576
  • Country: dk
  • Reputation: 96
    • View Profile
    • QuantumATK at Synopsys
Re: segmentation faults
« Reply #3 on: September 16, 2012, 21:58 »
To write a code with that logic would be extremely difficult I think, because the MPI parallelization is done very deep down and the memory allocation occurs inside that part of the code. So you can't "bubble up" at that point to the top-level and redo everything again in serial.