Skip to content

Commit 9d3f6ee

Browse files
committed
Merge rhino8_cycles35 into rhino9_cycles35
2 parents f279991 + efef83b commit 9d3f6ee

3 files changed

Lines changed: 16 additions & 10 deletions

File tree

DockerfileHIP

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# * Make sure Docker Desktop is running
77
# * Use a terminal to build a Docker image: 'docker build -f DockerfileHIP -t ubuntu-cycles-hip-build .'
88
# * After that, run the Docker image in a container while mounting your Rhino repository root:
9-
# 'docker run -it -v D:/dev/mcneel/rhino-8.x:/rhino/rhino-8.x ubuntu-cycles-hip-build'
9+
# 'docker run -it -v D:/dev/mcneel/rhino:/rhino/repo ubuntu-cycles-hip-build'
1010
# * The .fatbin files should en up in the cycles/cycles/install/lib directory
1111

1212
FROM ubuntu:22.04
@@ -25,6 +25,6 @@ RUN wget https://repo.radeon.com/amdgpu-install/7.1.1/ubuntu/jammy/amdgpu-instal
2525
RUN apt-get install -y ./amdgpu-install_7.1.1.70101-1_all.deb
2626
RUN DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC amdgpu-install -y --no-dkms --usecase=rocm
2727

28-
CMD ["bash", "-c", "cd /rhino/rhino-8.x/src4/rhino4/Plug-ins/RDK/cycles/cycles && dos2unix make_hip.sh && bash make_hip.sh Release"]
28+
CMD ["bash", "-c", "cd /rhino/repo/src4/rhino4/Plug-ins/RDK/cycles/cycles && dos2unix make_hip.sh && bash make_hip.sh Release"]
2929

3030
#ENTRYPOINT [ "bash" ]

DockerfileOneAPI

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# * Make sure Docker Desktop is running
77
# * Use a terminal to build a Docker image: 'docker build -f DockerfileOneAPI -t ubuntu-cycles-oneapi-build .'
88
# * After that, run the Docker image in a container while mounting your Rhino repository root:
9-
# 'docker run -it -v D:/dev/mcneel/rhino-8.x:/rhino/rhino-8.x ubuntu-cycles-oneapi-build'
9+
# 'docker run -it -v D:/dev/mcneel/rhino:/rhino/repo ubuntu-cycles-oneapi-build'
1010

1111
FROM ubuntu:latest
1212

@@ -18,6 +18,6 @@ RUN apt-get install -y git
1818
RUN apt-get install -y python3
1919
RUN apt-get install -y xorg-dev
2020

21-
CMD ["bash", "-c", "cd /rhino/rhino-8.x/src4/rhino4/Plug-ins/RDK/cycles/cycles && ./make_oneapi.sh Debug"]
21+
CMD ["bash", "-c", "cd /rhino/repo/src4/rhino4/Plug-ins/RDK/cycles/cycles && ./make_oneapi.sh Debug"]
2222

23-
# && ./make_oneapi.sh Debug
23+
# && ./make_oneapi.sh Debug

make_rhino_all.ps1

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,16 @@
22
param(
33
[Parameter(Position = 0)]
44
[ValidateSet("release", "debug", "release_debuggable", "hybrid", "minimal")]
5-
[string]$BuildType = "release"
5+
[string]$BuildType = "release",
6+
[string]$RhinoBranchName
67
)
78

89
$ErrorActionPreference = "Stop"
910

1011
$scriptRoot = if ($PSScriptRoot) { $PSScriptRoot } else { Split-Path -Parent $MyInvocation.MyCommand.Path }
12+
. (Join-Path $scriptRoot "..\rhino_branch_info.ps1")
13+
14+
$branchInfo = Resolve-RhinoBranchInfo -StartPath $scriptRoot -RhinoBranchName $RhinoBranchName
1115
$logPath = Join-Path $scriptRoot "make_rhino_all.log"
1216
try {
1317
if (Test-Path $logPath) {
@@ -125,10 +129,11 @@ $dpcppRoot = "..\lib\win64_vc15\dpcpp"
125129
$levelZeroRoot = "..\lib\win64_vc15\level-zero"
126130
$msvcRedistDir = "C:/Program Files (x86)/Microsoft Visual Studio/2019/Professional/VC/Redist/MSVC/14.29.30133"
127131
$windowsKitsDir = "C:/Program Files (x86)/Windows Kits/10"
128-
$rhinoBranchRoot = [System.IO.Path]::GetFullPath((Join-Path $scriptRoot "..\..\..\..\..\.."))
129-
$rhinoBranchName = Split-Path -Leaf $rhinoBranchRoot
132+
$rhinoBranchRoot = $branchInfo.BranchRoot
133+
$rhinoBranchName = $branchInfo.BranchName
134+
$rhinoMajorVersion = $branchInfo.MajorVersion
130135
$dockerHostRoot = $rhinoBranchRoot -replace '\\', '/'
131-
$dockerContainerRoot = "/rhino/rhino-$rhinoBranchName"
136+
$dockerContainerRoot = "/rhino/repo"
132137
$dockerVolume = "${dockerHostRoot}:$dockerContainerRoot"
133138

134139
$buildMode = $BuildType.ToLowerInvariant()
@@ -426,6 +431,7 @@ try {
426431
Write-Log "Install dir: $installDir"
427432
Write-Log "HIP build dir: $hipBuildDir"
428433
Write-Log "Rhino branch root: $rhinoBranchRoot"
434+
Write-Log "Rhino branch: $rhinoBranchName (major $rhinoMajorVersion, source $($branchInfo.Source))"
429435
Write-Log "Docker volume: $dockerVolume"
430436
Write-Log "SVN retries after first failure: $script:SvnRetryCount (fixed $script:SvnRetryDelaySeconds second delay)."
431437
Write-Log "Allowed cleanup paths: $($script:AllowedCleanupPaths -join ', ')"
@@ -534,7 +540,7 @@ try {
534540
Invoke-TimedStage -Name "Update Version Info" -Action {
535541
Push-Location ([System.IO.Path]::GetFullPath((Join-Path $scriptRoot "..")))
536542
try {
537-
& powershell -NoProfile -ExecutionPolicy Bypass -File ".\versioninfo_changer.ps1" | Out-Host
543+
& powershell -NoProfile -ExecutionPolicy Bypass -File ".\versioninfo_changer.ps1" -RhinoBranchName $rhinoBranchName | Out-Host
538544
if ($LASTEXITCODE -ne 0) {
539545
Write-Log "WARNING: versioninfo_changer.ps1 failed with code $LASTEXITCODE."
540546
}

0 commit comments

Comments
 (0)