<div dir="ltr">Hi Mark,<div><br></div><div>I used the following flags for PETSc:</div><div><br></div><div>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(220,255,239)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">cmake -DCMAKE_BUILD_TYPE=Release \</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(220,255,239)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space"> </span>-DCMAKE_INSTALL_PREFIX=${KOKKOS_SRC_DIR}/install \</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(220,255,239)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space"> </span>-DCMAKE_CXX_COMPILER=hipcc \</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(220,255,239)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space"> </span>-DCMAKE_CXX_STANDARD=14 \</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(220,255,239)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space"> </span>-DBUILD_TESTING=OFF \</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(220,255,239)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space"> </span>-DKokkos_ENABLE_HIP=ON \</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(220,255,239)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space"> </span>-DKokkos_ENABLE_OPENMP=ON \</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(220,255,239)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space"> </span>-DKokkos_ENABLE_SERIAL=ON \</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(220,255,239)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space"> </span>-DKokkos_ENABLE_AGGRESSIVE_VECTORIZATION=ON \</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(220,255,239)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space"> </span>-DKokkos_ARCH_VEGA908=ON \</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(220,255,239)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space"> </span>-DKokkos_ARCH_ZEN2=ON \</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(220,255,239)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space"> </span>..</span></p></div><div><br></div><div>You can also use my installation (let me know if you don't have access):</div><div><br></div><div>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(175,33,23);background-color:rgb(220,255,239)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures;color:rgb(187,97,25)">set</span><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures;color:rgb(40,168,181)">(Kokkos_ROOT </span><span class="gmail-s3" style="font-variant-ligatures:no-common-ligatures">"/ccs/home/scheinberg/spock/kokkos/install"</span><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures;color:rgb(40,168,181)">)</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(175,33,23);background-color:rgb(220,255,239)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures;color:rgb(187,97,25)">set</span><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures;color:rgb(40,168,181)">(Cabana_ROOT </span><span class="gmail-s3" style="font-variant-ligatures:no-common-ligatures">"/ccs/home/scheinberg/spock/Cabana/install"</span><span class="gmail-s2" style="font-variant-ligatures:no-common-ligatures;color:rgb(40,168,181)">)</span></p><br>I saw your email about the PETSc installation, will give it a try today.</div>
</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jul 6, 2021 at 8:23 AM Mark Adams <<a href="mailto:mfadams@lbl.gov">mfadams@lbl.gov</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">I am getting a make error on Spock at ORNL with Kokkos and HIP.<div>This was building last week and this was a clean build.</div><div>Thanks,</div><div>Mark</div></div>
</blockquote></div>