472,805 Members | 1,965 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,805 software developers and data experts.

Distributing application that uses OpenMP

I have an application that I built with Visual Studio 2005 and for which I
enabled OpenMP. If I open the compiled binary in Visual Studio, this is the
manifest that is embedded in the executable as RT_MANIFEST entry 1:

<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<dependency>
<dependentAssembly>
<assemblyIdentity type="win32" name="Microsoft.VC80.CRT"
version="8.0.50608.0" processorArchitecture="x86"
publicKeyToken="1fc8b3b9a1e18e3b"></assemblyIdentity>
</dependentAssembly>
</dependency>
<dependency>
<dependentAssembly>
<assemblyIdentity type="win32" name="Microsoft.VC80.OpenMP"
version="8.0.50608.0" processorArchitecture="x86"
publicKeyToken="1fc8b3b9a1e18e3b"></assemblyIdentity>
</dependentAssembly>
</dependency>
</assembly>

I encounter a problem however, when I distribute this application to
machines without Visual Studio 8 runtime dll's. I have attempted to overcome
this problem, by distributing the files found in the Visual Studio
installation directory, "C:\Program Files (x86)\Microsoft Visual Studio
8\VC\redist\x86". However, if you examine the manifest file in the
"C:\Program Files (x86)\Microsoft Visual Studio
8\VC\redist\x86\Microsoft.VC80.OPENMP" directory you will see the manifest
file shown below:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!-- Copyright © 1981-2001 Microsoft Corporation -->
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<noInheritable/>
<assemblyIdentity type="win32" name="Microsoft.VC80.OpenMP"
version="8.0.50727.42" processorArchitecture="x86"
publicKeyToken="1fc8b3b9a1e18e3b"/>
<file name="vcomp.dll" hash="0d009725bd5653af143fdfd9d8abf8adad533d16"
hashalg="SHA1"/>
</assembly>

My problem is that my executable specifies a dependency on version
8.0.50608.0, but I am distributing version 8.0.50727.42.

I have determined one workaround to this problem and that is to run the
"vcredist_x86.exe" found in the "C:\Program Files (x86)\Microsoft Visual
Studio 8\SDK\v2.0\BootStrapper\Packages\vcredist_x86" on the machine that
does not have the Visual Studio 8 runtime dll's present. This installs the
OpenMP version 8.0.50727.42 into the Windows Side-By-Side cache, but it also
installs a redirection rule that will cause the OS loader to load version
8.0.50727.42 of the OpenMP dll if requests for versions 8.0.50608.0 of the
OpenMP dll are made.

I do NOT however like this workaround, because running "vcredist_x86.exe"
requires Administrator privileges and I would like to be able to install my
application on user's machines without Administrator privileges being
required.

I have been trying to create a custom redirect rule just for my executable
and having created the following file, called Comet.exe.config:

<?xml version="1.0"?>
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Microsoft.VC80.OpenMP"
publicKeyToken="1fc8b3b9a1e18e3b" />
<publisherPolicy apply="yes" />
<bindingRedirect oldVersion="8.0.50608.0" newVersion="8.0.50727.42" />
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>

I have put this file in the same directory as my executable, Comet.exe. But
I am still unable to run my executable on a machine without the Visual Studio
8 dll's.

Does any have ideas what am I doing wrong, or any other ideas I can try?

Thanks.
Nov 13 '06 #1
0 1767

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: John Welch | last post by:
It happens much too often that I have to tell a client how to fix up missing references when I send them an application, especially if the client is distributing it to different users. It makes me...
5
by: Vladimir_petter | last post by:
Hello guys, Looks like this technology is comming along with VS2005. Anybody has an expirience of using it along with C++? What are the patterns? Thanks, Vladimir.
1
by: Carl J. Van Arsdall | last post by:
Hey everyone, I know I've posted several questions regarding python and python's parallel capabilities so bear with me as I've never attempted to incite discussion. However, today I'm...
2
by: firenet | last post by:
gcc -g -fopenmp openmp.c -o openmp cc1: error: unrecognized command line option "-fopenmp" i wrote a simple openmp.c and wanted to compile it, but i got this error. What should i do ? Thanks
7
by: s.z.s | last post by:
Hi! Is anybody using an openmp compiler under cygwin? I tried to install gcc 4.2.2 without success and now I'm looking for alternatives. Thanks, Steffen
5
by: xkenneth | last post by:
Hi All, I'll shortly be distributing a number of python applications that use proprietary. The software is part of a much larger system and it will need to be distributed securely. How can i...
9
by: eliben | last post by:
Hello, I'm getting into Python now after years of Perl, and as part of my research I must understand how to do some common tasks I need. I have a bunch of Windows PCs at work to which I want...
6
by: Renato Perini | last post by:
Hi all!!! I'm trying to find a *good* book about OpenMP and C, but I can't find anything specific. Can you advice me some good (and updated) books about OpenMP using the C interface? I'd like a...
0
by: Alien | last post by:
Hi, I am having bit of confusion about !$OPENMP DO/!$OPENMP END DO and !$OPENMP PARALLEL DO/!$OPENMP END PARALLEL DO directives. Having looked at my notes, the only difference I can find is...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
linyimin
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Sept 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
14
DJRhino1175
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: lllomh | last post by:
How does React native implement an English player?
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.