Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
docking
ocladock
Commits
ddcc68ec
Commit
ddcc68ec
authored
Jun 16, 2017
by
Leonardo Solis
Browse files
add suffix _gpu/_cpu to bin names, correct NWI to NUMWI
parent
b331a249
Changes
4
Hide whitespace changes
Inline
Side-by-side
Makefile
View file @
ddcc68ec
...
...
@@ -57,23 +57,30 @@ K_NAMES=-DK1=$(K1_NAME) -DK2=$(K2_NAME) -DK3=$(K3_NAME) -DK4=$(K4_NAME)
KFLAGS
=
-DKRNL_SOURCE
=
$(KRNL_DIR)
/
$(KRNL_MAIN)
-DKRNL_DIRECTORY
=
$(KRNL_DIR)
-DKCMN_DIRECTORY
=
$(KCMN_DIR)
$(K_NAMES)
TARGET
:=
ocladock
ifeq
($(DEVICE), CPU)
TARGET
:=
$(TARGET)
_cpu
else
ifeq
($(DEVICE), GPU)
NWI
=
-DN64WI
TARGET
:=
$(TARGET)
_gpu
endif
BIN
:=
$(
wildcard
$(TARGET)
*
)
# ------------------------------------------------------
# Number of work-items (wi)
# Valid values: 16, 32, 64, 128
NWI
=
N
UM
WI
=
ifeq
($(NWI), 16)
ifeq
($(N
UM
WI), 16)
NWI
=
-DN16WI
TARGET
:=
$(TARGET)
_16wi
else
ifeq
($(NWI), 32)
else
ifeq
($(N
UM
WI), 32)
NWI
=
-DN32WI
TARGET
:=
$(TARGET)
_32wi
else
ifeq
($(NWI), 64)
else
ifeq
($(N
UM
WI), 64)
NWI
=
-DN64WI
TARGET
:=
$(TARGET)
_64wi
else
ifeq
($(NWI), 128)
else
ifeq
($(N
UM
WI), 128)
NWI
=
-DN128WI
TARGET
:=
$(TARGET)
_128wi
else
...
...
bin/ocladock_gpu_16wi
0 → 100755
View file @
ddcc68ec
File added
bin/ocladock_gpu_32wi
0 → 100755
View file @
ddcc68ec
File added
bin/ocladock_64wi
→
bin/ocladock_
gpu_
64wi
View file @
ddcc68ec
File moved
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment