Author Topic: Error installing VNL under openSUSE 11.2  (Read 15340 times)

0 Members and 1 Guest are viewing this topic.

Offline svollebregt

  • Heavy QuantumATK user
  • ***
  • Posts: 28
  • Reputation: 0
    • View Profile
Error installing VNL under openSUSE 11.2
« on: November 16, 2009, 15:09 »
Hi,

I'm trying to install VNL 2008.10 under openSUSE 11.2 x86-64. I found that some libraries were missing (gcc, glibc-devel and gcc-g77). I installed the 32 bit versions of those three (which means I also need the 64 bit version of the gcc and glibc-devel). After this the libg2c error was gone, but now when I try to run vnl I get the following error:

vnl: line 3: 25858 Segmentation fault      LD_LIBRARY_PATH=$EXEC_DIR/../lib $EXEC_DIR/vnl_exec $*

What is this (it seems to be related with a program attempting to do something to a memory location it isn't allowed), and more important: how can I fix this?

Online Anders Blom

  • QuantumATK Staff
  • Supreme QuantumATK Wizard
  • *****
  • Posts: 5575
  • Country: dk
  • Reputation: 96
    • View Profile
    • QuantumATK at Synopsys
Re: Error installing VNL under openSUSE 11.2
« Reply #1 on: November 16, 2009, 15:37 »
Shouldn't normally be a problem to run on this platform, but we'll have a look. For now, please try the 2009.11 edition.
« Last Edit: November 16, 2009, 15:39 by Anders Blom »

Offline svollebregt

  • Heavy QuantumATK user
  • ***
  • Posts: 28
  • Reputation: 0
    • View Profile
Re: Error installing VNL under openSUSE 11.2
« Reply #2 on: November 16, 2009, 16:38 »
The 2009.11 version seems to be working (atleast I can launch the GUI :)).

Offline svollebregt

  • Heavy QuantumATK user
  • ***
  • Posts: 28
  • Reputation: 0
    • View Profile
Re: Error installing VNL under openSUSE 11.2
« Reply #3 on: November 18, 2009, 11:56 »
And now the 2008.10 versions also works, not sure what fixed it though. Maybe after some reboots the required libraries sorted themselves out.

Online Anders Blom

  • QuantumATK Staff
  • Supreme QuantumATK Wizard
  • *****
  • Posts: 5575
  • Country: dk
  • Reputation: 96
    • View Profile
    • QuantumATK at Synopsys
Re: Error installing VNL under openSUSE 11.2
« Reply #4 on: November 18, 2009, 12:04 »
Oh, glad to hear that! Normally Linux is not sensitive to reboots in this way, but then again it was a segfault, not a missing library, so perhaps there was some interference with other processes...


Offline svollebregt

  • Heavy QuantumATK user
  • ***
  • Posts: 28
  • Reputation: 0
    • View Profile
Re: Error installing VNL under openSUSE 11.2
« Reply #5 on: November 19, 2009, 14:47 »
I have another question regarding VNL 2008.10. I'm currently working my way through the tutorial and what I notice is that the calculated values I get from the simulator are always slightly off from those mentioned in the tutorial. For instance when performing the bulk Si lattice constant variation I get the following results compared with those mentioned in the tutorial
lattice constant (A)my values (eV)tutorial values (eV)
5.0-357.0881-357.0873
5.2-357.6925-357.6944
5.4-357.8685-357.8717
5.6-357.7362-357.7387
5.8-357.3951-357.3989
6.0-356.9224-356.9253
Here is the VNL script for the first lattice constant
Code
from ATK.KohnSham import *
from ATK.MPI import processIsMaster

# Generate time stamp
if processIsMaster():
    import platform, time
    print '#',time.ctime()
    print '#',platform.node(),platform.platform()+'\n'

# Opening vnlfile
if processIsMaster(): file = VNLFile('bulk_configuration_20091119142725.vnl')

# Select Bravais lattice and define lattice constants
bravais_lattice = FaceCenteredCubic(
    a=5.000000 * Angstrom
    )

# Define bulk elements and unit cell coordinates
elements = [Silicon, Silicon]
coordinates = [[ 0.  ,  0.  ,  0.  ],
               [ 1.25,  1.25,  1.25]]*Angstrom

# Set up bulk configuration
bulk_configuration = BulkConfiguration(
    bravais_lattice,
    elements,
    cartesian_coordinates=coordinates
    )
if processIsMaster(): nlPrint(bulk_configuration)
if processIsMaster(): file.addToSample(bulk_configuration, 'bulk_configuration')

######################################################################
# Parameters
######################################################################
exchange_correlation_type = LDA.PZ

iteration_mixing_parameters = iterationMixingParameters(
    algorithm = IterationMixing.Pulay,
    diagonal_mixing_parameter = 0.1,
    quantity = IterationMixing.Hamiltonian,
    history_steps = 6
)

eigenstate_occupation_parameters = eigenstateOccupationParameters(
    temperature = 300.0*Kelvin
)

electron_density_parameters = electronDensityParameters(
    mesh_cutoff = 150.0*Rydberg
)

basis_set_parameters = basisSetParameters(
    type = DoubleZetaDoublePolarized,
    radial_sampling_dr = 0.001*Bohr,
    energy_shift = 0.01*Rydberg,
    delta_rinn = 0.8,
    v0 = 40.0*Rydberg,
    charge = 0.0,
    split_norm = 0.15
)

iteration_control_parameters = iterationControlParameters(
    tolerance = 1e-05,
    criterion = IterationControl.TotalEnergy,
    max_steps = 100
)

brillouin_zone_integration_parameters = brillouinZoneIntegrationParameters(
    monkhorst_pack_parameters = (5, 5, 5)
)

two_center_integral_parameters = twoCenterIntegralParameters(
    cutoff = 2500.0*Rydberg,
    points = 1024
)

######################################################################
# Initialize self-consistent field calculation
######################################################################
kohnsham_method = KohnShamMethod(
    exchange_correlation_type = exchange_correlation_type,
    iteration_mixing_parameters = iteration_mixing_parameters,
    eigenstate_occupation_parameters = eigenstate_occupation_parameters,
    electron_density_parameters = electron_density_parameters,
    basis_set_parameters = basis_set_parameters,
    iteration_control_parameters = iteration_control_parameters,
    two_center_integral_parameters = two_center_integral_parameters,
    brillouin_zone_integration_parameters = brillouin_zone_integration_parameters
)
if processIsMaster(): nlPrint(kohnsham_method)

runtime_parameters = runtimeParameters(
    verbosity_level = 10,
    checkpoint_filename = None
)

# Perform self-consistent field calculation
scf = executeSelfConsistentCalculation(
    bulk_configuration,
    kohnsham_method,
    runtime_parameters = runtime_parameters
)

######################################################################
# Calculate physical properties
######################################################################
# Set verbosity level so that all energy components are printed
import ATK
verbosity_level=ATK.verbosityLevel()
ATK.setVerbosityLevel(10)
total_energy = calculateTotalEnergy(self_consistent_calculation = scf)
ATK.setVerbosityLevel(verbosity_level)

if processIsMaster(): nlPrint(total_energy,'Total energy')
if processIsMaster(): file.addToSample(total_energy, 'bulk_configuration', 'Total energy')
Could it be that the tutorial was calculated using a different version of ATK or with different method settings? I followed the tutorial when setting the method settings, which was leaving everything to its default value except for base type.

Online Anders Blom

  • QuantumATK Staff
  • Supreme QuantumATK Wizard
  • *****
  • Posts: 5575
  • Country: dk
  • Reputation: 96
    • View Profile
    • QuantumATK at Synopsys
Re: Error installing VNL under openSUSE 11.2
« Reply #6 on: November 19, 2009, 15:10 »
Most likely this is a difference caused by 32 vs 64 bit computation and/or a slightly earlier version (i.e. different compiler) used for the reference numbers. These two points can affect single bits here and there, and such tiny differences get magnified, slightly, by the self-consistent loop. You can in principle reduce the discrepancy by running to a stronger convergence criterion (like 1e-10 Ry instead of default 1e-5; you would have to rerun the reference data too!).

I hope we can agree that the observed differences are negligible for all practical purposes :)

Offline asqt08

  • New QuantumATK user
  • *
  • Posts: 1
  • Reputation: 0
    • View Profile
Re: Error installing VNL under openSUSE 11.2
« Reply #7 on: February 6, 2010, 16:39 »
Dear friends,
                   I came across the same problem but could not resolve it so far. Is there any patch file available for this? The other one, i.e. atk is running fine without any error, because it has already 64-bit version while vnl has only 32-bit version and so is causing this kind of error while trying to run in x86_64 openSUSE 11.2. However, I would like to have a patch file or so to resolve it, rather than use its 2009 version at the moment. 

Online Anders Blom

  • QuantumATK Staff
  • Supreme QuantumATK Wizard
  • *****
  • Posts: 5575
  • Country: dk
  • Reputation: 96
    • View Profile
    • QuantumATK at Synopsys
Re: Error installing VNL under openSUSE 11.2
« Reply #8 on: February 7, 2010, 22:45 »
This thread is a bit mixed up. Can you please specify your more exact error messages?