Skip to content

Commit db43699

Browse files
v0.4.2 - corrections
1 parent fec3321 commit db43699

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

Project.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ version = "0.4.1"
66
[deps]
77
AbstractTrees = "1520ce14-60c1-5f80-bbc7-55ef81b5835c"
88
CpuId = "adafc99b-e345-5852-983c-f28acb93d879"
9+
Distributed = "8ba89e20-285c-5b6f-9357-94700520ee1b"
910
Downloads = "f43a241f-c20a-4ad4-852c-f6b1247861c6"
1011
HTTP = "cd3eb016-35fb-5094-929b-558a96fad6f3"
1112
InteractiveUtils = "b77e0a4c-d291-57a0-90e8-8db25a27a240"

src/PlatformAware.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ using Scratch
1212
using Downloads
1313
using InteractiveUtils
1414
using HTTP
15+
using Distributed
1516

1617
include("utils.jl")
1718

@@ -42,7 +43,6 @@ include("features/qualifiers/amd/amd_processors.jl")
4243
include("features/qualifiers/amd/amd_accelerators.jl")
4344
include("features/qualifiers/xilinx/xilinx.jl")
4445

45-
4646
# main functionality (@platform macro and default types)
4747
include("platform.jl")
4848

src/platform.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,13 +123,13 @@ function load!()
123123
platform_description_dict = readPlatormDescription()
124124
platform_description_dict["node"]["node_count"] = try Distributed.nworkers() catch _ 1 end
125125
loadFeatures!(platform_description_dict, state.platform_feature_default_all, state.platform_feature_all)
126-
127126
setupWorkers(platform_description_dict, state.platform_feature_all)
128127

129128
empty!(state.platform_feature)
130129
for (k,v) in state.platform_feature_all
131130
state.platform_feature[k] = v
132131
end
132+
133133
end
134134

135135
# load!()
@@ -162,7 +162,7 @@ function reset_platform_feature!()
162162
keys(state.platform_feature)
163163
end
164164

165-
function include_actual_platform_argument!(f)
165+
function include_platform_feature!(f)
166166
state.platform_feature[f] = state.platform_feature_all[f]
167167
state.platform_feature_default[f] = state.platform_feature_default_all[f]
168168
keys(state.platform_feature)
@@ -177,7 +177,7 @@ function platform_parameter_macro!(f)
177177
reset_platform_feature!()
178178
else
179179
check_all(f)
180-
include_actual_platform_argument!(f)
180+
include_platform_feature!(f)
181181
end
182182
end
183183

0 commit comments

Comments
 (0)