Project

General

Profile

Bug #262

Failure to test file pointer before writing in setting up IA64 kernels

Added by Mark Abraham almost 11 years ago. Updated almost 11 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Erik Lindahl
Category:
mdrun
Target version:
Affected version - extra info:
Affected version:
Difficulty:
uncategorized
Close

Description

At line 191 of src/gmxlib/nonbonded/nb_kernel_ia64_single/nb_kernel_ia64_single.c the code attempts to write to the logfile without testing for a non-zero pointer. On all non-master MPI processes, this pointer is zero, and so the code segfaults.

ia64_double has the same problem.

To fix, insert a test for a zero pointer.

Since other kernels do not produce such output, perhaps some regularization across the kernels is a good idea.

History

#1 Updated by Erik Lindahl almost 11 years ago

Fixed in release branch (will get merged into head after 4.0.3).

All the NB kernels are due for an overhaul later this spring to enable GPUs and similar stuff!

#2 Updated by Erik Lindahl almost 11 years ago

Fixed in release branch (will get merged into head after 4.0.3).

All the NB kernels are due for an overhaul later this spring to enable GPUs and similar stuff!

Also available in: Atom PDF