-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable dpnp build on AMD GPU #2302
base: master
Are you sure you want to change the base?
Changes from all commits
72bc4d4
5f11917
c07e0a7
323bbb4
e111ce1
ccc7b72
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,6 +39,7 @@ def run( | |
verbose=False, | ||
cmake_opts="", | ||
target="intel", | ||
arch=None, | ||
onemkl_interfaces=False, | ||
onemkl_interfaces_dir=None, | ||
): | ||
|
@@ -104,6 +105,16 @@ def run( | |
# Always builds using oneMKL interfaces for the cuda target | ||
onemkl_interfaces = True | ||
|
||
if target == "hip": | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What is about documentation updates? |
||
if not arch: | ||
raise ValueError("--arch is required when --target=hip") | ||
cmake_args += [ | ||
"-DDPNP_TARGET_HIP=ON", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For what do we need to define two variables? Can it be combined in a single one, like in dpctl: There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Additionally,
For these reasons, I think it is most sensible to move away from |
||
f"-DHIP_TARGETS={arch}", | ||
] | ||
# Always builds using oneMKL interfaces for the hip target | ||
onemkl_interfaces = True | ||
|
||
if onemkl_interfaces: | ||
cmake_args += [ | ||
"-DDPNP_USE_ONEMKL_INTERFACES=ON", | ||
|
@@ -177,6 +188,12 @@ def run( | |
default="intel", | ||
type=str, | ||
) | ||
driver.add_argument( | ||
"--arch", | ||
help="Architecture for HIP target", | ||
dest="arch", | ||
type=str, | ||
) | ||
driver.add_argument( | ||
"--onemkl-interfaces", | ||
help="Build using oneMKL Interfaces", | ||
|
@@ -244,6 +261,7 @@ def run( | |
verbose=args.verbose, | ||
cmake_opts=args.cmake_opts, | ||
target=args.target, | ||
arch=args.arch, | ||
onemkl_interfaces=args.onemkl_interfaces, | ||
onemkl_interfaces_dir=args.onemkl_interfaces_dir, | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we do the same for each CMakeList.txt per every extension?