parallel 0.9.1 → 0.9.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +3 -2
- data.tar.gz.sig +0 -0
- data/lib/parallel.rb +8 -8
- data/lib/parallel/version.rb +1 -1
- metadata +2 -2
- metadata.gz.sig +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 10ae41bc42e4077103a8999f19ddcd6aca506690
|
4
|
+
data.tar.gz: 6eb5df58b696e04343ff18b71b471073adeca9b1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 33c14f039f882d0c008b02142057ed272b1a0588ca512889ca5336b9887a5f402fb0a4579ec5aa03b46fc427dc57880b1d62f358775812a09ef2a11c2a769b9f
|
7
|
+
data.tar.gz: b3990275434d77e4f6bad098ffeda2ae8d201ec4518f2e946573024f636f6214bb79e144a1ee3c7120922c278a733d38eb626b3b190d74624e95e76a11e78362
|
checksums.yaml.gz.sig
CHANGED
@@ -1,2 +1,3 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
&?SO�9J�Lu��m0J=����
|
2
|
+
�%[�M�Ux�s����d֦4�V�,�Ԗ�f�7�f &t�ै��L�v��2r����;j�Y��ތڏSł<�ڧ
|
3
|
+
r�"��C�K��h��-#E�K"�G��Q�
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/parallel.rb
CHANGED
@@ -144,23 +144,23 @@ module Parallel
|
|
144
144
|
elsif File.readable?("/proc/cpuinfo")
|
145
145
|
IO.read("/proc/cpuinfo").scan(/^processor/).size
|
146
146
|
elsif File.executable?("/usr/bin/hwprefs")
|
147
|
-
IO.popen(
|
147
|
+
IO.popen("/usr/bin/hwprefs thread_count").read.to_i
|
148
148
|
elsif File.executable?("/usr/sbin/psrinfo")
|
149
149
|
IO.popen("/usr/sbin/psrinfo").read.scan(/^.*on-*line/).size
|
150
150
|
elsif File.executable?("/usr/sbin/ioscan")
|
151
|
-
IO.popen(
|
151
|
+
IO.popen("/usr/sbin/ioscan -kC processor") do |out|
|
152
152
|
out.read.scan(/^.*processor/).size
|
153
153
|
end
|
154
154
|
elsif File.executable?("/usr/sbin/pmcycles")
|
155
|
-
IO.popen(
|
155
|
+
IO.popen("/usr/sbin/pmcycles -m").read.count("\n")
|
156
156
|
elsif File.executable?("/usr/sbin/lsdev")
|
157
|
-
IO.popen(
|
157
|
+
IO.popen("/usr/sbin/lsdev -Cc processor -S 1").read.count("\n")
|
158
158
|
elsif File.executable?("/usr/sbin/sysconf") and os_name =~ /irix/i
|
159
|
-
IO.popen(
|
159
|
+
IO.popen("/usr/sbin/sysconf NPROC_ONLN").read.to_i
|
160
160
|
elsif File.executable?("/usr/sbin/sysctl")
|
161
|
-
IO.popen(
|
161
|
+
IO.popen("/usr/sbin/sysctl -n hw.ncpu").read.to_i
|
162
162
|
elsif File.executable?("/sbin/sysctl")
|
163
|
-
IO.popen(
|
163
|
+
IO.popen("/sbin/sysctl -n hw.ncpu").read.to_i
|
164
164
|
else
|
165
165
|
$stderr.puts "Unknown platform: " + RbConfig::CONFIG["target_os"]
|
166
166
|
$stderr.puts "Assuming 1 processor."
|
@@ -175,7 +175,7 @@ module Parallel
|
|
175
175
|
@physical_processor_count ||= begin
|
176
176
|
ppc = case RbConfig::CONFIG["target_os"]
|
177
177
|
when /darwin1/
|
178
|
-
IO.popen(
|
178
|
+
IO.popen("/usr/sbin/sysctl -n hw.physicalcpu").read.to_i
|
179
179
|
when /linux/
|
180
180
|
cores = {} # unique physical ID / core ID combinations
|
181
181
|
phy = 0
|
data/lib/parallel/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: parallel
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Grosser
|
@@ -29,7 +29,7 @@ cert_chain:
|
|
29
29
|
y0kCSWmK6D+x/SbfS6r7Ke07MRqziJdB9GuE1+0cIRuFh8EQ+LN6HXCKM5pon/GU
|
30
30
|
ycwMXfl0
|
31
31
|
-----END CERTIFICATE-----
|
32
|
-
date:
|
32
|
+
date: 2014-01-13 00:00:00.000000000 Z
|
33
33
|
dependencies: []
|
34
34
|
description:
|
35
35
|
email: michael@grosser.it
|
metadata.gz.sig
CHANGED
@@ -1,2 +1,3 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
U�P�´Z}�<�Pا6 &��3��l�0�&S����0f,]c�wu��3�������\!�Bp�ÍB�uA�i���߃�M9^
|
2
|
+
%[���Y�mA�n0c)h/
|
3
|
+
�7��r]bb��<K����&qpрh<�����tmӦ>
|