Mac OS openMP compilation
- palafox
- Topic Author
- Offline
- New Member
Less
More
- Posts: 4
- Karma: 1
- Thank you received: 0
5 years 1 month ago #593
by palafox
Hi guys,
I was wondering if somebody had worked out how to run Cassandra on multiple threads in a Mac OS computer. I have so far being able to instal openMP, but so far the documentation for multiple threads mentions that the number of threads is specified hard way in code. I had not being able to find an equivalent command to setenv or export. It's likely that I am doing something wrong. Would you mind sharing your experiences on the topic?
Thank you so much.
P
I was wondering if somebody had worked out how to run Cassandra on multiple threads in a Mac OS computer. I have so far being able to instal openMP, but so far the documentation for multiple threads mentions that the number of threads is specified hard way in code. I had not being able to find an equivalent command to setenv or export. It's likely that I am doing something wrong. Would you mind sharing your experiences on the topic?
Thank you so much.
P
Please Log in to join the conversation.
- emarin
- Offline
- Administrator
Less
More
- Posts: 42
- Karma: 2
- Thank you received: 7
- palafox
- Topic Author
- Offline
- New Member
Less
More
- Posts: 4
- Karma: 1
- Thank you received: 0
5 years 1 month ago #595
by palafox
Thanks emarin,
I have done that in "regular" Linux clusters. However if I do export OMP_NUM_THREADS, and then list the env variables this is what I get:
@test $ printenv
TERM_PROGRAM=Apple_Terminal
TERM=xterm-256color
SHELL=/bin/bash
CLICOLOR=1
TMPDIR=/var/folders/gb/7r_3wv5s1p3gmf2lx2vklfgw0000gp/T/
Apple_PubSub_Socket_Render=/private/tmp/com.apple.launchd.RcC2Tees4q/Render
TERM_PROGRAM_VERSION=404.1
TERM_SESSION_ID=1D033D5A-9128-4762-88B6-8CBAB8032FEE
USER=ppalafox
SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.Hd8SMWc24v/Listeners
LSCOLORS=GxFxCxDxBxegedabagaced
PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin:/usr/local/munki:/opt/X11/bin:/Users/ppalafox/bin
PWD=/Users/ppalafox/Cassandra_V1.2/Examples/NPT/test
LANG=en_US.UTF-8
XPC_FLAGS=0x0
PS1=\u@\W $
XPC_SERVICE_NAME=0
HOME=/Users/ppalafox
SHLVL=1
LOGNAME=ppalafox
DISPLAY=/private/tmp/com.apple.launchd.GVDb2IrY0m/org.macosforge.xquartz:0
_=/usr/bin/printenv
I don't see the threads. I think this might suggest that something is not properly configured and I am not quite sure what it is.
I used homebrew to install openMP, so I have the clang commands, and I am not quite sure if the problems is with the environment or compiling using the openmp Makefile.
Thanks again for your help and fast response.
Best P
I have done that in "regular" Linux clusters. However if I do export OMP_NUM_THREADS, and then list the env variables this is what I get:
@test $ printenv
TERM_PROGRAM=Apple_Terminal
TERM=xterm-256color
SHELL=/bin/bash
CLICOLOR=1
TMPDIR=/var/folders/gb/7r_3wv5s1p3gmf2lx2vklfgw0000gp/T/
Apple_PubSub_Socket_Render=/private/tmp/com.apple.launchd.RcC2Tees4q/Render
TERM_PROGRAM_VERSION=404.1
TERM_SESSION_ID=1D033D5A-9128-4762-88B6-8CBAB8032FEE
USER=ppalafox
SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.Hd8SMWc24v/Listeners
LSCOLORS=GxFxCxDxBxegedabagaced
PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin:/usr/local/munki:/opt/X11/bin:/Users/ppalafox/bin
PWD=/Users/ppalafox/Cassandra_V1.2/Examples/NPT/test
LANG=en_US.UTF-8
XPC_FLAGS=0x0
PS1=\u@\W $
XPC_SERVICE_NAME=0
HOME=/Users/ppalafox
SHLVL=1
LOGNAME=ppalafox
DISPLAY=/private/tmp/com.apple.launchd.GVDb2IrY0m/org.macosforge.xquartz:0
_=/usr/bin/printenv
I don't see the threads. I think this might suggest that something is not properly configured and I am not quite sure what it is.
I used homebrew to install openMP, so I have the clang commands, and I am not quite sure if the problems is with the environment or compiling using the openmp Makefile.
Thanks again for your help and fast response.
Best P
Please Log in to join the conversation.
Time to create page: 0.103 seconds