| OS X - Apps and Games Discussion of applications and games available for Mac OS X. |
| Post Reply | New Thread | Subscribe |
|
|
Thread Tools |
![]() Member Since: Jun 24, 2010
Posts: 2
![]() |
Hi,
Is it possible to install GCC 4.5 in macos 10.6.4 and use in xcode 3.2.2?If possible how can i install it and use GCC4.5 in xcode 3.2.2? How can i build the application using GCC4.5 in OSX 10.6.4 ? The problem is our mac application crashes,while enabling openMp.The crash is observed in gomp_resolve_num_threads. (GOMP_parallel_start at parallel.c:70 ----> gomp_resolve_num_threads at parallel.c:48) We are using MacOS 10.6.4 ,GCC 4.2 and xcode 3.2.2 . Is there any solution for this? -Thanks. |
| QUOTE Thanks | |
|
Member Since: Feb 25, 2009
Posts: 2,084
![]() ![]() ![]() ![]() ![]() ![]() Mac Specs: 2012 Non-retina MBP, 2.6GHz i7, 8GB RAM, Antiglare Screen
|
Just out of curiosity, are you sure it's not a bug in your code? I went to OpenMP and compiled their test code on my system with Xcode 3.2.2 and it compiled and ran fine; granted it was extremely simple code, but it does appear that OpenMP is working at least on a basic level...
here's the code and my output: Code:
#include <omp.h>
#include <stdio.h>
int main() {
#pragma omp parallel
printf("Hello from thread %d, nthreads %d\n", omp_get_thread_num(), omp_get_num_threads());
}
Code:
videoed-imac:test nethfel$ gcc -fopenmp omptest.c videoed-imac:test nethfel$ ./a.out Hello from thread 0, nthreads 2 Hello from thread 1, nthreads 2 videoed-imac:test nethfel$ My Macs: 2012 Non-Retina 15" MBP; Mac mini G4, 1.25 GHz, 512m ram (server); Late 2011 11" MBA, 1.8GHz i7, 4Gig Ram, 256Gig SSD, HD3000; Powerbook 12" G4 1.33GHz running Debian as a server; Apple TV (1080p version) |
| QUOTE Thanks | |
![]() Member Since: Jun 24, 2010
Posts: 2
![]() |
SourceForge.net: Equalizer - Parallel Rendering: Detail: 1964341 - OpenMP crashes with multi-pipe configurations |
||||
| QUOTE Thanks | |||||
| Post Reply | New Thread | Subscribe |
| Thread Tools | |
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
|
|||||||
Thread |
Thread Starter |
Forum |
Replies |
Last Post |
| Installing gcc on Mac OSX without re-installing XCode | jigglypuff | OS X - Development and Darwin | 0 | 02-26-2010 12:16 AM |
| I cannot properly install gcc and gfortran | gcordoba | OS X - Development and Darwin | 3 | 02-18-2010 04:28 PM |
| OpenMP and Xcode | bamdad | OS X - Apps and Games | 0 | 10-02-2009 03:06 AM |
| gcc compiling | jdgti | OS X - Development and Darwin | 5 | 09-20-2006 04:08 AM |
| gcc compiler, no stdio.h found | lzco | OS X - Development and Darwin | 6 | 10-21-2005 04:23 PM |
All times are GMT -4. The time now is 08:06 PM.
Powered by vBulletin