Skip to content

Commit

Permalink
Merge branch 'amd-develop' into amd-master
Browse files Browse the repository at this point in the history
  • Loading branch information
junliume committed Oct 17, 2023
2 parents c2c8b41 + 300045c commit 72ce416
Show file tree
Hide file tree
Showing 247 changed files with 11,974 additions and 4,430 deletions.
6 changes: 5 additions & 1 deletion .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ sphinx:
formats: [htmlzip]

python:
version: "3.8"
install:
- requirements: docs/.sphinx/requirements.txt

build:
os: ubuntu-20.04
tools:
python: "3.8"
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ include(ROCMCreatePackage)
include(CheckCXXCompilerFlag)
include(ROCMHeaderWrapper)

# Build library with Beta APIs
add_definitions("-DMIOPEN_BETA_API=1")

set(MIOPEN_ENABLE_AI_IMMED_MODE_FALLBACK On CACHE BOOL "Enable AI-based fallback for Immediate Mode")
set(MIOPEN_ENABLE_AI_KERNEL_TUNING On CACHE BOOL "Enable AI heuristic for kernel tuning")
set(MIOPEN_ENABLE_SQLITE On CACHE BOOL "")
Expand Down
9 changes: 6 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@ DEBIAN_FRONTEND=noninteractive apt-get install -y --allow-unauthenticated \
ENV APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=DontWarn
RUN curl -fsSL https://repo.radeon.com/rocm/rocm.gpg.key | gpg --dearmor -o /etc/apt/trusted.gpg.d/rocm-keyring.gpg

RUN wget https://repo.radeon.com/amdgpu-install/.5.7/ubuntu/focal/amdgpu-install_5.7.50700-1_all.deb --no-check-certificate
RUN wget https://repo.radeon.com/amdgpu-install/5.7/ubuntu/focal/amdgpu-install_5.7.50700-1_all.deb --no-check-certificate
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --allow-unauthenticated \
./amdgpu-install_5.7.50700-1_all.deb

# Add rocm repository
RUN export ROCM_APT_VER=5.7;\
echo $ROCM_APT_VER &&\
sh -c 'echo deb [arch=amd64 signed-by=/etc/apt/trusted.gpg.d/rocm-keyring.gpg] https://repo.radeon.com/amdgpu/.$ROCM_APT_VER/ubuntu focal main > /etc/apt/sources.list.d/amdgpu.list' &&\
sh -c 'echo deb [arch=amd64 signed-by=/etc/apt/trusted.gpg.d/rocm-keyring.gpg] https://repo.radeon.com/rocm/apt/.apt_$ROCM_APT_VER focal main > /etc/apt/sources.list.d/rocm.list'
sh -c 'echo deb [arch=amd64 signed-by=/etc/apt/trusted.gpg.d/rocm-keyring.gpg] https://repo.radeon.com/amdgpu/$ROCM_APT_VER/ubuntu focal main > /etc/apt/sources.list.d/amdgpu.list' &&\
sh -c 'echo deb [arch=amd64 signed-by=/etc/apt/trusted.gpg.d/rocm-keyring.gpg] https://repo.radeon.com/rocm/apt/$ROCM_APT_VER focal main > /etc/apt/sources.list.d/rocm.list'
RUN sh -c "echo deb http://mirrors.kernel.org/ubuntu focal main universe | tee -a /etc/apt/sources.list"

RUN amdgpu-install -y --usecase=rocm --no-dkms
Expand Down Expand Up @@ -106,6 +106,9 @@ RUN ccache -s
ADD docs/.sphinx/requirements.txt /doc-requirements.txt
RUN pip3 install -r /doc-requirements.txt

# Composable Kernel requires this version cmake
RUN pip3 install --upgrade cmake==3.27.5

# Use parallel job to accelerate tensile build
# Workaround for Tensile with TargetID feature
ARG USE_TARGETID="OFF"
Expand Down
26 changes: 14 additions & 12 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -309,14 +309,15 @@ def reboot(){
def buildHipClangJobAndReboot(Map conf=[:]){
try{
buildHipClangJob(conf)
cleanWs()
}
catch(e){
echo "throwing error exception for the stage"
echo 'Exception occurred: ' + e.toString()
throw e
}
finally{
if (conf.get("needs_gpu", true)) {
if (conf.get("needs_reboot", true)) {
reboot()
}
}
Expand Down Expand Up @@ -362,6 +363,7 @@ def RunPerfTest(Map conf=[:]){
catch (Exception err){
currentBuild.result = 'SUCCESS'
}
cleanWs()
}
}
}
Expand Down Expand Up @@ -429,15 +431,15 @@ pipeline {
description: "")
booleanParam(
name: "BUILD_SMOKE_FP32",
defaultValue: true,
defaultValue: false,
description: "")
booleanParam(
name: "BUILD_SMOKE_AUX1",
defaultValue: true,
defaultValue: false,
description: "")
booleanParam(
name: "BUILD_SMOKE_FP16_BF16_INT8",
defaultValue: true,
defaultValue: false,
description: "")
booleanParam(
name: "BUILD_FULL_TESTS",
Expand All @@ -453,11 +455,11 @@ pipeline {
description: "")
booleanParam(
name: "TARGET_VEGA10",
defaultValue: true,
defaultValue: false,
description: "")
booleanParam(
name: "TARGET_VEGA20",
defaultValue: true,
defaultValue: false,
description: "")
booleanParam(
name: "TARGET_GFX908",
Expand All @@ -469,7 +471,7 @@ pipeline {
description: "")
booleanParam(
name: "TARGET_NAVI21",
defaultValue: true,
defaultValue: false,
description: "")
booleanParam(
name: "DATATYPE_NA",
Expand Down Expand Up @@ -542,7 +544,7 @@ pipeline {
stage("HIP Package") {
agent{ label rocmnode("nogpu") }
steps{
buildHipClangJobAndReboot( package_build: "true", needs_gpu:false)
buildHipClangJobAndReboot( package_build: "true", needs_gpu:false, needs_reboot:false)
}
}
}
Expand All @@ -559,7 +561,7 @@ pipeline {
build_cmd = "make -j\$(nproc) -k analyze"
}
steps{
buildHipClangJobAndReboot(setup_cmd: setup_cmd, build_cmd: build_cmd, needs_gpu:false)
buildHipClangJobAndReboot(setup_cmd: setup_cmd, build_cmd: build_cmd, needs_gpu:false, needs_reboot:false)
}
}
stage('Clang Format') {
Expand All @@ -586,7 +588,7 @@ pipeline {
build_cmd = "make -j\$(nproc) "
}
steps{
buildHipClangJobAndReboot(build_fin: "ON", needs_gpu:false, build_install: "true")
buildHipClangJobAndReboot(build_fin: "ON", needs_gpu:false, needs_reboot:false, build_install: "true")
}
}
stage('Perf DB Validity Test') {
Expand All @@ -596,7 +598,7 @@ pipeline {

}
steps{
CheckPerfDbValid(setup_flags: fin_flags, config_targets: "all", build_fin: "ON", needs_gpu:false, build_install: "true")
CheckPerfDbValid(setup_flags: fin_flags, config_targets: "all", build_fin: "ON", needs_gpu:false, needs_reboot:false, build_install: "true")
}
}
stage('HipNoGPU Debug Build Test') {
Expand All @@ -610,7 +612,7 @@ pipeline {
build_cmd = "make -j\$(nproc)"
}
steps{
buildHipClangJob( build_type: 'debug', setup_flags: HipNoGPU_flags, build_cmd: build_cmd, needs_gpu:false)
buildHipClangJob( build_type: 'debug', setup_flags: HipNoGPU_flags, build_cmd: build_cmd, needs_gpu:false, needs_reboot:false)
}
}
}
Expand Down
6 changes: 3 additions & 3 deletions docs/.sphinx/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ charset-normalizer==3.1.0
# via requests
click==8.1.3
# via sphinx-external-toc
cryptography==41.0.3
cryptography==41.0.4
# via pyjwt
deprecated==1.2.13
# via pygithub
Expand All @@ -40,7 +40,7 @@ fastjsonschema==2.16.3
# via rocm-docs-core
gitdb==4.0.10
# via gitpython
gitpython==3.1.35
gitpython==3.1.37
# via rocm-docs-core
idna==3.4
# via requests
Expand Down Expand Up @@ -92,7 +92,7 @@ requests==2.31.0
# via
# pygithub
# sphinx
rocm-docs-core>=0.24.0
rocm-docs-core==0.25.0
# via -r requirements.in
smmap==5.0.0
# via gitdb
Expand Down
3 changes: 1 addition & 2 deletions docs/datatypes.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ typedef enum {
miopenFloat = 1,
miopenInt32 = 2,
miopenInt8 = 3,
miopenInt8x4 = 4,
/* Value 4 is reserved. */
miopenBFloat16 = 5,
} miopenDataType_t;
```
Expand All @@ -22,7 +22,6 @@ Type descriptions:
* `miopenFloat` - 32-bit floating point
* `miopenInt32` - 32-bit integer, used primarily for `int8` convolution outputs
* `miopenInt8` - 8-bit integer, currently only supported by `int8` convolution forward path, tensor set, tensor copy, tensor cast, tensor transform, tensor transpose, and im2col.
* `miopenInt8x4` - 8-bit 4 element vector type used primarily with `int8` convolutions forward path.
* `miopenBFloat16` - brain float fp-16 (8-bit exponent, 7-bit fraction), currently only supported by convolutions, tensor set, and tensor copy.


Expand Down
Loading

0 comments on commit 72ce416

Please sign in to comment.